[Cubicweb] Cubicweb Digest, Vol 5, Issue 3

Aurélien Campéas aurelien.campeas at logilab.fr
Thu Jul 9 10:55:30 CEST 2009


On Thu, Jul 09, 2009 at 07:53:06AM +0200, Adrien Di Mascio wrote:
> Hi Carlos,
> 
> On Thursday 09 July 2009 00:00:48 Carlos Balderas wrote:
> > I needed to add a javascrit file too, when I put it in the
> > external_resources file, I noticed that I lost some functionality of the
> > edit-forms (double click editing attribute of an entity in the primary view
> > for example), so, what I did was add this files with
> 
> If you redefine the JAVASCRIPTS or the STYLESHEETS variables in your 
> external_resources file, it will totally ignore the default values of those 
> variables. For the record, here are the default values :
> 
> STYLESHEETS = DATADIR/cubicweb.css
> JAVASCRIPTS = DATADIR/jquery.js, DATADIR/jquery.corner.js, \
>                          DATADIR/jquery.json.js, DATADIR/cubicweb.compat.js,\ 
>                          DATADIR/cubicweb.python.js,
>                          DATADIR/cubicweb.htmlhelpers.js
> 
> (this can be found in cubicweb/web/views/webconfig.py)

I've already been annoyed by this ... What if ... we provided a meta
variable allowing to write (in bash-like syntax but we surely can do
better) :

STYLESHEETS = $STYLESHEETS, DATADIR/mysheets.css

where $STYLESHEETS would expand to all previously collected ones ?



More information about the Cubicweb mailing list