[Zope-dev] context bindings in python products

Bernd Dorn bernddorn@hotmail.com
Tue, 5 Jun 2001 23:36:00 +0200


either way - thx

maybe such a bindings implementation is worth a proposal sometime ...

----- Original Message -----
From: "Chris McDonough" <chrism@digicool.com>
To: "Bernd Dorn" <bernddorn@hotmail.com>
Cc: <zope-dev@zope.org>
Sent: Tuesday, June 05, 2001 11:18 PM
Subject: Re: [Zope-dev] context bindings in python products


> Bernd Dorn wrote:
> >
> > this doesnt work either
> >
> > my test funtion:
> >
> > def test_htm(self):
> >         """ just test """
> >         context = self.aq_parent
> >         return context.absolute_url()
> >
> > returns always the absolute_url of the parent object of the class
instance
>
> I think I understand what you mean.
>
> Yes, you're right.  To make it work differently, you're right in saying
> you need to create an HTMLFile instance (or another methodish thing).
>
> - C
>
> _______________________________________________
> 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 )
>