[Zope-CMF] Folders within Layers? Is it possible?

Dieter Maurer dieter at handshake.de
Fri Oct 31 16:01:51 EST 2003


Beef a wrote at 2003-10-30 09:54 +0000:
 > ...
 > eg: So you can imagine my portal_skins folder looks something like this;
 > 
 > portal_skins/MyProduct/Part1/icon.gif
 > portal_skins/MyProduct/Part1/hello.dtml
 > portal_skins/MyProduct/Part2/icon.gif
 > portal_skins/MyProduct/Part2/hello.dtml
 > 
 > where Part1 and Part2 are Directory Views (again, there can be hundreds of 
 > 'Parts')
 > 
 > Note: Unique 'Part' names are used because elements are not necessarily 
 > unique (and can't be guaranteed to be unique).  eg: there may be many unique 
 > 'Parts' but all may have an 'icon.gif'
 > 
 > 3. Everything works fine so far accept when I attempt to access DTML.
 > 
 > eg: I can access http://<object>/Part1/icon.gif and 
 > http://<object>/Part2/icon.gif perfectly... but not 
 > http://<object>/Part1/hello
 > 
 > Depending on how I attempt to access a DTML object, I get one of two 
 > possible errors;
 > 
 > ERROR 1: Attempting to access http://<object>/Part1/hello (directly via the 
 > browser)
 > 

You will have a hard time with any template:

  The template must know which object it should present.
  Templates use their parent ("aq_parent") for this.
  This will be wrong for your architecture.

  You cannot use the CMF framework in the way you want...

-- 
Dieter



More information about the Zope-CMF mailing list