Re: [ZODB-Dev] request on restrictedTraverse

2005-11-02 Thread Dieter Maurer
Daniel wrote at 2005-10-31 09:52 +0100:
 ...
It seems that the restrictedTraverse method changes the request, doesn't it? 

It uses locally its own request object. You will see it only
in __bobo_traverse__ methods during the restrictedTraverse.

All objects (in the standard acquisition context) can
access the true request object as obj.REQUEST.

-- 
Dieter
___
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zodb-dev


[ZODB-Dev] request on restrictedTraverse

2005-10-30 Thread Daniel
Hi,
is there a way to get the originial request in an template called via 
restrictedTraverse?
I tried zu create a new object in Plone via the createObject script. This 
script calls the portal_factory object via the restrictedTraverse method. As 
I tried to change the edit template (which is called in the scope of the 
portal_factory) I noticed that the original request (sended by the browser on 
.../createObject...) was lost.
It seems that the restrictedTraverse method changes the request, doesn't it? 
If it does, is there a way to get the original request?

thanks in advance
Daniel Buschke
___
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zodb-dev