web/views/cwproperties.py
changeset 2058 7ef12c03447c
parent 2051 e4d24e4d74e6
child 2144 51c84d585456
--- a/web/views/cwproperties.py	Fri Jun 05 15:06:55 2009 +0200
+++ b/web/views/cwproperties.py	Fri Jun 05 15:09:20 2009 +0200
@@ -189,11 +189,11 @@
 
     def form(self, formid, keys, splitlabel=False):
         buttons = [SubmitButton()]
-        form = self.vreg.select_object('forms', 'composite', self.req,
-                                  domid=formid, action=self.build_url(),
-                                  form_buttons=buttons,
-                                  onsubmit="return validatePrefsForm('%s')" % formid,
-                                  submitmsg=self.req._('changes applied'))
+        form = self.vreg.select('forms', 'composite', self.req,
+                                domid=formid, action=self.build_url(),
+                                form_buttons=buttons,
+                                onsubmit="return validatePrefsForm('%s')" % formid,
+                                submitmsg=self.req._('changes applied'))
         path = self.req.relative_path()
         if '?' in path:
             path, params = path.split('?', 1)
@@ -201,8 +201,8 @@
         form.form_add_hidden('__redirectpath', path)
         for key in keys:
             self.form_row(form, key, splitlabel)
-        renderer = self.vreg.select_object('formrenderers', 'cwproperties', self.req,
-                                           display_progress_div=False)
+        renderer = self.vreg.select('formrenderers', 'cwproperties', self.req,
+                                    display_progress_div=False)
         return form.form_render(renderer=renderer)
 
     def form_row(self, form, key, splitlabel):
@@ -211,8 +211,8 @@
             label = key.split('.')[-1]
         else:
             label = key
-        subform = self.vreg.select_object('forms', 'base', self.req, entity=entity,
-                                     mainform=False)
+        subform = self.vreg.select('forms', 'base', self.req, entity=entity,
+                                   mainform=False)
         subform.append_field(PropertyValueField(name='value', label=label,
                                                 eidparam=True))
         subform.vreg = self.vreg