def import_note(self, record): body = record.body if record.body is not None else eim.Inherit self.withItemForUUID(record.uuid, Item, body=body) if record.uuid == getMasterAlias(record.uuid): self.withItemForUUID(record.uuid, eim.EIM, ical_uid=empty_as_inherit(record, 'icalUid'), ical_extra=empty_as_inherit( record, 'icalExtra'))
def import_collectionmembership(self, record): # Don't add non-masters to collections: if record.itemUUID != getMasterAlias(record.itemUUID): return # Don't import Sidebar membership yet if record.collectionID == '@sidebar': return collection = eim.collection_for_name(record.collectionID) collection.add(eim.item_for_uuid(record.itemUUID))
def import_note(self, record): body = record.body if record.body is not None else eim.Inherit self.withItemForUUID(record.uuid, Item, body=body ) if record.uuid == getMasterAlias(record.uuid): self.withItemForUUID(record.uuid, eim.EIM, ical_uid = empty_as_inherit(record, 'icalUid'), ical_extra = empty_as_inherit(record, 'icalExtra') )