Beispiel #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
Beispiel #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
Beispiel #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
Beispiel #4
0
    def __init__(self, locator=None):
        DBVistrail.__init__(self)

        self.locator = locator
        self.set_defaults()
Beispiel #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
Beispiel #6
0
    def __init__(self, locator=None):
        DBVistrail.__init__(self)

        self.locator = locator
        self.set_defaults()