[Zope-dev] context bindings in python products

Chris McDonough chrism@digicool.com
Tue, 05 Jun 2001 15:56:45 -0400


context = self
container = self.aq_inner.aq_parent

Bernd Dorn wrote:
> 
> hi
> 
> isn't there some mixin class to provide bindings to python products like in
> python scripts?
> so that i have some objects like: context, container ...
> 
> i searched through the zope site, but there is nothing which can do such
> stuff
> 
> am i the only one who needs this, or is it a sign for wrong coding practice
> in zope?
> 
> the only thing i found was this:
> http://www.zope.org/Members/htrd/howto/FunctionTemplate
> but it seems very complicated in argument passing
> 
> wouldn't it be nice to have something like this
> 
> if there is nothing out there, has anybody some sugestions how to implement
> it
> so i would write it by myself
> 
> maybe with the REQUEST Class or so?
> 
> thanks in advance, bernd
> 
> _______________________________________________
> Zope-Dev maillist  -  Zope-Dev@zope.org
> 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 )