Added dcFileNames argument to constructors

This commit is contained in:
Josh Yelon 2005-11-07 19:17:47 +00:00
parent 9ae159c066
commit 6c3677e07a
2 changed files with 4 additions and 4 deletions

View File

@ -24,7 +24,7 @@ class ClientRepository(ConnectionRepository):
"""
notify = DirectNotifyGlobal.directNotify.newCategory("ClientRepository")
def __init__(self):
def __init__(self, dcFileNames = None):
self.dcSuffix=""
ConnectionRepository.__init__(self, base.config, hasOwnerView=True)
@ -33,7 +33,7 @@ class ClientRepository(ConnectionRepository):
self.recorder = base.recorder
self.readDCFile()
self.readDCFile(dcFileNames)
self.cache=CRCache.CRCache()
self.cacheOwner=CRCache.CRCache()
self.serverDelta = 0

View File

@ -17,7 +17,7 @@ class ServerRepository:
notify = DirectNotifyGlobal.directNotify.newCategory("ClientRepository")
def __init__(self, tcpPort, udpPort):
def __init__(self, tcpPort, udpPort, dcFileNames = None):
self.qcm = QueuedConnectionManager()
self.qcl = QueuedConnectionListener(self.qcm, 0)
self.qcr = QueuedConnectionReader(self.qcm, 0)
@ -41,7 +41,7 @@ class ServerRepository:
self.ZonetoDOIDs = {}
self.dcFile = DCFile()
self.dcSuffix = ''
self.readDCFile()
self.readDCFile(dcFileNames)
def importModule(self, dcImports, moduleName, importSymbols):
""" Imports the indicated moduleName and all of its symbols