[Zope] Re: Messing with the namespaces stack

2000-06-30 Thread Hamish Lawson

Jim Hebert wrote:

 But I wanted to be able to just write dtml-var foo_png while 
 working on
 pages, so I wrap the content with 
 dtml-with images
 dtml-with "PARENTS[0]"
 ...
 /dtml-with
 /dtml-with

Jim, that is indeed clever. Am I right, however, in thinking that every
DTML method or DTML document that wants this additional-parent
behaviour will need to use these dtml-with wrappers? I think what I'm
after is the ability to alter the parents of the containing folder
itself, so that any contained method automatically has this modified
acquisition path.

Hamish Lawson



Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




[Zope] Re: Messing with the namespaces stack

2000-06-30 Thread Jim Hebert

On Fri, 30 Jun 2000, Hamish Lawson wrote:

 Jim, that is indeed clever. Am I right, however, in thinking that every
 DTML method or DTML document that wants this additional-parent
 behaviour will need to use these dtml-with wrappers? I think what I'm
 after is the ability to alter the parents of the containing folder
 itself, so that any contained method automatically has this modified
 acquisition path.

Yes. I sorta expected someone to point that out, which is part of the
reason I posted my other, longish post, which shows among other things
that I only have that double-dtml-with in one place, the toplevel
index_html.

So, it may not be ideal for other design patterns.

jim

-- 
Jim Hebert   http://www.cosource.com/
[EMAIL PROTECTED]  The cooperative market for open source software

"Well actually I was considering opening a market in flying pigs. Mostly
because it would be more practical" -- Alan Cox


___
Zope maillist  -  [EMAIL PROTECTED]
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 )