robert rottermann wrote at 2005-6-24 05:41 +0200:
> ...
>>> security.declareProtected('Access contents information', 'getValueFor')
>>> def getValueFor(self, key):
>>> # Returns value for property;
>>> # if available, a dynamic getter will be used
>>>
>>> # we can not use MailBoxer
thanks Dieter,
Dieter Maurer wrote:
robert rottermann wrote at 2005-6-23 09:16 +0200:
...
Calling the method in a test case I allways get None.
...
security.declareProtected('Access contents information', 'getValueFor')
def getValueFor(self, key):
# Returns value for property;
# i
robert rottermann wrote at 2005-6-23 09:16 +0200:
> ...
>Calling the method in a test case I allways get None.
> ...
> security.declareProtected('Access contents information', 'getValueFor')
> def getValueFor(self, key):
> # Returns value for property;
> # if available, a dynamic ge
Hi there,
I have a problem testing PloneMailBoxer
I am using the Method added at the end
getter = self.getProperty('getter')
getterHandler = self.unrestrictedTraverse(getter, default=None)
Calling the method in a test case I allways get None.
In a real Plone setup it works fine.
can somebody te