Commit ebddcb13 authored by Hanno Schlichting's avatar Hanno Schlichting

whitespace

parent d08308f3
...@@ -323,16 +323,16 @@ class PropertyManager(Base, ElementWithAttributes): ...@@ -323,16 +323,16 @@ class PropertyManager(Base, ElementWithAttributes):
props = REQUEST.form props = REQUEST.form
if kw: if kw:
for name, value in kw.items(): for name, value in kw.items():
props[name]=value props[name] = value
propdict=self.propdict() propdict = self.propdict()
for name, value in props.items(): for name, value in props.items():
if self.hasProperty(name): if self.hasProperty(name):
if not 'w' in propdict[name].get('mode', 'wd'): if not 'w' in propdict[name].get('mode', 'wd'):
raise BadRequest, '%s cannot be changed' % escape(name) raise BadRequest('%s cannot be changed' % escape(name))
self._updateProperty(name, value) self._updateProperty(name, value)
if REQUEST: if REQUEST:
message="Saved changes." message = "Saved changes."
return self.manage_propertiesForm(self,REQUEST, return self.manage_propertiesForm(self, REQUEST,
manage_tabs_message=message) manage_tabs_message=message)
# Note - this is experimental, pending some community input. # Note - this is experimental, pending some community input.
......
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