Advanced REQUEST inside Python Class Problem
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 <dtml-var ObjectInstance>, then I can refer to the request variable in my Python code with self.REQUEST But, if I try: <dtml-var "ObjectInstance">, 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
On Sun, 10 Jun 2001, Stephan Richter wrote:
But, if I try: <dtml-var "ObjectInstance">, then I cannot use self.REQUEST, since the namespace is somehow not passed.
Don't you have to use <dtml-var "ObjectInstance()">?
participants (2)
-
Erik Enge -
Stephan Richter