Skip to content

Commit

Permalink
whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
hannosch committed Oct 21, 2012
1 parent 95f9876 commit e92a261
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/OFS/PropertyManager.py
Expand Up @@ -272,7 +272,6 @@ def propdict(self):
dict[p['id']]=p
return dict


# Web interface

security.declareProtected(manage_properties, 'manage_addProperty')
Expand All @@ -282,7 +281,7 @@ def manage_addProperty(self, id, value, type, REQUEST=None):
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)
Expand All @@ -297,16 +296,16 @@ def manage_editProperties(self, REQUEST):
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')
Expand Down

0 comments on commit e92a261

Please sign in to comment.