Help with archive_tw_resources?

4 views
Skip to first unread message

Nick Barendt

unread,
Jul 3, 2009, 1:49:16 PM7/3/09
to turbo...@googlegroups.com

  I'm looking for a little guidance on using the archive_tw_resources command.  Serving up the Javascript and CSS files from within the eggs is killing my app's performance, and I'd like to serve them statically (initially from the public directory of my TG2 project with Paste, but later, maybe from Apache and Nginx).  I'm using ToscaWidgets (0.9.7), tw.forms (0.9.7), Sprox (0.6.2), and Dojo (tw.dojo 0.9.4), mainly for an administrative interface.
  I've looked at the ToscaWidgets Deployment notes and issue #2319 is at least in the queue.  I have yuicompressor-2.4.2.jar, I have options configured in my setup.cfg:

[archive_tw_resources]
output = myproject/public/toscawidgets
compresslevel = 2
force = true
distributions = myproject
yuicompressor = jars/yuicompressor-2.4.2.jar
onepass = true

I have an entry point in my setup.py:

    [toscawidgets.widgets]
    widgets = myproject.widgets

When I run "python setup.py archive_tw_resources", though, the only thing I can get packaged up in the archive is tw.forms/static, despite what I put into the module the entry point references.  I get the same behavior by replacing the distributions option with "tw.forms" instead of "myproject".  I'd hoped that adding "tw.dojo" to the distributions list would pull in the dojo JS and CSS (like tundra.css), but no dice.

  Does anyone have a configuration similar to this working?  Any thoughts appreciated.

Thanks,

Nick Barendt
Reply all
Reply to author
Forward
0 new messages