[Erp5-report] r31838 kazuhiko - in /erp5/trunk/products/ERP5: interfaces/ mixin/
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Jan 20 14:41:25 CET 2010
Author: kazuhiko
Date: Wed Jan 20 14:41:25 2010
New Revision: 31838
URL: http://svn.erp5.org?rev=31838&view=rev
Log:
add a getter method for a single configuration property.
Modified:
erp5/trunk/products/ERP5/interfaces/configurable.py
erp5/trunk/products/ERP5/mixin/configurable.py
Modified: erp5/trunk/products/ERP5/interfaces/configurable.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/interfaces/configurable.py?rev=31838&r1=31837&r2=31838&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/interfaces/configurable.py [utf8] (original)
+++ erp5/trunk/products/ERP5/interfaces/configurable.py [utf8] Wed Jan 20 14:41:25 2010
@@ -32,6 +32,10 @@
class IConfigurable(Interface):
"""
"""
+ def getConfigurationProperty(key):
+ """
+ """
+
def getConfigurationPropertyIdList():
"""
"""
Modified: erp5/trunk/products/ERP5/mixin/configurable.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/mixin/configurable.py?rev=31838&r1=31837&r2=31838&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/mixin/configurable.py [utf8] (original)
+++ erp5/trunk/products/ERP5/mixin/configurable.py [utf8] Wed Jan 20 14:41:25 2010
@@ -49,6 +49,13 @@
zope.interface.implements(interfaces.IConfigurable,)
security.declareProtected(Permissions.AccessContentsInformation,
+ 'getConfigurationProperty')
+ def getConfigurationProperty(self, key, default=None):
+ """
+ """
+ return self._getConfigurationPropertyDict().get(key, default)
+
+ security.declareProtected(Permissions.AccessContentsInformation,
'getConfigurationPropertyIdList')
def getConfigurationPropertyIdList(self):
"""
More information about the Erp5-report
mailing list