diff -r 02e141e41da2 -r f2a5805615f8 web/views/cwuser.py --- a/web/views/cwuser.py Fri Sep 16 14:01:17 2011 +0200 +++ b/web/views/cwuser.py Fri Sep 16 17:30:26 2011 +0200 @@ -29,7 +29,7 @@ from cubicweb.selectors import one_line_rset, is_instance, match_user_groups from cubicweb.view import EntityView, StartupView from cubicweb.web import action, uicfg, formwidgets -from cubicweb.web.views import tabs, tableview, actions +from cubicweb.web.views import tabs, tableview, actions, add_etype_button _pvs = uicfg.primaryview_section _pvs.tag_attribute(('CWUser', 'login'), 'hidden') @@ -194,7 +194,7 @@ 'U cw_source UDS, US name UDSN') def call(self, **kwargs): - add_button(self, 'CWUser') + self.w(add_etype_button(self._cw, 'CWGroup')) self.w(u'
') self.wview('cw.users-table', self._cw.execute(self.rql)) @@ -209,20 +209,13 @@ cellvids = {} def call(self, **kwargs): - add_button(self, 'CWGroup') + self.w('