def __init__(self, cloud, cloudAlias, store, uuid, version, generator): ItemFilter.__init__(self, store, uuid, version, generator) self.cloud = cloud self.cloudAlias = cloudAlias self.endpoints = {}
def parse(self, xml, uuids): ItemFilter.parse(self, xml) for uuid, endpoints in self.endpoints.iteritems(): if not uuid in uuids: doc = self.store.loadItem(self.version, uuid) if doc is None: raise NoSuchItemError, (uuid, self.version) xml = doc.getContent() for endpoint in endpoints: endpoint.writeItems(1, uuid, self.version, self.generator, xml, uuids)
def __init__(self, endpoint, store, uuid, version, generator): ItemFilter.__init__(self, store, uuid, version, generator) self.endpoint = endpoint