本文整理匯總了Python中repository.Repository.__init__方法的典型用法代碼示例。如果您正苦於以下問題:Python Repository.__init__方法的具體用法?Python Repository.__init__怎麽用?Python Repository.__init__使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類repository.Repository
的用法示例。
在下文中一共展示了Repository.__init__方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: __init__
# 需要導入模塊: from repository import Repository [as 別名]
# 或者: from repository.Repository import __init__ [as 別名]
def __init__(self, filename=None):
if not filename:
raise FileRepositoryException("Please set a filename")
self._filename = filename
Repository.__init__(self)
self._load()
示例2: __init__
# 需要導入模塊: from repository import Repository [as 別名]
# 或者: from repository.Repository import __init__ [as 別名]
def __init__(self, repoid, repoConfig, maxFileLength=1024*1024*1024*2,
retryTime=3, socketTimeout=5):
Repository.__init__(self, repoid)
self.repoConfig = repoConfig
self.cachedir = None
self.expireTime = None
self.enabled = bool(repoConfig.enabled)
self.maxFileLength = maxFileLength
self.retryTime = retryTime
self.socketTimeout = socketTimeout
示例3: __init__
# 需要導入模塊: from repository import Repository [as 別名]
# 或者: from repository.Repository import __init__ [as 別名]
def __init__(self):
Repository.__init__(self, 'mysql_chat_db')
示例4: __init__
# 需要導入模塊: from repository import Repository [as 別名]
# 或者: from repository.Repository import __init__ [as 別名]
def __init__(self, name, phone_number, email):
self.name = name
self.phone_number = phone_number
self.email = email
Repository.__init__(self)
示例5: __init__
# 需要導入模塊: from repository import Repository [as 別名]
# 或者: from repository.Repository import __init__ [as 別名]
def __init__(self, connection):
Repository.__init__(self, connection)
# super(self.__class__, self).__init__(connection)
self._connection = connection
Observable.__init__(self)
示例6: __init__
# 需要導入模塊: from repository import Repository [as 別名]
# 或者: from repository.Repository import __init__ [as 別名]
def __init__(self, host, port, database, user, password):
Repository.__init__(self, host, port, database, user, password)
示例7: __init__
# 需要導入模塊: from repository import Repository [as 別名]
# 或者: from repository.Repository import __init__ [as 別名]
def __init__(self, host, port, database, user, password):
Repository.__init__(self, host, port, database, user, password)
self.__address_repo = AddressRepository(host, port, database, user, password)