[views] API fix: select_object is a vreg method stable
authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>
Thu, 04 Jun 2009 17:53:33 +0200
branchstable
changeset 2040 c865cc7100ca
parent 2039 6c036e4d9ad4
child 2041 296e897ab8e1
[views] API fix: select_object is a vreg method
web/views/management.py
--- a/web/views/management.py	Thu Jun 04 17:21:29 2009 +0200
+++ b/web/views/management.py	Thu Jun 04 17:53:33 2009 +0200
@@ -184,8 +184,8 @@
         form.append_field(field)
         field = guess_field(cwpermschema, self.schema.rschema('require_group'))
         form.append_field(field)
-        renderer = self.select_object('formrenderers', 'htable', self.req,
-                                      display_progress_div=False)
+        renderer = self.vreg.select_object('formrenderers', 'htable', self.req,
+                                           rset=None, display_progress_div=False)
         self.w(form.form_render(renderer=renderer))
 
 
@@ -242,7 +242,7 @@
         submiturl = self.config['submit-url']
         submitmail = self.config['submit-mail']
         if submiturl or submitmail:
-            form = self.select_object('forms', 'base', self.req, set_error_url=False)
+            form = self.vreg.select_object('forms', 'base', self.req, rset=None, set_error_url=False)
             binfo = text_error_description(ex, excinfo, req, eversion, cversions)
             form.form_add_hidden('description', binfo)
             form.form_add_hidden('__bugreporting', '1')