added verbose-*repository configs

This commit is contained in:
Darren Ranalli 2007-02-22 01:05:24 +00:00
parent 8148d09ddb
commit 7ad04f5061
2 changed files with 5 additions and 1 deletions

View File

@ -26,6 +26,9 @@ class ClientRepositoryBase(ConnectionRepository):
def __init__(self, dcFileNames = None):
self.dcSuffix=""
ConnectionRepository.__init__(self, ConnectionRepository.CM_HTTP, base.config, hasOwnerView=True)
if hasattr(self, 'setVerbose'):
if self.config.GetBool('verbose-clientrepository'):
self.setVerbose(1)
self.context=100000
self.setClientDatagram(1)

View File

@ -42,7 +42,8 @@ class ConnectionRepository(
self.config = config
if hasattr(self, 'setVerbose'):
self.setVerbose(self.config.GetBool('verbose-repository', 0))
if self.config.GetBool('verbose-repository'):
self.setVerbose(1)
# Set this to 'http' to establish a connection to the server
# using the HTTPClient interface, which ultimately uses the