[Zope-PTK] __replaceable_'ity

Chris Withers chrisw@nipltd.com
Tue, 01 Aug 2000 16:06:05 +0100


Shane Hathaway wrote:
> Would you post that in the Wiki discussion?

Done :-)

> > > There already is a _.this, it's set to the DTMLMethod or Document that
> > > first created the namespace.
> >
> > Is that the same as this() or something different?!
> 
> It's different, unfortunately. 

Gak! I'm sure this tripped me up before without me even knowing... :S

> It's set by the first DTML method or
> document that sets up the namespace.  Most people don't know about it,
> which is good because it's a clean way to shoot yourself in the foot.
> :-)

...and then some :S

> Jim has a point on the binding issue though.  Even better than "_.self"
> is just "self", which should be possible (and reliable) with method
> binding.  

But would it be configurable? I'm still just getting my head around the
binding tab...
Coudl you choose to bind "self" to somethign else for a particular
method?

cheers,

Chris