cwvreg.py
changeset 169 0e031b66cb0b
parent 0 b97547f5f1fa
child 213 6842c3dee34b
--- a/cwvreg.py	Fri Dec 05 17:25:45 2008 +0100
+++ b/cwvreg.py	Fri Dec 05 17:26:39 2008 +0100
@@ -27,9 +27,10 @@
 class CubicWebRegistry(VRegistry):
     """extend the generic VRegistry with some cubicweb specific stuff"""
     
-    def __init__(self, config, debug=None):
-        # first init log service
-        config.init_log(debug=debug)
+    def __init__(self, config, debug=None, initlog=True):
+        if initlog:
+            # first init log service
+            config.init_log(debug=debug)
         super(CubicWebRegistry, self).__init__(config)
         self.schema = None
         self.reset()
@@ -342,6 +343,7 @@
         return RQLHelper(self.schema,
                          special_relations={'eid': 'uid', 'has_text': 'fti'})
 
+
 class MulCnxCubicWebRegistry(CubicWebRegistry):
     """special registry to be used when an application has to deal with
     connections to differents repository. This class add some additional wrapper