On Aug 10, 5:00 pm, John Hampton <[email protected]> wrote:
> Bart Ogryczak wrote:
> > What are the best practices concerning this?
> > First the tables. Is there any standard when the should be created? In
> > the setup script? Some 'first-run' script?
>
> Take a look at the IEnvironmentSetupParticipant [1] in trac.env
> [1]http://trac.edgewall.org/browser/branches/0.11-stable/trac/env.py#L40

Thanks, that's exactly what I was looking for.

> > How about JQuery-UI? Including it in every plugin which would need to
> > use it seems waste, so what other alternatives are?
>
> You could create a plugin that simply handles adding the JQuery-UI and
> have your plugin depend on that.  Perhpas it could become the standard
> way for people to include JQuery-UI.

It kind of surprises me, that so few plugins even use JQuery, and I've
found none using JQuery-UI.

> Other than that, simply using
> add_script() in the process_request() method of the plugin is the
> standard way to add stylesheets.

True, perhaps the easiest way is to have configurable URI, by default
pointing to Google's AJAX CDN.



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Development" 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/trac-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to