From: Cedric B. <wo...@in...> - 2005-07-12 14:06:56
|
ii python2.3-sqlobject 0.6-1 Python 2.3 module for SQLObject hi, I discover sqlobject yesterday. looks really promising ! I was trying to understand how ``ConnectionURIOpener'' was working when bump into this: class ConnectionURIOpener(object): def __init__(self): self.schemeBuilders = {} self.schemeSupported = {} self.instanceNames = {} self.cachedURIs = {} def registerConnection(self, schemes, builder, isSupported): for uriScheme in schemes: assert not self.schemeBuilders.has_key(uriScheme) \ or self.schemeBuilders[uriScheme] is builder, \ "A driver has already been registered for the URI scheme %s" % uriScheme self.schemeBuilders[uriScheme] = builder self.schemeSupported = isSupported ^-------shouldn't be:self.schemeSupported[uriScheme]=isSupported Ced. -- Cedric BRINER |