[schema view] use rdef.ACTIONS, attribute/relation don't use the same actions permission, that causes a crash for attribute rdefs
--- a/web/views/schema.py Tue Aug 10 14:16:12 2010 +0200
+++ b/web/views/schema.py Tue Aug 10 14:19:55 2010 +0200
@@ -113,7 +113,7 @@
perms = {}
for rdef in rschema.rdefs.itervalues():
rdef_perms = []
- for action in ('read', 'add', 'delete'):
+ for action in rdef.ACTIONS:
groups = sorted(rdef.get_groups(action))
exprs = sorted(e.expression for e in rdef.get_rqlexprs(action))
rdef_perms.append( (action, (tuple(groups), tuple(exprs))) )