[Zope] A pondering...
Ben Last (Zope)
zope at benlast.com
Mon May 24 12:18:06 EDT 2004
An acquisition-oriented question.
If I have a top level directory containing HTML stuff and page templates, I
usually like to keep all the images in an Images subdirectory, just for
neatness, like so:
Top-level-folder
Images
In one site, I want to have a folder per different look-and-feel, thus:
Top-level-folder
Images
LookAndFeel1
LookAndFeel2
...so acquisition helps me by allowing me to override specific files by
putting them in a LookAndFeel folder; lots of default stuff is acquired from
the Top-level-folder.
This of course, includes the Images folder - if I refer to
LookAndFeel1/Images, all works because Images is acquired.
However, the contents of Images aren't overrideable - hence:
if Top-level-folder/Images contains logo.jpg and example.jpg
and I decide to override logo for LookAndFeel1 by creating its own Images
and putting logo.jpg in there, as:
Top-level-folder
Images
logo.jpg
example.jpg
LookAndFeel1
Images
logo.jpg
...then acqusition works fine for references to
/LookAndFeel1/Images/logo.jpg, but reference to
LookAndFeel1/Images/example.jpg fail. I understand why; acquisition works
by containment, so Images can be acquired because it exists in a container
found on the way up the hierarchy, but once an Images is found, that's yer
lot.
Okay, I understand the behaviour - how would Zope gurus do this differently
to let acquisition work for me?
ben
More information about the Zope
mailing list