[Grok-dev] Static Resources

Paul Sephton prsephton at gmail.com
Mon Jul 18 09:26:22 EDT 2011


Hi;

I'm a bit stuck, and was hoping someone could help.

I have a product directory something like the following:

src/app.py
src/resource.py
src/static
src/static/img1.fav
src/app_templates
src/app_templates/app_macro.pt
src/module1/__init__.py
src/module1/module1.py
src/module1/module1_templates
src/module1/module1_templates/view-mod1.pt

The main app_macro.pt references static/img1.fav

The submodule view 'view-mod1.pt' references the macro 'app-macro.pt'

Now, I'm doing something wrong, but grok can't seem to find img1.fav when
the macro is expanded (it finds the macro itself just fine).   How do I get
around this without duplicating static resources in the submodule directory
tree?  In other words, how can a submodule share static resources from the
parent directory?

I would be very grateful for any help!

Regards,
Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/grok-dev/attachments/20110718/8716607a/attachment.html 


More information about the Grok-dev mailing list