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'
def get(self, object, data, name): value = BaseObjectSet.get(self, object, data, name) if value is not None: return value else: return set()