Work in progress. I've moved permissions management to the new dedicated page. Adding permissions is working but deleting ones. I must also filter the list of users available when creating a super admin because the default admin appears inside :p
This commit is contained in:
tonio
2010-11-25 23:19:04 +01:00
parent f7ec14bc87
commit eff3c7d815
14 changed files with 240 additions and 171 deletions
+2
View File
@@ -15,6 +15,8 @@ events = ["CreateDomain",
"UserMenuDisplay",
"AdminMenuDisplay",
"PermsGetTables",
"UserLogin",
"UserLogout"]
+10 -4
View File
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
import inspect
import lxml
from django.utils.translation import ugettext as _
from django.template import Template, Context
from django.template.loader import render_to_string
@@ -83,15 +84,20 @@ class Table(object):
self.rows += [nrow]
def render(self, request):
t = Template("""
if len(self.rows):
t = Template("""
<table id="{{ tableid }}">
{% include "common/table_head.html" %}
{% include "common/table_body.html" %}
</table>
""")
return t.render(Context({
"table" : self, "tableid" : self.tableid
}))
return t.render(Context({
"table" : self, "tableid" : self.tableid
}))
t = Template("""
<div class="info">%s</div>
""" % _("No entries to display"))
return t.render(Context())
def render_head(self, request):
t = Template("""