[Zope] Using the Namespace binding

Farrell, Troy troy.farrell@wcg.com
Tue, 5 Jun 2001 09:22:24 -0500


Did you try context.varname?

Troy
-----Original Message-----
From: Lee Shakespeare [mailto:lee@webfoundry.co.uk]
Sent: Tuesday, June 05, 2001 9:08 AM
To: zope@zope.org
Subject: [Zope] Using the Namespace binding


Hi Folks.

Can some explain to me how I access DTML vars from a called python
script?  From what I've gleamed from the Zope book, I can set the
Namespace binding for the script to expose the DTML namespace, but I'm
having problems accessing it.  

I've tried _.varname, which gave me an attribute error and _varname is
an illegal variable name.  

The variable is accessible from the calling DTML method via dtml-var

Cheers.   
 Lee.


-- 
Lee Shakespeare   :   lee at webfoundry dot co dot uk

_______________________________________________
Zope maillist  -  Zope@zope.org
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )