Displaying 8 results from an estimated 8 matches for "add_text".
2009 Jul 29
0
[PATCH server] Remove ununsed utils.rb file.
...@remote_pool_started = false
-
- if name == nil
- @name = type + "-" + String.random_alphanumeric
- else
- @name = name
- end
-
- @xml = Document.new
- @xml.add_element("pool", {"type" => type})
-
- @xml.root.add_element("name").add_text(@name)
-
- @xml.root.add_element("source")
-
- @xml.root.add_element("target")
- @xml.root.elements["target"].add_element("path")
- end
-
- def connect(conn)
- all_storage_pools(conn).each do |remote_pool_name|
- tmppool = conn.lookup_stora...
2008 Apr 11
1
fxtreelist question
Hello,
I''m new to Ruby and new to FXRuby. How to dump a fxtreelist to an XML?
Thanks.
_________________________________________________________________
Get in touch in an instant. Get Windows Live Messenger now.
http://www.windowslive.com/messenger/overview.html?ocid=TXT_TAGLM_WL_Refresh_getintouch_042008
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2010 Sep 01
1
[PATCH] Fix virtual disk name (virtio)
...sk_vm.rb b/src/task-omatic/task_vm.rb
index 3a197f9..cf84ea2 100644
--- a/src/task-omatic/task_vm.rb
+++ b/src/task-omatic/task_vm.rb
@@ -66,7 +66,9 @@ def create_vm_xml(name, uuid, memAllocated, memUsed, vcpus, bootDevice,
doc.root.elements["devices"].add_element("emulator").add_text("/usr/bin/qemu-kvm")
devs = ['hda', 'hdb', 'hdc', 'hdd']
+ virtual_devs = ['vda', 'vdb', 'vdc', 'vdd']
which_device = 0
+ which_virtual_device = 0
diskDevices.each do |disk|
is_cdrom = (disk =~ /\.iso/) ? tr...
2009 Jul 09
1
[PATCH 1/5 ovirt-server] Add glusterfs to task-omatic API for {task_storage,utils}
...hat we create a sparse file.
+ # This was done because qmf was timing out waiting for the create
+ # operation to complete. This needs to be fixed in a better way
+ # however. We want to have non-sparse files for performance reasons.
+ @vol_xml.root.add_element("allocation").add_text('0')
+
+ @logger.debug("Creating new volume on pool #{@remote_pool.name} - XML: #{@vol_xml.to_s}")
+ result = @remote_pool.createVolumeXML(@vol_xml.to_s)
+ raise "Error creating remote pool: #{result.text}" unless result.status == 0
+ return result.volume
+...
2009 Jul 31
0
[TAKE-2][PATCH 1/5] Add glusterfs to task-omatic API for task_storage
...hat we create a sparse file.
+ # This was done because qmf was timing out waiting for the create
+ # operation to complete. This needs to be fixed in a better way
+ # however. We want to have non-sparse files for performance reasons.
+ @vol_xml.root.add_element("allocation").add_text('0')
+
+ @logger.debug("Creating new volume on pool #{@remote_pool.name} - XML: #{@vol_xml.to_s}")
+ result = @remote_pool.createVolumeXML(@vol_xml.to_s)
+ raise "Error creating remote pool: #{result.text}" unless result.status == 0
+ return result.volume
+...
2009 May 29
0
[PATCH server] Add more debugging to storage tasks
...s', target)
+ super('netfs', target, logger)
@type = 'netfs'
@host = ip_addr
@@ -276,6 +280,7 @@ class NFSLibvirtPool < LibvirtPool
# however. We want to have non-sparse files for performance reasons.
@vol_xml.root.add_element("allocation").add_text('0')
+ @logger.debug("Creating new volume on pool #{@remote_pool.name} - XML: #{@vol_xml.to_s}")
result = @remote_pool.createVolumeXML(@vol_xml.to_s)
raise "Error creating remote pool: #{result.text}" unless result.status == 0
return result.volume
@@...
2006 May 05
8
pdf/writer: table.render_on best practices?
...ate
pdf.stroke_color! Color::Black
pdf.stroke_style! PDF::Writer::StrokeStyle::DEFAULT
s = 9
t = "My title - " + Date.today().to_s
w = pdf.text_width(t, s) / 2.0
x = pdf.margin_x_middle
y = pdf.absolute_top_margin
pdf.add_text(x - w, y, t, s)
x = pdf.absolute_left_margin
w = pdf.absolute_right_margin
y -= (pdf.font_height(s) * 1.01)
pdf.line(x, y, w, y).stroke
y = pdf.absolute_bottom_margin + pdf.font_height(9) - 2
pdf.line(x, y, w, y).stroke
pdf.restore_stat...
2003 Apr 28
1
Wine compile error in tools/wpp (ppl.l) under debian
...g: implicit declaration of function `put_buffer'
./ppl.l:490: warning: implicit declaration of function `free_macro'
./ppl.l:498: warning: implicit declaration of function `MACROPARENTHESES'
./ppl.l:498: invalid lvalue in increment
./ppl.l:499: warning: implicit declaration of function `add_text_to_macro'
./ppl.l:502: invalid lvalue in decrement
./ppl.l:505: warning: implicit declaration of function `macro_add_arg'
./ppl.l:518: `pp_comment' undeclared (first use in this function)
./ppl.l:519: `pp_status' undeclared (first use in this function)
./ppl.l:536: warning: implicit...