equal
deleted
inserted
replaced
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) |