8 Jan
2002
8 Jan
'02
10:16 a.m.
Hi, Trying to test a URL in a unittest.py test using code as follows: apply(Site.restrictedTraverse('/folder/cmfsite/skinmethod'),params) Now, skinmethod uses the new Zope 2.5.0 sessioning: session=context.REQUEST.SESSION session.set('key','value') but the BeforeTraversal hook doesn't seem to kick in when restrictedTraverse is used :-( We always get an AttributeError on SESSION. How should we fix this and go about testing this method properly? cheers, Chris