server/schemaserial.py
changeset 10025 7b72ecc3f4d2
parent 9968 50f046bf0e50
child 10074 ab956b780d4e
--- a/server/schemaserial.py	Tue Nov 04 14:10:02 2014 +0100
+++ b/server/schemaserial.py	Thu Nov 13 10:37:44 2014 +0100
@@ -556,12 +556,14 @@
         for rql, args in _erperms2rql(rdef, groupmap):
             yield rql, args
 
+_IGNORED_PROPS = ['eid', 'constraints', 'uid', 'infered', 'permissions']
+
 def _rdef_values(rdef):
     amap = {'order': 'ordernum', 'default': 'defaultval'}
     values = {}
     extra = {}
     for prop in rdef.rproperty_defs(rdef.object):
-        if prop in ('eid', 'constraints', 'uid', 'infered', 'permissions'):
+        if prop in _IGNORED_PROPS:
             continue
         value = getattr(rdef, prop)
         if prop not in KNOWN_RPROPERTIES: