[BlueBream] Fanstatic integration
cykooz at googlemail.com
Fri Jul 22 01:08:04 EDT 2011
Do You use the `zope.fanstatic`?
Please show your configuration file for the Paste (deploy.ini or debug.ini)
2011/7/21 Mats <mats at ronin-group.org>:
> I'm trying to use Fanstatic to include resources but it doesn't seem
> to work so I must be doing something wrong.
> I have an entry point in my setup.py
> entry_points = """
> main = iport.startup:application_factory
> shell = iport.debug:Shell
> iport = iport.app.skin.resource:library
> My resource.py file in iport/app/skin looks like this:
> from fanstatic import Library, Resource
> library = Library('iport', 'static')
> style = Resource(library, 'style.css')
> And I have a directory in iport/app/skin named 'static' where my
> 'style.css' file is located.
> I have a z3c.form DisplayForm
> from iport.app.skin import resource
> class IPortDisplayForm(FormLayoutSupport, form.DisplayForm):
> fields = field.Fields(IIPort)
> def update(self):
> But when I navigate to the display form there is no inclusion of the stylesheet.
> What am I doing wrong?
> bluebream mailing list
> bluebream at zope.org
More information about the bluebream