当前位置: 首页>>代码示例>>Python>>正文


Python PersistentDataObject.__init__方法代码示例

本文整理汇总了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
开发者ID:mcruse,项目名称:monotone,代码行数:10,代码来源:trap_exporter.py

示例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)
开发者ID:mcruse,项目名称:monotone,代码行数:10,代码来源:testing.py

示例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)
开发者ID:,项目名称:,代码行数:14,代码来源:

示例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()
开发者ID:mcruse,项目名称:monotone,代码行数:6,代码来源:user.py

示例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
开发者ID:mcruse,项目名称:monotone,代码行数:7,代码来源:brivo.py

示例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)
开发者ID:mcruse,项目名称:monotone,代码行数:6,代码来源:backup.py

示例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()
开发者ID:mcruse,项目名称:monotone,代码行数:8,代码来源:log_0.py

示例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()
开发者ID:mcruse,项目名称:monotone,代码行数:7,代码来源:__init__.py


注:本文中的mpx.lib.persistent.PersistentDataObject.__init__方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。