cwconfig.py
changeset 10568 3914388b2d0f
parent 10567 c316e0049b9c
child 10589 7c23b7de2b8d
--- a/cwconfig.py	Wed Jul 09 15:50:23 2014 +0200
+++ b/cwconfig.py	Wed Jul 09 16:32:14 2014 +0200
@@ -994,6 +994,13 @@
         rtdir = abspath(os.environ.get('CW_RUNTIME_DIR', default))
         return join(rtdir, '%s-%s.pid' % (self.appid, self.name))
 
+    # config -> repository
+
+    def repository(self, vreg=None):
+        from cubicweb.server.repository import Repository
+        from cubicweb.server.utils import TasksManager
+        return Repository(self, TasksManager(), vreg=vreg)
+
     # instance methods used to get instance specific resources #############
 
     def __init__(self, appid, debugmode=False, creating=False):