web/views/cwproperties.py
branchstable
changeset 5535 b32b8f56192a
parent 5502 c342531032a1
child 5556 9ab2b4c74baf
child 5693 8af6623f3d4e
--- a/web/views/cwproperties.py	Tue May 18 10:30:34 2010 +0200
+++ b/web/views/cwproperties.py	Tue May 18 14:24:04 2010 +0200
@@ -121,9 +121,11 @@
         # user's preference but not site's configuration
         for key in vreg.user_property_keys(self.__regid__=='systempropertiesform'):
             parts = key.split('.')
-            if parts[0] in vreg:
+            if parts[0] in vreg and len(parts) >= 3:
                 # appobject configuration
-                reg, oid, propid = parts
+                reg = parts[0]
+                propid = parts[-1]
+                oid = '.'.join(parts[1:-1])
                 groupedopts.setdefault(reg, {}).setdefault(oid, []).append(key)
             else:
                 mainopts.setdefault(parts[0], []).append(key)