Example #1
0
 def __init__(self, library_name, xmltag=None, optional=False):
     BaseObjectSet.__init__(self, optional=optional, xml="tag")
     self.library_name = library_name
     if xmltag is not None:
         self.xmltag = xmltag
     else:
         self.xmltag = library_name[:-1]   # 'applications' => 'application'
Example #2
0
 def get(self, object, data, name):
     value = BaseObjectSet.get(self, object, data, name)
     if value is not None:
         return value
     else:
         return set()