web/views/schema.py
changeset 5822 3d4e58a741a4
parent 5819 1017163825c7
child 5823 8a6c15e2e8b0
equal deleted inserted replaced
5821:656c974961c4 5822:3d4e58a741a4
    86     def permissions_table(self, erschema, permissions=None):
    86     def permissions_table(self, erschema, permissions=None):
    87         self._cw.add_css('cubicweb.acl.css')
    87         self._cw.add_css('cubicweb.acl.css')
    88         w = self.w
    88         w = self.w
    89         _ = self._cw._
    89         _ = self._cw._
    90         w(u'<table class="listing schemaInfo">')
    90         w(u'<table class="listing schemaInfo">')
    91         w(u'<tr><th width="15%%">%s</th><th wdith="25%%">%s</th><th>%s</th></tr>' % (
    91         w(u'<tr><th width="15%%">%s</th><th width="25%%">%s</th><th>%s</th></tr>' % (
    92             _("permission"), _('granted to groups'), _('rql expressions')))
    92             _("permission"), _('granted to groups'), _('rql expressions')))
    93         for action in erschema.ACTIONS:
    93         for action in erschema.ACTIONS:
    94             w(u'<tr><td>%s</td><td>' % _(action))
    94             w(u'<tr><td>%s</td><td>' % _(action))
    95             if permissions is None:
    95             if permissions is None:
    96                 groups = erschema.get_groups(action)
    96                 groups = erschema.get_groups(action)