def do_copy(self):
     cp = DBProvDocument.__copy__(self)
     cp.__class__ = ProvDocument
     cp.log = self.log
     cp.workflow = self.workflow
     cp.version = self.version
     cp.registry = self.registry
     return cp
 def do_copy(self):
     cp = DBProvDocument.__copy__(self)
     cp.__class__ = ProvDocument
     cp.log = self.log
     cp.workflow = self.workflow
     cp.version = self.version
     cp.registry = self.registry
     return cp
Beispiel #3
0
def create_prov_document(entities, activities, agents, connections, usages,
                         generations, associations):
    return DBProvDocument(prov_entitys=entities,
                          prov_activitys=activities,
                          prov_agents=agents,
                          vt_connections=connections,
                          prov_usages=usages,
                          prov_generations=generations,
                          prov_associations=associations)
 def __init__(self, *args, **kwargs):
     if 'log' in kwargs:
         self.log = kwargs['log']
         del kwargs['log']
     else:
         self.log = None
     if 'workflow' in kwargs:
         self.workflow = kwargs['workflow']
         del kwargs['workflow']
     else:
         self.workflow = None
     if 'registry' in kwargs:
         self.registry = kwargs['registry']
         del kwargs['registry']
     else:
         self.registry = None
     if 'version' in kwargs:
         self.version = kwargs['version']
         del kwargs['version']
     else:
         self.version = None
     DBProvDocument.__init__(self, *args, **kwargs)
 def __init__(self, *args, **kwargs):
     if 'log' in kwargs:
         self.log = kwargs['log']
         del kwargs['log']
     else:
         self.log = None
     if 'workflow' in kwargs:
         self.workflow = kwargs['workflow']
         del kwargs['workflow']
     else:
         self.workflow = None
     if 'registry' in kwargs:
         self.registry = kwargs['registry']
         del kwargs['registry']
     else:
         self.registry = None
     if 'version' in kwargs:
         self.version = kwargs['version']
         del kwargs['version']
     else:
         self.version = None
     DBProvDocument.__init__(self, *args, **kwargs)