app/soc/views/models/base.py
changeset 701 d6f5d34cff5a
parent 677 c8f24e3078b8
child 703 c4f3997becd9
--- a/app/soc/views/models/base.py	Sun Dec 07 15:02:29 2008 +0000
+++ b/app/soc/views/models/base.py	Sun Dec 07 15:28:36 2008 +0000
@@ -511,6 +511,10 @@
     if not self._params['scope_logic']:
       return
 
+    # If this entity is unscoped, to not try to retrieve a scope
+    if 'scope_path' not in fields:
+      return
+
     scope = self._params['scope_logic'].logic.getFromKeyName(fields['scope_path'])
     fields['scope'] = scope