# HG changeset patch # User sylvain.thenault@logilab.fr # Date 1240938542 -7200 # Node ID 8f4d2892e809b3cbc0205e2671e3347c2101f454 # Parent afc154f0709fd3c34fa474b98c36ed5de3a98250 eperm -> cwperm diff -r afc154f0709f -r 8f4d2892e809 web/views/management.py --- a/web/views/management.py Tue Apr 28 18:33:13 2009 +0200 +++ b/web/views/management.py Tue Apr 28 19:09:02 2009 +0200 @@ -48,7 +48,7 @@ self.owned_by_edit_form(entity) else: self.owned_by_information(entity) - # epermissions + # cwpermissions if 'require_permission' in entity.e_schema.subject_relations(): w('

%s

' % _('permissions for this entity')) reqpermschema = self.schema.rschema('require_permission') @@ -116,18 +116,18 @@ w(u'') w(u'' % (_("permission"), _('granted to groups'))) - for eperm in entity.require_permission: + for cwperm in entity.require_permission: w(u'') if dellinktempl: - w(u'' % (dellinktempl % eperm.eid, - eperm.view('oneline'))) + w(u'' % (dellinktempl % cwperm.eid, + cwperm.view('oneline'))) else: - w(u'' % eperm.view('oneline')) - w(u'' % self.view('csv', eperm.related('require_group'), 'null')) + w(u'' % cwperm.view('oneline')) + w(u'' % self.view('csv', cwperm.related('require_group'), 'null')) w(u'\n') w(u'
%s%s
%s%s%s%s%s%s%s%s
') else: - self.w(self.req._('no associated epermissions')) + self.w(self.req._('no associated permissions')) def require_permission_edit_form(self, entity): w = self.w