# HG changeset patch # User Sylvain Thénault # Date 1274185444 -7200 # Node ID b32b8f56192a88e819f496df88cdedf7b578d572 # Parent b75aa6ce0c04fc68655d1a0ac7d3b85ffb2a45a5 [preferences] support dot (.) in registry id of configurable appobjects diff -r b75aa6ce0c04 -r b32b8f56192a web/views/cwproperties.py --- 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)