Commit 72f6fbab authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

add a getter method for a single configuration property.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31838 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f52153c1
......@@ -32,6 +32,10 @@ from zope.interface import Interface
class IConfigurable(Interface):
"""
"""
def getConfigurationProperty(key):
"""
"""
def getConfigurationPropertyIdList():
"""
"""
......
......@@ -48,6 +48,13 @@ class ConfigurableMixin:
# Declarative interfaces
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):
......
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