--- a/etwist/server.py Tue Aug 04 00:54:41 2009 +0200
+++ b/etwist/server.py Tue Aug 04 14:49:05 2009 +0200
@@ -109,7 +109,7 @@
self.pyro_listen_timeout = 0.02
start_task(1, self.pyro_loop_event)
self.appli.repo.start_looping_tasks()
- self.url_rewriter = self.appli.vreg.select_object('components', 'urlrewriter')
+ self.url_rewriter = self.appli.vreg['components'].select_object('urlrewriter')
interval = min(config['cleanup-session-time'] or 120,
config['cleanup-anonymous-session-time'] or 720) / 2.
start_task(interval, self.appli.session_handler.clean_sessions)
--- a/web/views/iprogress.py Tue Aug 04 00:54:41 2009 +0200
+++ b/web/views/iprogress.py Tue Aug 04 14:49:05 2009 +0200
@@ -48,7 +48,7 @@
self.req.add_css('cubicweb.iprogress.css')
_ = self.req._
self.columns = columns or self.columns
- ecls = self.vreg.etype_class(self.rset.description[0][0])
+ ecls = self.vreg['etypes'].etype_class(self.rset.description[0][0])
self.w(u'<table class="progress">')
self.table_header(ecls)
self.w(u'<tbody>')
@@ -168,8 +168,8 @@
id = 'ic_progress_table_view'
def call(self):
- view = self.vreg.select('views', 'progress_table_view', self.req,
- rset=self.rset)
+ view = self.vreg['views'].select('progress_table_view', self.req,
+ rset=self.rset)
columns = list(view.columns)
try:
columns.remove('project')
--- a/web/views/management.py Tue Aug 04 00:54:41 2009 +0200
+++ b/web/views/management.py Tue Aug 04 14:49:05 2009 +0200
@@ -160,7 +160,7 @@
self.w(self.req._('no associated permissions'))
def require_permission_edit_form(self, entity):
- newperm = self.vreg.etype_class('CWPermission')(self.req, None)
+ newperm = self.vreg['etypes'].etype_class('CWPermission')(self.req)
newperm.eid = self.req.varmaker.next()
self.w(u'<p>%s</p>' % self.req._('add a new permission'))
form = self.vreg['forms'].select('base', self.req, entity=newperm,