コード例 #1
0
ファイル: xmlgen.py プロジェクト: BackupTheBerlios/paella-svn
 def reform(self, element):
     name = element.tagName.encode()
     if name != 'package':
         raise Error, 'bad package tag'
     package = element.firstChild.data.encode()
     action = element.getAttribute('action').encode()
     TextElement.__init__(self, package, action)
コード例 #2
0
ファイル: xmlgen.py プロジェクト: pombredanne/paella-svn
 def __init__(self, package, template, mode='0100644',
              owner='root', grp_owner='root'):
     TextElement.__init__(self, 'template', template)
     self.setAttribute('package', package)
     self.setAttribute('mode', mode)
     self.setAttribute('owner', owner)
     self.setAttribute('grp_owner', grp_owner)
コード例 #3
0
ファイル: xmlgen.py プロジェクト: pombredanne/paella-svn
 def reform(self, element):
     name = element.tagName.encode()
     if name != 'package':
         raise Error, 'bad package tag'
     package = element.firstChild.data.encode()
     action = element.getAttribute('action').encode()
     TextElement.__init__(self, package, action)
コード例 #4
0
ファイル: xmlgen.py プロジェクト: BackupTheBerlios/paella-svn
 def __init__(self, package, template, mode='0100644',
              owner='root', grp_owner='root'):
     TextElement.__init__(self, 'template', template)
     self.setAttribute('package', package)
     self.setAttribute('mode', mode)
     self.setAttribute('owner', owner)
     self.setAttribute('grp_owner', grp_owner)
コード例 #5
0
ファイル: xmlgen.py プロジェクト: joelsefus/paella
 def __init__(self, name):
     TextElement.__init__(self, 'kernel', name)
コード例 #6
0
 def __init__(self, family):
     TextElement.__init__(self, 'family', family)
コード例 #7
0
 def __init__(self, mtype, module, order):
     TextElement.__init__(self, 'module', module)
     self.setAttribute('machine_type', mtype)
     self.setAttribute('order', order)
コード例 #8
0
 def __init__(self, machine, machine_type, kernel, profile, filesystem):
     TextElement.__init__(self, 'machine', machine)
     self.setAttribute('machine_type', machine_type)
     self.setAttribute('kernel', kernel)
     self.setAttribute('profile', profile)
     self.setAttribute('filesystem', filesystem)
コード例 #9
0
 def __init__(self, name):
     TextElement.__init__(self, 'kernel', name)
コード例 #10
0
ファイル: xmlgen.py プロジェクト: BackupTheBerlios/paella-svn
 def __init__(self, parent):
     TextElement.__init__(self, 'parent', parent)
コード例 #11
0
ファイル: xmlgen.py プロジェクト: BackupTheBerlios/paella-svn
 def __init__(self, mtype, module, order):
     TextElement.__init__(self, "module", module)
     self.setAttribute("machine_type", mtype)
     self.setAttribute("order", order)
コード例 #12
0
ファイル: xmlgen.py プロジェクト: BackupTheBerlios/paella-svn
 def __init__(self, name):
     TextElement.__init__(self, "kernel", name)
コード例 #13
0
ファイル: xmlgen.py プロジェクト: BackupTheBerlios/paella-svn
 def __init__(self, package, action='install'):
     TextElement.__init__(self, 'package', package)
     self.setAttribute('action', action)
     self.package = package
     self.action = action
コード例 #14
0
ファイル: xmlgen.py プロジェクト: pombredanne/paella-svn
 def __init__(self, parent):
     TextElement.__init__(self, 'parent', parent)
コード例 #15
0
ファイル: xmlgen.py プロジェクト: pombredanne/paella-svn
 def __init__(self, etype, trait, name, value):
     TextElement.__init__(self, etype, value)
     self.setAttribute('trait', trait)
     self.setAttribute('name', name)
コード例 #16
0
ファイル: xmlgen.py プロジェクト: pombredanne/paella-svn
 def __init__(self, package, action='install'):
     TextElement.__init__(self, 'package', package)
     self.setAttribute('action', action)
     self.package = package
     self.action = action
コード例 #17
0
ファイル: xmlgen.py プロジェクト: BackupTheBerlios/paella-svn
 def __init__(self, family):
     TextElement.__init__(self, "family", family)
コード例 #18
0
ファイル: xmlgen.py プロジェクト: joelsefus/paella
 def __init__(self, family):
     TextElement.__init__(self, 'family', family)
コード例 #19
0
ファイル: xmlgen.py プロジェクト: BackupTheBerlios/paella-svn
 def __init__(self, etype, trait, name, value):
     TextElement.__init__(self, etype, value)
     self.setAttribute('trait', trait)
     self.setAttribute('name', name)
コード例 #20
0
ファイル: xmlgen.py プロジェクト: BackupTheBerlios/paella-svn
 def __init__(self, machine, machine_type, kernel, profile, filesystem):
     TextElement.__init__(self, "machine", machine)
     self.setAttribute("machine_type", machine_type)
     self.setAttribute("kernel", kernel)
     self.setAttribute("profile", profile)
     self.setAttribute("filesystem", filesystem)