Noah Kantrowitz skrev 11. juni 2010 19:56:
From: [email protected] [mailto:[email protected]] On
Behalf Of rob
Sent: Friday, June 11, 2010 10:33 AM
To: Trac Development
Subject: [Trac-dev] New plugin - sum fields
I recently posted my first Trac plugin:
http://trac-hacks.org/wiki/SumFieldsPlugin
It selectively sums fields in a custom query. We needed this for
rolling up effort (story points) based on different filterings and
groupings such as by milestone (for velocity) or owner (for load
balancing).
I implemented the plugin using JavaScript/jQuery (versus all Python/
Genshi) which appears to be non-standard.
(...)
> The core code keeps a pretty strict policy of not requiring JS for any
> functionality (i.e. there is always a non-JS fallback available). It
> isn't so much that we expect a lot of people to not use JS, but it
> just tends to force you towards a good, accessible design. It is up to
> individual plugin authors as to if they want to continue this policy,
> but I would be sure to mark things clearly if you do not.
As a trac user and administrator, I recommend using js for improving UI
look and feel only, if possible. Ajax/javascript has a use improving the
interaction of web-apps, in effect turning web pages into web
applications (they improve the View and Controller-part of MVC).
Especially for plugins/hacks like this, where somewhere down the line
someone might want to use curl/wget/xml-rpc to grab a report, for eg
printing, archiving, syndication etc -- it would be nice to have a
fallback that didn't require javascript on the client.
I heartily second Noahs suggestion of marking such plugins as requiring
javascript.
For further reference, as has been mentioned on this list before, there
exist the possibility of rendering webpages "headlessly" using the
webkit rendering engine and the webkit2png-tool[1] on mac, or
khtml2png[2] under linux. I don't think either of these packages execute
javascript, however.
I also just found out that khtml2png doesn't work with xmonad, and
probably has problems with other windowmanagers.
Just my 2 cents.
[1] http://www.paulhammond.org/webkit2png/
[2] http://khtml2png.sourceforge.net/
Best regards,
--
.---. Eirik Schwenke <[email protected]>
( NSD ) Harald HÃ¥rfagresgate 29 Rom 150
'---' N-5007 Bergen tlf: (555) 889 13
GPG-key at pgp.mit.edu Id 0x8AA3392C
--
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.