diff -r 7685cec9fd3c -r f2ddfa555b0f doc/api/python/symrec.ReleaseMetadata-class.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/api/python/symrec.ReleaseMetadata-class.html Fri Sep 11 11:54:49 2009 +0100 @@ -0,0 +1,773 @@ + + + + + symrec.ReleaseMetadata + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + Module symrec :: + Class ReleaseMetadata + + + + + + +
[hide private]
[frames] | no frames]
+
+ +

Class ReleaseMetadata

source code

+
+object --+
+         |
+        ReleaseMetadata
+
+ +
+Create or read Metadata XML from SYMREC/SYMDEC.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
Instance Methods[hide private]
+
+   + + + + + + +
__init__(self, + filename, + service=None, + product=None, + release=None)
+ x.__init__(...) initializes x; see x.__class__.__doc__ for signature
+ source code + +
+ +
+   + + + + + + +
get_dependsof(self)
+ Return a ReleaseMetada object pointing to the dependency release.
+ source code + +
+ +
+   + + + + + + +
set_dependsof(self, + filename)
+ Setting the dependency release.
+ source code + +
+ +
+   + + + + + + +
add_package(self, + name, + type=None, + default=True, + filters=None, + extract="single", + md5checksum=None, + size=None)
+ Adding a package to the metadata file.
+ source code + +
+ +
+   + + + + + + +
keys(self) + source code + +
+ +
+   + + + + + + +
__getitem__(self, + key) + source code + +
+ +
+   + + + + + + +
__setitem__(self, + key, + value) + source code + +
+ +
+   + + + + + + +
set_releasedetails_info(self, + name, + value, + details="releaseID")
+ Generic function to set releaseid info.
+ source code + +
+ +
+   + + + + + + +
get_releasedetails_info(self, + name, + details="releaseID")
+ Generic function to extract releaseid info.
+ source code + +
+ +
+   + + + + + + +
getVariantPackage(self, + variant_name) + source code + +
+ +
+   + + + + + + +
xml(self)
+ Returning the XML as a string.
+ source code + +
+ +
+   + + + + + + +
save(self, + filename=None)
+ Saving the XML into the provided filename.
+ source code + +
+ +
+   + + + + + + +
servicepacks(self)
+ Getting the service pack names.
+ source code + +
+ +
+

Inherited from object: + __delattr__, + __getattribute__, + __hash__, + __new__, + __reduce__, + __reduce_ex__, + __repr__, + __setattr__, + __str__ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
Class Variables[hide private]
+
+   + + filename = property(lambda self: self._filename) +
+   + + service = property(lambda self: self.get_releasedetails_info('... +
+   + + product = property(lambda self: self.get_releasedetails_info('... +
+   + + release = property(lambda self: self.get_releasedetails_info('... +
+   + + dependsof_service = property(lambda self: self.get_releasedeta... +
+   + + dependsof_product = property(lambda self: self.get_releasedeta... +
+   + + dependsof_release = property(lambda self: self.get_releasedeta... +
+   + + baseline_service = property(lambda self: self.get_releasedetai... +
+   + + baseline_product = property(lambda self: self.get_releasedetai... +
+   + + baseline_release = property(lambda self: self.get_releasedetai... +
+ + + + + + + + + +
+ + + + + +
Properties[hide private]
+
+

Inherited from object: + __class__ +

+
+ + + + + + +
+ + + + + +
Method Details[hide private]
+
+ +
+ +
+ + +
+

__init__(self, + filename, + service=None, + product=None, + release=None) +
(Constructor) +

+
source code  +
+ + x.__init__(...) initializes x; see x.__class__.__doc__ for signature +
+
Overrides: + object.__init__ +
(inherited documentation)
+ +
+
+
+ +
+ +
+ + +
+

servicepacks(self) +

+
source code  +
+ + Getting the service pack names. +
+
Decorators:
+
    +
  • @property
  • +
+
+
+
+
+ + + + + + +
+ + + + + +
Class Variable Details[hide private]
+
+ +
+ +
+

service

+ +
+
+
+
Value:
+
+property(lambda self: self.get_releasedetails_info('service'), lambda \
+self, value: self.set_releasedetails_info('service', value))
+
+
+
+
+
+ +
+ +
+

product

+ +
+
+
+
Value:
+
+property(lambda self: self.get_releasedetails_info('product'), lambda \
+self, value: self.set_releasedetails_info('product', value))
+
+
+
+
+
+ +
+ +
+

release

+ +
+
+
+
Value:
+
+property(lambda self: self.get_releasedetails_info('release'), lambda \
+self, value: self.set_releasedetails_info('release', value))
+
+
+
+
+
+ +
+ +
+

dependsof_service

+ +
+
+
+
Value:
+
+property(lambda self: self.get_releasedetails_info('service', 'depends\
+Of'), lambda self, value: self.set_releasedetails_info('service', valu\
+e, 'dependsOf'))
+
+
+
+
+
+ +
+ +
+

dependsof_product

+ +
+
+
+
Value:
+
+property(lambda self: self.get_releasedetails_info('product', 'depends\
+Of'), lambda self, value: self.set_releasedetails_info('product', valu\
+e, 'dependsOf'))
+
+
+
+
+
+ +
+ +
+

dependsof_release

+ +
+
+
+
Value:
+
+property(lambda self: self.get_releasedetails_info('release', 'depends\
+Of'), lambda self, value: self.set_releasedetails_info('release', valu\
+e, 'dependsOf'))
+
+
+
+
+
+ +
+ +
+

baseline_service

+ +
+
+
+
Value:
+
+property(lambda self: self.get_releasedetails_info('service', 'previou\
+sBaseline'), lambda self, value: self.set_releasedetails_info('service\
+', value, 'previousBaseline'))
+
+
+
+
+
+ +
+ +
+

baseline_product

+ +
+
+
+
Value:
+
+property(lambda self: self.get_releasedetails_info('product', 'previou\
+sBaseline'), lambda self, value: self.set_releasedetails_info('product\
+', value, 'previousBaseline'))
+
+
+
+
+
+ +
+ +
+

baseline_release

+ +
+
+
+
Value:
+
+property(lambda self: self.get_releasedetails_info('release', 'previou\
+sBaseline'), lambda self, value: self.set_releasedetails_info('release\
+', value, 'previousBaseline'))
+
+
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + +