web/uicfg.py
changeset 4397 fbac86ca7af1
parent 4364 766359c69f2f
child 4521 32402dd2504d
equal deleted inserted replaced
4396:98e98a5aa399 4397:fbac86ca7af1
   337     def init_get(self, *key):
   337     def init_get(self, *key):
   338         return super(AutoformSectionRelationTags, self).get(*key)
   338         return super(AutoformSectionRelationTags, self).get(*key)
   339 
   339 
   340     def get(self, *key):
   340     def get(self, *key):
   341         # overriden to avoid recomputing done in parent classes
   341         # overriden to avoid recomputing done in parent classes
   342         return self._tagdefs[key]
   342         return self._tagdefs.get(key, ())
   343 
   343 
   344     def relations_by_section(self, entity, formtype, section,
   344     def relations_by_section(self, entity, formtype, section,
   345                              permission=None, strict=False):
   345                              permission=None, strict=False):
   346         """return a list of (relation schema, target schemas, role) for the
   346         """return a list of (relation schema, target schemas, role) for the
   347         given entity matching categories and permission.
   347         given entity matching categories and permission.