def load(self, type): fname = self.get_temporary() if fname: obj = io.open_from_xml(fname, type) else: obj = DBVistrail() obj.locator = self return obj
def do_copy(self, new_ids=False, id_scope=None, id_remap=None): cp = DBVistrail.do_copy(self, new_ids, id_scope, id_remap) cp.__class__ = Vistrail cp.locator = copy.copy(self.locator) cp.set_defaults(self) return cp
def __init__(self, locator=None): DBVistrail.__init__(self) self.locator = locator self.set_defaults()