本文整理汇总了Python中mpx.lib.persistent.PersistentDataObject.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python PersistentDataObject.__init__方法的具体用法?Python PersistentDataObject.__init__怎么用?Python PersistentDataObject.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类mpx.lib.persistent.PersistentDataObject
的用法示例。
在下文中一共展示了PersistentDataObject.__init__方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from mpx.lib.persistent import PersistentDataObject [as 别名]
# 或者: from mpx.lib.persistent.PersistentDataObject import __init__ [as 别名]
def __init__(self, node):
self.__lock = Lock()
self.__last_save = {}
self.max_seq = -1
self.pending_seqs = []
self.inprocess_seqs = []
PersistentDataObject.__init__(self, node, auto_load=True)
return
示例2: __init__
# 需要导入模块: from mpx.lib.persistent import PersistentDataObject [as 别名]
# 或者: from mpx.lib.persistent.PersistentDataObject import __init__ [as 别名]
def __init__(self, *args, **kw):
self.integer = None
self.integers = None
self.letters = None
self.letterset = None
self.letterlist = None
self.letterdict = None
PDO.__init__(self, *args, **kw)
示例3: __init__
# 需要导入模块: from mpx.lib.persistent import PersistentDataObject [as 别名]
# 或者: from mpx.lib.persistent.PersistentDataObject import __init__ [as 别名]
def __init__(self, name, password_file=PASSWD_FILE, group_file=GROUP_FILE, shadow_file=SHADOW_FILE):
self.__lock = Lock()
self.__password_file = password_file
self.__group_file = group_file
self.__shadow_file = shadow_file
self.meta = {}
self.USERS.load()
if not self.USERS.has_key(self.name()):
msglog.log("broadway", msglog.types.INFO, ("No profile for user %s found, creating" " new profile" % name))
self.USERS[self.name()] = str(UUID())
PersistentDataObject.__init__(self, self.USERS[self.name()])
PersistentDataObject.load(self)
示例4: __init__
# 需要导入模块: from mpx.lib.persistent import PersistentDataObject [as 别名]
# 或者: from mpx.lib.persistent.PersistentDataObject import __init__ [as 别名]
def __init__(self):
PersistentDataObject.__init__(self,'mpx.lib.user._UserDictionary')
self.users = {}
self.__lock = Lock()
示例5: __init__
# 需要导入模块: from mpx.lib.persistent import PersistentDataObject [as 别名]
# 或者: from mpx.lib.persistent.PersistentDataObject import __init__ [as 别名]
def __init__(self, node):
self.array = []
PersistentDataObject.__init__(self, node)
PersistentDataObject.load(self)
return
示例6: __init__
# 需要导入模块: from mpx.lib.persistent import PersistentDataObject [as 别名]
# 或者: from mpx.lib.persistent.PersistentDataObject import __init__ [as 别名]
def __init__(self, node):
self.entries = None
PersistentDataObject.__init__(self, node)
PersistentDataObject.load(self)
示例7: __init__
# 需要导入模块: from mpx.lib.persistent import PersistentDataObject [as 别名]
# 或者: from mpx.lib.persistent.PersistentDataObject import __init__ [as 别名]
def __init__(self, name):
PersistentDataObject.__init__(self, name)
self.seq = 0
self.column_data = {}
self.load()
self._build_lookup()
示例8: __init__
# 需要导入模块: from mpx.lib.persistent import PersistentDataObject [as 别名]
# 或者: from mpx.lib.persistent.PersistentDataObject import __init__ [as 别名]
def __init__(self,node):
self._lock = Lock()
self.id = 0
PersistentDataObject.__init__(self,node)
self.load()