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