def __init__(self, id, vt_version, id_scope=None): DBMashuptrail.__init__(self, None, id, version="", vtVersion=vt_version) self.db_actions = [] self.currentVersion = -1 self.db_annotations = [] self.db_actionAnnotations = [] if not id_scope: self.id_scope = IdScope(1L) else: self.id_scope = id_scope
def do_copy(self, new_ids=False, id_scope=None, id_remap=None): """do_copy() -> Mashuptrail returns a clone of itself""" cp = DBMashuptrail.do_copy(self, new_ids, id_scope, id_remap) Mashuptrail.convert(cp) cp.currentVersion = self.currentVersion return cp