# HG changeset patch # User Sylvain Thénault # Date 1302691831 -7200 # Node ID d961184f9a860746c257c3347659f8a1d20e5e78 # Parent 4b860903d8c76fb3c2768b45677ff54f3e5e2cd3 [schema serialization] add warning on missing group diff -r 4b860903d8c7 -r d961184f9a86 server/schemaserial.py --- a/server/schemaserial.py Wed Apr 13 11:34:53 2011 +0200 +++ b/server/schemaserial.py Wed Apr 13 12:50:31 2011 +0200 @@ -557,6 +557,8 @@ yield ('SET X %s_permission Y WHERE Y eid %%(g)s, X eid %%(x)s' % action, {'g': groupmap[group_or_rqlexpr]}) except KeyError: + print ("WARNING: group %s used in permissions for %s was ignored because it doesn't exist." + " You may want to add it into a precreate.py file" % (group_or_rqlexpr, erschema)) continue else: # rqlexpr