server/schemaserial.py
changeset 4024 6a14cff373c3
parent 4021 280c910c8710
child 4033 732eccbed54a
equal deleted inserted replaced
4023:eae23c40627a 4024:6a14cff373c3
   361     return relations, values
   361     return relations, values
   362 
   362 
   363 def _rdef_values(rschema, objtype, props):
   363 def _rdef_values(rschema, objtype, props):
   364     amap = {'order': 'ordernum'}
   364     amap = {'order': 'ordernum'}
   365     values = {}
   365     values = {}
   366     for prop, default in rschema.rproperty_defs(objtype).iteritems():
   366     for prop, default in schemamod.RelationDefinitionSchema.rproperty_defs(objtype).iteritems():
   367         if prop in ('eid', 'constraints', 'uid', 'infered', 'permissions'):
   367         if prop in ('eid', 'constraints', 'uid', 'infered', 'permissions'):
   368             continue
   368             continue
   369         value = props.get(prop, default)
   369         value = props.get(prop, default)
   370         if prop in ('indexed', 'fulltextindexed', 'internationalizable'):
   370         if prop in ('indexed', 'fulltextindexed', 'internationalizable'):
   371             value = bool(value)
   371             value = bool(value)