web/views/editforms.py
branchtls-sprint
changeset 1322 92a2375b1de6
parent 1320 c85f4d8eff8b
child 1324 a82f83188695
equal deleted inserted replaced
1321:c5655237f08a 1322:92a2375b1de6
   298                 field = guess_field(self.edited_entity.__class__, rschema, role,
   298                 field = guess_field(self.edited_entity.__class__, rschema, role,
   299                                     eidparam=True)
   299                                     eidparam=True)
   300             if field is not None:
   300             if field is not None:
   301                 self.fields.append(field)
   301                 self.fields.append(field)
   302         self.maxrelitems = self.req.property_value('navigation.related-limit')
   302         self.maxrelitems = self.req.property_value('navigation.related-limit')
   303         self.force_display = not not req.form.get('__force_display')
   303         self.force_display = bool(self.req.form.get('__force_display'))
   304         
   304         
   305     @property
   305     @property
   306     def related_limit(self):
   306     def related_limit(self):
   307         if self.force_display:
   307         if self.force_display:
   308             return None
   308             return None