set progress div in call() to avoid duplication when applied on multiple entities
--- a/web/views/management.py Thu Apr 30 09:13:39 2009 +0200
+++ b/web/views/management.py Thu Apr 30 09:25:33 2009 +0200
@@ -67,6 +67,9 @@
"""display security information for a given entity"""
id = 'security'
title = _('security')
+ def call(self):
+ self.w(u'<div id="progress">%s</div>' % self.req._('validating...'))
+ super(SecurityManagementView, self).call()
def cell_call(self, row, col):
self.req.add_js('cubicweb.edition.js')
@@ -82,7 +85,6 @@
self.w('<h2>%s</h2>' % _('schema\'s permissions definitions'))
self.schema_definition(entity.e_schema)
self.w('<h2>%s</h2>' % _('manage security'))
- self.w(u'<div id="progress">%s</div>' % self.req._('validating...'))
# ownership information
if self.schema.rschema('owned_by').has_perm(self.req, 'add',
fromeid=entity.eid):