diff -r 0a0cbccafcb5 -r 7ef12c03447c web/test/unittest_views_editforms.py --- a/web/test/unittest_views_editforms.py Fri Jun 05 15:06:55 2009 +0200 +++ b/web/test/unittest_views_editforms.py Fri Jun 05 15:09:20 2009 +0200 @@ -18,8 +18,8 @@ def test_custom_widget(self): AEF.rfields_kwargs.tag_subject_of(('CWUser', 'login', '*'), {'widget':AutoCompletionWidget}) - form = self.vreg.select_object('forms', 'edition', self.request(), None, - entity=self.user()) + form = self.vreg.select('forms', 'edition', self.request(), + entity=self.user()) field = form.field_by_name('login') self.assertIsInstance(field.widget, AutoCompletionWidget) AEF.rfields_kwargs.del_rtag('CWUser', 'login', '*', 'subject') @@ -114,11 +114,11 @@ def test_edition_form(self): rset = self.execute('CWUser X LIMIT 1') - form = self.vreg.select_object('forms', 'edition', rset.req, rset, - row=0, col=0) + form = self.vreg.select('forms', 'edition', rset.req, rset=rset, + row=0, col=0) # should be also selectable by specifying entity - self.vreg.select_object('forms', 'edition', self.request(), None, - entity=rset.get_entity(0, 0)) + self.vreg.select('forms', 'edition', rset.req, + entity=rset.get_entity(0, 0)) self.failIf(any(f for f in form.fields if f is None))