[views/schema] extract a hardcoded css class attribute
authorAurelien Campeas <aurelien.campeas@pythonian.fr>
Tue, 16 Jun 2015 00:26:55 +0200
changeset 10405 7b27a7443180
parent 10404 797db633d60c
child 10406 9c7461bf99a7
[views/schema] extract a hardcoded css class attribute
web/views/schema.py
--- a/web/views/schema.py	Wed Jun 03 12:36:31 2015 +0200
+++ b/web/views/schema.py	Tue Jun 16 00:26:55 2015 +0200
@@ -84,12 +84,13 @@
     """mixin providing methods to display security information for a entity,
     relation or relation definition schema
     """
+    cssclass = "listing schemaInfo"
 
     def permissions_table(self, erschema, permissions=None):
         self._cw.add_css('cubicweb.acl.css')
         w = self.w
         _ = self._cw._
-        w(u'<table class="listing schemaInfo">')
+        w(u'<table class="%s">' % self.cssclass)
         w(u'<tr><th>%s</th><th>%s</th><th>%s</th></tr>' % (
             _("permission"), _('granted to groups'), _('rql expressions')))
         for action in erschema.ACTIONS: