[Setools] Gjallar Resources
Keith Hodges
keith_hodges at yahoo.co.uk
Fri Jul 13 06:49:38 UTC 2007
In moving Gjallar to use Seaside 2.8 I have modified how Gjallar
accesses its resources.
Keith
--------------------
New grand scheme for handling resources using WAFileLibrary.
1. All of the defaults are in the in-image file library
Q2DefaultResources. (so external files are not needed to deploy gjallar)
2. Additional in-image resource sets can be provided as subclasses of
Q2Resources, these inherit their defaults
from Q2DefaultResources. The resource set is used if its
Q2MyResources-c-#libraryName matches the inifile setting
'resourcesDirectory'.
3. Additional user-customized resources can be placed in a directory
nominated by 'resourcesDirectory', these, if present, override, 1 and 2,
above.
Usage in code:
html image url: (Q2Resources / 'gjallar.png')
this is an extension to the standard seaside 2.8 approach which would be
html image url: (Q2Resources / #gjallarPng)
notes: Gjallar file libraries inherit their file selectors whereas
standard WAFileLibrary does not. Gjallar inherits the standard seaside
file libraries, but needs the potential to override the defaults
(especially kalseyTabsCss).
More information about the Setools
mailing list