web/views/management.py
branch3.0
changeset 431 18b4dd650ef8
parent 237 3df2e0ae2eba
child 602 1454282a8b45
equal deleted inserted replaced
430:6fbc0ab79a2d 431:18b4dd650ef8
    14 from cubicweb.common.utils import UStringIO
    14 from cubicweb.common.utils import UStringIO
    15 from cubicweb.common.view import AnyRsetView, StartupView, EntityView
    15 from cubicweb.common.view import AnyRsetView, StartupView, EntityView
    16 from cubicweb.common.uilib import (html_traceback, rest_traceback, html_escape,
    16 from cubicweb.common.uilib import (html_traceback, rest_traceback, html_escape,
    17                                 toggle_link)
    17                                 toggle_link)
    18 from cubicweb.common.selectors import (yes, one_line_rset,
    18 from cubicweb.common.selectors import (yes, one_line_rset,
    19                                     accept_rset_selector, none_rset,
    19                                     accept_rset, none_rset,
    20                                     chainfirst, chainall)
    20                                     chainfirst, chainall)
    21 from cubicweb.web import INTERNAL_FIELD_VALUE, eid_param, stdmsgs
    21 from cubicweb.web import INTERNAL_FIELD_VALUE, eid_param, stdmsgs
    22 from cubicweb.web.widgets import StaticComboBoxWidget
    22 from cubicweb.web.widgets import StaticComboBoxWidget
    23 from cubicweb.web.form import FormMixIn
    23 from cubicweb.web.form import FormMixIn
    24 
    24 
   438 class EpropertiesForm(SystemEpropertiesForm):
   438 class EpropertiesForm(SystemEpropertiesForm):
   439     id = 'epropertiesform'
   439     id = 'epropertiesform'
   440     title = _('preferences')    
   440     title = _('preferences')    
   441     require_groups = ('users', 'managers') # we don't want guests to be able to come here
   441     require_groups = ('users', 'managers') # we don't want guests to be able to come here
   442     __selectors__ = chainfirst(none_rset,
   442     __selectors__ = chainfirst(none_rset,
   443                                chainall(one_line_rset, accept_rset_selector)),
   443                                chainall(one_line_rset, accept_rset)),
   444     accepts = ('EUser',)
   444     accepts = ('EUser',)
   445 
   445 
   446     @classmethod
   446     @classmethod
   447     def accept_rset(cls, req, rset, row, col):
   447     def accept_rset(cls, req, rset, row, col):
   448         if row is None:
   448         if row is None: