Пример #1
0
 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
Пример #2
0
 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
Пример #3
0
 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
Пример #4
0
    def __init__(self, locator=None):
        DBVistrail.__init__(self)

        self.locator = locator
        self.set_defaults()
Пример #5
0
 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
Пример #6
0
    def __init__(self, locator=None):
        DBVistrail.__init__(self)

        self.locator = locator
        self.set_defaults()