[Zope] A pondering...
Mohsen Moeeni
mohsen at schoolnet.ir
Mon May 24 14:04:38 EDT 2004
Quoting "Ben Last (Zope)" <zope at benlast.com>:
> An acquisition-oriented question.
>
--snip--
>
> 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.
--snip--
> Okay, I understand the behaviour - how would Zope gurus do this differently
> to let acquisition work for me?
>
I am far away from being a Zope guru :). However I would
like to share my idea. Instead of creating an Images
folder in every customization folder, create customization
folders in your top-level Images folder. So your directory
layout would be like this:
Top-level-folder
Images
logo.jpg
example.jpg
LookAndFeel1
logo.jpg
Then reference your images with statments like:
Images/LookAndFeel1/logo.jpg and
Images/LookAndFeel1/example.jpg.
Works? right? :)
Cheers,
Mohsen,
More information about the Zope
mailing list