[Zope] Using the Namespace binding

andres@corrada.com andres@corrada.com
Tue, 5 Jun 2001 14:55:52 -0400


Chris Withers asked about this some time recently (Passing namespace from
DTML to Python) and got an answer by Evan
Simpson to call the python method as follows:

python_method(_=_)

On Tue, Jun 05, 2001 at 03:08:17PM +0100, Lee Shakespeare wrote:
> 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 )
> 

-- 
------------------------------------------------------
Andres Corrada-Emmanuel   Email: andres@corrada.com
Internet Programming      http://www.mamey.com
------------------------------------------------------