Re: [Zope-dev] Advanced REQUEST inside Python Class Problem

2001-06-11 Thread Erik Enge

On Sun, 10 Jun 2001, Stephan Richter wrote:

> But, if I try: , then I cannot use
> self.REQUEST, since the namespace is somehow not passed.

Don't you have to use ?


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] Advanced REQUEST inside Python Class Problem

2001-06-10 Thread Stephan Richter

Hello everyone,

I try to access the REQUEST variable in a Python class, but in certain 
cases this gives me a real headache.

If I call my object with , then I can refer to the 
request variable in my Python code with self.REQUEST
But, if I try: , then I cannot use self.REQUEST, 
since the namespace is somehow not passed. BTW, the same seems to be true 
with properties inside a parent object. For some reason, if I call 
__getattr__, the entire "global namespace" (REQUEST and Aquisition) does 
not work correctly anymore.

Has anyone a clue for me?

Regards,
Stephan

--
Stephan Richter
CBU - Physics and Chemistry Student
Web2k - Web Design/Development & Technical Project Management


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )