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<http://toscawidgets.org/documentation/ToscaWidgets/deploy.html#configuring-your-web-server>
notes
and issue #2319 <http://trac.turbogears.org/ticket/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

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to