set progress div in call() to avoid duplication when applied on multiple entities tls-sprint
authorsylvain.thenault@logilab.fr
Thu, 30 Apr 2009 09:25:33 +0200
branchtls-sprint
changeset 1569 99a19875ef1e
parent 1568 08f25ed7a7f4
child 1570 5c40d9fb4e8d
set progress div in call() to avoid duplication when applied on multiple entities
web/views/management.py
--- 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):