Пример #1
0
 def __init__(self, label=''):
     self.created = datetime.now()
     self.label = label
     self.history = "%s > New %s" %(self.created, self.__class__.__name__)
     if label == '':
         label = unique_id()
     if not pyfusion.orm_manager.IS_ACTIVE:
         self.data_items = []
Пример #2
0
 def __init__(self, label=""):
     self.meta = PfMetaData()
     self.created = datetime.now()
     self.history = "%s > New %s" % (self.created, self.__class__.__name__)
     if label == "":
         label = unique_id()
     self.label = label
     if not pyfusion.orm_manager.IS_ACTIVE:
         self.data = list()  # python3 - was set(), but can't be hashed (see also .add()
Пример #3
0
 def __init__(self, label=''):
     self.meta = PfMetaData()
     self.created = datetime.now()
     self.history = "%s > New %s" %(self.created, self.__class__.__name__)
     if label == '':
         label = unique_id()
     self.label = label
     if not pyfusion.orm_manager.IS_ACTIVE:
         self.data = list()  # python3 - was set(), but can't be hashed (see also .add()
Пример #4
0
 def __init__(self, label=''):
     #SH added this to make it more compatible with DataSet
     self.meta = PfMetaData()
     self.created = datetime.now()
     self.label = label
     self.history = "%s > New %s" %(self.created, self.__class__.__name__)
     if label == '':
         label = unique_id()
     if not pyfusion.orm_manager.IS_ACTIVE:
         self.data_items = []
Пример #5
0
 def __init__(self, label=''):
     #SH added this to make it more compatible with DataSet
     self.meta = PfMetaData()
     self.created = datetime.now()
     self.label = label
     self.history = "%s > New %s" % (self.created, self.__class__.__name__)
     if label == '':
         label = unique_id()
     if not pyfusion.orm_manager.IS_ACTIVE:
         self.data_items = []