common/selectors.py
changeset 446 3a3ab6bbccc5
parent 431 18b4dd650ef8
child 560 005f78d21fc7
--- a/common/selectors.py	Mon Jan 19 19:46:33 2009 +0100
+++ b/common/selectors.py	Mon Jan 19 19:57:41 2009 +0100
@@ -499,7 +499,7 @@
     propval = req.property_value('%s.%s.context' % (cls.__registry__, cls.id))
     if not propval:
         propval = cls.context
-    if context is not None and propval is not None and context != propval:
+    if context is not None and propval and context != propval:
         return 0
     return 1
 contextprop_selector = deprecated_function(match_context_prop)