[req] if a user has a None property, fall back to the default
authorJulien Cristau <julien.cristau@logilab.fr>
Tue, 17 Dec 2013 11:50:31 +0100
changeset 9480 14159c600dad
parent 9479 f13fbab0c718
child 9481 7e35d62c67a9
[req] if a user has a None property, fall back to the default This can happen for InternalManager; the normal CWUser implementation of property_value already has a similar fallback. Related to #3381521
req.py
--- a/req.py	Tue Dec 17 11:50:12 2013 +0100
+++ b/req.py	Tue Dec 17 11:50:31 2013 +0100
@@ -111,7 +111,9 @@
         user specific value if any, else using site value
         """
         if self.user:
-            return self.user.property_value(key)
+            val = self.user.property_value(key)
+            if val is not None:
+                return val
         return self.vreg.property_value(key)
 
     def etype_rset(self, etype, size=1):