equal
deleted
inserted
replaced
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. |