Home
last modified time | relevance | path

Searched refs:xmlobj (Results 1 – 25 of 77) sorted by relevance

1234

/dports/deskutils/virt-manager/virt-manager-3.2.0/virtManager/object/
H A Dnodedev.py12 def _usb_pretty_name(xmlobj): argument
18 busstr = "%.3d:%.3d" % (int(xmlobj.bus), int(xmlobj.device))
23 def _pretty_name(xmlobj): argument
24 if xmlobj.device_type == "net":
25 return _("Interface %s") % xmlobj.interface or xmlobj.name
27 if xmlobj.device_type == "pci":
33 xmlobj.vendor_name, xmlobj.product_name)
35 return _usb_pretty_name(xmlobj)
37 if xmlobj.device_type == "drm":
39 xmlobj.conn, xmlobj.parent)
[all …]
H A Ddomain.py579 xmlobj.add_device(devobj)
580 self._redefine_xmlobj(xmlobj)
601 xmlobj.remove_device(editdev)
603 self._redefine_xmlobj(xmlobj)
619 self._redefine_xmlobj(xmlobj)
905 xmlobj.conn, xmlobj)
1272 return xmlobj.devices.interface
1275 return xmlobj.devices.disk
1754 xmlobj.name = str(newname)
1755 self._redefine_xmlobj(xmlobj)
[all …]
H A Dlibvirtobject.py107 xmlobj = self._make_xmlobj_to_define()
108 if xmlobj.name == newname:
113 origxml = xmlobj.get_xml()
114 xmlobj.name = newname
115 newxml = xmlobj.get_xml()
321 def xmlobj(self): member in vmmLibvirtObject
373 def _redefine_xmlobj(self, xmlobj): argument
382 newxml = xmlobj.get_xml()
H A Dnetwork.py119 xmlobj = self.get_xmlobj()
121 for i in xmlobj.ips:
131 for i in xmlobj.ips:
153 mode = self.xmlobj.forward.mode
154 dev = self.xmlobj.forward.dev
/dports/textproc/p5-XML-SimpleObject-LibXML/XML-SimpleObject-LibXML-0.60/
H A Dex.pl20 my $xmlobj = new XML::SimpleObject::LibXML(XML => $XML);
30 foreach my $element ($xmlobj->child("files")->children("file"))
44 my $filesobj = $xmlobj->child("files")->child("file");
53 my $filesobj = $xmlobj->child("files");
67 $xmlobj->xpath_search("/files/file[1]/name")->value("testfilename.txt");
72 my $filenode = $xmlobj->xpath_search("/files/file[1]");
88 $xmlobj->xpath_search("/files")->name("Files");
89 print "Changed element name: " . $xmlobj->child()->name . "\n";
93 $xmlobj->xpath_search("/Files/file[1]/dest")->delete;
94 $xmlobj->xpath_search("/Files/file[1]")->value("");
[all …]
H A Dtest.pl35 my $xmlobj = new XML::SimpleObject::LibXML ($parser->parse_string($XML));
36 ok($xmlobj);
38 is(($xmlobj->child("files")->children("file"))[0]->child("name")->value,
40 is(($xmlobj->child("files")->children("file"))[0]->attribute("type"),
42 is(($xmlobj->child("files")->children("file"))[1]->child("name")->value,
45 ($xmlobj->child("files")->children("file"))[0]->child("name")->add_attribute
47 is(($xmlobj->child("files")->children("file"))[0]->child("name")->attribute("lang"),
50 my $child = ($xmlobj->child("files")->children("file"))[0]->child("name")->add_child
/dports/www/moodle39/moodle/lib/jabber/XMPP/
H A DXMLStream.php101 protected $xmlobj = null; variable in XMPPHP_XMLStream
552 if (is_array($this->xmlobj) && array_key_exists(2, $this->xmlobj)) {
553 $searchxml = $this->xmlobj[2];
575 } elseif(is_array($this->xmlobj) and array_key_exists(2, $this->xmlobj)) {
585 if(array_key_exists('id', $this->xmlobj[2]->attrs) and $this->xmlobj[2]->attrs['id'] == $id) {
593 if(is_array($this->xmlobj)) {
594 $this->xmlobj = array_slice($this->xmlobj, 0, 1);
595 if(isset($this->xmlobj[0]) && $this->xmlobj[0] instanceof XMPPHP_XMLObj) {
599 unset($this->xmlobj[2]);
735 unset($this->xmlobj);
[all …]
/dports/www/moodle310/moodle/lib/jabber/XMPP/
H A DXMLStream.php96 protected $xmlobj = null; variable in BirknerAlex\\XMPPHP\\XMLStream
636 if (is_array($this->xmlobj) && array_key_exists(2, $this->xmlobj)) {
637 $searchxml = $this->xmlobj[2];
659 } elseif(is_array($this->xmlobj) and array_key_exists(2, $this->xmlobj)) {
669 if(array_key_exists('id', $this->xmlobj[2]->attrs) and $this->xmlobj[2]->attrs['id'] == $id) {
677 if(is_array($this->xmlobj)) {
678 $this->xmlobj = array_slice($this->xmlobj, 0, 1);
679 if(isset($this->xmlobj[0]) && $this->xmlobj[0] instanceof XMLObj) {
683 unset($this->xmlobj[2]);
820 unset($this->xmlobj);
[all …]
/dports/www/moodle311/moodle/lib/jabber/XMPP/
H A DXMLStream.php96 protected $xmlobj = null; variable in BirknerAlex\\XMPPHP\\XMLStream
636 if (is_array($this->xmlobj) && array_key_exists(2, $this->xmlobj)) {
637 $searchxml = $this->xmlobj[2];
659 } elseif(is_array($this->xmlobj) and array_key_exists(2, $this->xmlobj)) {
669 if(array_key_exists('id', $this->xmlobj[2]->attrs) and $this->xmlobj[2]->attrs['id'] == $id) {
677 if(is_array($this->xmlobj)) {
678 $this->xmlobj = array_slice($this->xmlobj, 0, 1);
679 if(isset($this->xmlobj[0]) && $this->xmlobj[0] instanceof XMLObj) {
683 unset($this->xmlobj[2]);
820 unset($this->xmlobj);
[all …]
/dports/biology/ncbi-cxx-toolkit/ncbi_cxx--25_2_0/src/objtools/flatfile/
H A Dxmlmisc.h44 typedef struct xmlobj { struct
48 struct xmlobj *attributes; argument
49 struct xmlobj *children; argument
50 struct xmlobj *next; argument
51 struct xmlobj *parent; argument
52 struct xmlobj *successor; /* linearizes a recursive exploration */ argument
/dports/deskutils/virt-manager/virt-manager-3.2.0/virtManager/device/
H A Dmediacombo.py94 if not (nodedev.xmlobj.device_type == "storage" and
95 nodedev.xmlobj.drive_type in ["cdrom", "floppy"]):
97 if nodedev.xmlobj.drive_type != media_type:
100 media_label = nodedev.xmlobj.media_label or _("Media Unknown")
101 if not nodedev.xmlobj.media_available:
103 label = "%s (%s)" % (media_label, nodedev.xmlobj.block)
105 row = self._make_row(nodedev.xmlobj.block, label,
106 nodedev.xmlobj.media_available,
107 nodedev.xmlobj.name)
/dports/textproc/p5-XML-SimpleObject/XML-SimpleObject0.53/LibXML/
H A Dex.pl19 my $xmlobj = new XML::SimpleObject::LibXML(XML => $XML);
29 foreach my $element ($xmlobj->child("files")->children("file"))
43 my $filesobj = $xmlobj->child("files")->child("file");
52 my $filesobj = $xmlobj->child("files");
H A Dtest.pl36 my $xmlobj = new XML::SimpleObject::LibXML ($parser->parse_string($XML));
39 foreach my $element ($xmlobj->child("files")->children("file"))
/dports/textproc/p5-XML-SimpleObject/XML-SimpleObject0.53/
H A Dex.pl20 my $xmlobj = new XML::SimpleObject(XML => $XML, ErrorContext => 2);
29 foreach my $element ($xmlobj->child("files")->children("file"))
43 my $filesobj = $xmlobj->child("files")->child("file");
52 my $filesobj = $xmlobj->child("files");
/dports/deskutils/virt-manager/virt-manager-3.2.0/virtinst/
H A Dvirtxml.py240 def start_domain_transient(conn, xmlobj, devs, action, confirm): argument
243 _("Start '%s' with the changed XML?") % xmlobj.name):
251 dom = conn.createXML(xmlobj.get_xml())
254 "vm": xmlobj.name,
309 def prepare_changes(xmlobj, options, parserclass): argument
310 origxml = xmlobj.get_xml()
320 cli.parse_xmlcli(xmlobj, options)
322 devs = action_edit(xmlobj, options, parserclass)
326 devs = action_add_device(xmlobj, options, parserclass)
330 devs = action_remove_device(xmlobj, options, parserclass)
[all …]
/dports/deskutils/virt-manager/virt-manager-3.2.0/virtManager/
H A Dcreatevol.py57 parent_xml = self._parent_pool.xmlobj.get_xml()
182 dtype = self._parent_pool.xmlobj.get_disk_type()
258 xmlobj = self._build_xmlobj_from_ui()
260 xmlobj = self._build_xmlobj_from_xmleditor()
261 return xmlobj
323 xmlobj = self._build_xmlobj(check_xmleditor=False)
324 self._xmleditor.set_xml(xmlobj and xmlobj.get_xml() or "")
H A Dcreatenet.py158 if not pcidev.xmlobj.is_pci_sriov():
162 if pcidev.xmlobj.name != netdev.xmlobj.parent:
164 ifname = netdev.xmlobj.interface
403 xmlobj = self._build_xmlobj_from_ui()
405 xmlobj = self._build_xmlobj_from_xmleditor()
406 return xmlobj
461 xmlobj = self._build_xmlobj(check_xmleditor=False)
462 self._xmleditor.set_xml(xmlobj and xmlobj.get_xml() or "")
H A Dcreatepool.py159 host_list = [dev.xmlobj.host for dev in scsi_hosts]
313 xmlobj = self._build_xmlobj_from_ui()
315 xmlobj = self._build_xmlobj_from_xmleditor()
316 return xmlobj
374 xmlobj = self._build_xmlobj(check_xmleditor=False)
375 self._xmleditor.set_xml(xmlobj and xmlobj.get_xml() or "")
H A Daddhardware.py743 default = DeviceSound.default_model(vm.xmlobj)
767 if dev.xmlobj.is_usb_linux_root_hub():
769 if dev.xmlobj.is_pci_bridge():
775 if dev.xmlobj.name == subdev.xmlobj.parent:
778 model.append([dev.xmlobj, prettyname])
792 default = DeviceVideo.default_model(vm.xmlobj)
868 if vm.xmlobj.os.is_pseries():
1063 for i in self.vm.xmlobj.devices.disk:
1185 controllers = self.vm.xmlobj.devices.controller
1336 for hostdev in vm.xmlobj.devices.hostdev:
[all …]
/dports/net-mgmt/nagstamon/Nagstamon-3.8.0/Nagstamon/Servers/
H A DCentreon.py358 if len(xmlobj) != 0:
359 ip = str(xmlobj.l.a.text)
380 del xmlobj
606 if len(xmlobj) == 0:
612 if xmlobj.text.lower() == 'bad session id':
613 del xmlobj
634 for l in xmlobj.findAll('l'):
670 del xmlobj
692 if len(xmlobj) == 0:
758 for l in xmlobj.findAll('l'):
[all …]
/dports/misc/py-cinder/cinder-12.0.10/cinder/volume/drivers/nec/
H A Dvolume_common.py397 for xmlobj in root.xpath('./'
405 {'line': xmlobj.sourceline, 'out': xml})
441 for section in xmlobj.xpath('./SECTION[@name='
543 for xmlobj in root.xpath('./'
550 for unit in xmlobj.xpath('./SECTION[@name="Portal"]/'
555 for unit in xmlobj.xpath('./SECTION[@name="Initiator List"]/'
559 section = xmlobj.find('./SECTION[@name="LD Set(iSCSI)'
618 for section in xmlobj.xpath('./SECTION[@name='
668 for xmlobj in root.xpath('./'
673 section = xmlobj.find('./SECTION[@name="LD Set(FC)'
[all …]
/dports/deskutils/virt-manager/virt-manager-3.2.0/virtManager/details/
H A Dsnapshots.py171 if not self.vm.xmlobj.devices.graphics:
509 xmlobj = snap and snap.get_xmlobj() or None
510 name = snap and xmlobj.name or ""
511 desc = snap and xmlobj.description or ""
520 xmlobj.creationTime))
541 is_mem = xmlobj.memory_type == "external"
542 is_disk = [d.snapshot == "external" for d in xmlobj.disks]
586 xmlobj = snap.get_xmlobj()
587 origxml = xmlobj.get_xml()
588 xmlobj.description = desc
[all …]
H A Ddetails.py1872 vm_memory = self.vm.xmlobj.memory
1909 cpu = self.vm.xmlobj.cpu
1924 vcpus = self.vm.xmlobj.vcpus
2198 if (self.vm.xmlobj.devices.graphics and
2456 serials = self.vm.xmlobj.devices.serial
2460 disks = self.vm.xmlobj.devices.disk
2465 for dev in self.vm.xmlobj.devices.input:
2469 for dev in self.vm.xmlobj.devices.sound:
2483 for dev in self.vm.xmlobj.devices.video:
2505 for dev in self.vm.xmlobj.devices.tpm:
[all …]
/dports/net-im/psi/psi-1.5/src/plugins/deprecated/python/
H A Dxmlmessage.py3 class xmlobj(object): class
57 self.root = xmlobj()
73 newelement = xmlobj() # start a new element
H A Dmessagescript.py3 class xmlobj(object): class
57 self.root = xmlobj()
73 newelement = xmlobj() # start a new element

1234