Re: [Zope] problems with testing (PloneMailBoxer)

2005-06-24 Thread Dieter Maurer
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

Re: [Zope] problems with testing (PloneMailBoxer)

2005-06-23 Thread robert rottermann
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

Re: [Zope] problems with testing (PloneMailBoxer)

2005-06-23 Thread Dieter Maurer
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

[Zope] problems with testing (PloneMailBoxer)

2005-06-23 Thread robert rottermann
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