Commit 2aea6600 authored by 's avatar

Fix for #2008: return tuple from propertyMap

parent 15cd27e6
......@@ -84,7 +84,7 @@
##############################################################################
"""Property management"""
__version__='$Revision: 1.36 $'[11:-2]
__version__='$Revision: 1.37 $'[11:-2]
import ExtensionClass, Globals
import ZDOM
......@@ -297,7 +297,7 @@ class PropertyManager(ExtensionClass.Base, ZDOM.ElementWithAttributes):
Return a tuple of mappings, giving meta-data for properties.
Return copies of the real definitions for security.
"""
return map(lambda dict: dict.copy(), self._propertyMap())
return tuple(map(lambda dict: dict.copy(), self._propertyMap()))
def propertyLabel(self, id):
"""Return a label for the given property id
......
......@@ -84,7 +84,7 @@
##############################################################################
"""Property sheets"""
__version__='$Revision: 1.66 $'[11:-2]
__version__='$Revision: 1.67 $'[11:-2]
import time, string, App.Management, Globals
from webdav.WriteLockInterface import WriteLockInterface
......@@ -338,7 +338,7 @@ class PropertySheet(Traversable, Persistent, Implicit):
def propertyMap(self):
# Returns a secure copy of the property definitions.
return map(lambda dict: dict.copy(), self._propertyMap())
return tuple(map(lambda dict: dict.copy(), self._propertyMap()))
def _propdict(self):
dict={}
......
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