Commit e92a261c authored by Hanno Schlichting's avatar Hanno Schlichting

whitespace

parent 95f9876a
......@@ -272,7 +272,6 @@ class PropertyManager(Base, ElementWithAttributes):
dict[p['id']]=p
return dict
# Web interface
security.declareProtected(manage_properties, 'manage_addProperty')
......@@ -282,7 +281,7 @@ class PropertyManager(Base, ElementWithAttributes):
Sets a new property with the given id, type, and value.
"""
if type in type_converters:
value=type_converters[type](value)
value = type_converters[type](value)
self._setProperty(id.strip(), value, type)
if REQUEST is not None:
return self.manage_propertiesForm(self, REQUEST)
......@@ -297,16 +296,16 @@ class PropertyManager(Base, ElementWithAttributes):
instead for most situations.
"""
for prop in self._propertyMap():
name=prop['id']
name = prop['id']
if 'w' in prop.get('mode', 'wd'):
if prop['type'] == 'multiple selection':
value=REQUEST.get(name, [])
value = REQUEST.get(name, [])
else:
value=REQUEST.get(name, '')
value = REQUEST.get(name, '')
self._updateProperty(name, value)
if REQUEST:
message="Saved changes."
return self.manage_propertiesForm(self,REQUEST,
message = "Saved changes."
return self.manage_propertiesForm(self, REQUEST,
manage_tabs_message=message)
security.declareProtected(manage_properties, 'manage_changeProperties')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment