missing self, using bool is simpler tls-sprint
authorsylvain.thenault@logilab.fr
Thu, 09 Apr 2009 15:52:31 +0200
branchtls-sprint
changeset 1322 92a2375b1de6
parent 1321 c5655237f08a
child 1323 5350c5aa0d31
missing self, using bool is simpler
web/views/editforms.py
--- a/web/views/editforms.py	Thu Apr 09 14:36:47 2009 +0200
+++ b/web/views/editforms.py	Thu Apr 09 15:52:31 2009 +0200
@@ -300,7 +300,7 @@
             if field is not None:
                 self.fields.append(field)
         self.maxrelitems = self.req.property_value('navigation.related-limit')
-        self.force_display = not not req.form.get('__force_display')
+        self.force_display = bool(self.req.form.get('__force_display'))
         
     @property
     def related_limit(self):