web/views/cwproperties.py
branchstable
changeset 5535 b32b8f56192a
parent 5502 c342531032a1
child 5556 9ab2b4c74baf
child 5693 8af6623f3d4e
equal deleted inserted replaced
5534:b75aa6ce0c04 5535:b32b8f56192a
   119         mainopts = {}
   119         mainopts = {}
   120         # "self.id=='systempropertiesform'" to skip site wide properties on
   120         # "self.id=='systempropertiesform'" to skip site wide properties on
   121         # user's preference but not site's configuration
   121         # user's preference but not site's configuration
   122         for key in vreg.user_property_keys(self.__regid__=='systempropertiesform'):
   122         for key in vreg.user_property_keys(self.__regid__=='systempropertiesform'):
   123             parts = key.split('.')
   123             parts = key.split('.')
   124             if parts[0] in vreg:
   124             if parts[0] in vreg and len(parts) >= 3:
   125                 # appobject configuration
   125                 # appobject configuration
   126                 reg, oid, propid = parts
   126                 reg = parts[0]
       
   127                 propid = parts[-1]
       
   128                 oid = '.'.join(parts[1:-1])
   127                 groupedopts.setdefault(reg, {}).setdefault(oid, []).append(key)
   129                 groupedopts.setdefault(reg, {}).setdefault(oid, []).append(key)
   128             else:
   130             else:
   129                 mainopts.setdefault(parts[0], []).append(key)
   131                 mainopts.setdefault(parts[0], []).append(key)
   130         # precompute form to consume error message
   132         # precompute form to consume error message
   131         for group, keys in mainopts.items():
   133         for group, keys in mainopts.items():