Commit de2bbaae authored by 's avatar

Merged in read-only property overwrite fix.

parent 1f91686c
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
############################################################################## ##############################################################################
"""Property management""" """Property management"""
__version__='$Revision: 1.27 $'[11:-2] __version__='$Revision: 1.28 $'[11:-2]
import ExtensionClass, Globals import ExtensionClass, Globals
import ZDOM import ZDOM
...@@ -319,8 +319,9 @@ class PropertyManager(ExtensionClass.Base, ZDOM.ElementWithAttributes): ...@@ -319,8 +319,9 @@ class PropertyManager(ExtensionClass.Base, ZDOM.ElementWithAttributes):
for prop in self._properties: for prop in self._properties:
name=prop['id'] name=prop['id']
if REQUEST.has_key(name): if REQUEST.has_key(name):
value=REQUEST.get(name) if 'w' in prop.get('mode', 'wd'):
self._setPropValue(name, value) value=REQUEST.get(name)
self._setPropValue(name, value)
return MessageDialog( return MessageDialog(
title ='Success!', title ='Success!',
message='Your changes have been saved', message='Your changes have been saved',
......
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