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 = []
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()
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()
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 = []
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 = []