[Cubicweb] Cubicweb Digest, Vol 5, Issue 3

Carlos Balderas carlos.balderas at gmail.com
Thu Jul 9 00:00:48 CEST 2009


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
self.req.add_css('mycss') and self.req.add_js('myjs') methods in the
MyHTMLPageHeader class (inheriting of HTMLPageHeader class) , knowing that
this is a little bit risky because I am overwriting some CW base code.

For now seems to fit my needs, I will keep looking best practices, so won't
need this kind of solutions to avoid future troubles with the next cubicweb
versions you will release.

Merci Beaucoup
Carlos

On Wed, Jul 8, 2009 at 5:00 AM, <cubicweb-request at lists.cubicweb.org> wrote:

> Send Cubicweb mailing list submissions to
>        cubicweb at lists.cubicweb.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://lists.cubicweb.org/mailman/listinfo/cubicweb
> or, via email, send a message with subject or body 'help' to
>        cubicweb-request at lists.cubicweb.org
>
> You can reach the person managing the list at
>        cubicweb-owner at lists.cubicweb.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Cubicweb digest..."
>
>
> Today's Topics:
>
>   1. external_resources (Carlos Balderas)
>   2. Re: external_resources (Sylvain Th?nault)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 7 Jul 2009 12:30:19 -0500
> From: Carlos Balderas <carlos.balderas at gmail.com>
> Subject: [Cubicweb] external_resources
> To: cubicweb at lists.cubicweb.org
> Message-ID:
>        <cafa12b90907071030n5b229238scc80e2fee2725a9d at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Salut,
>
> The use of external_resources.
>
> I am trying to declare my own and overwrite existing stylesheet classes in
> my CW application,  so I am using the external_resources file but when I
> uncomment the line below in the file:
> (example)
> #STYLESHEETS = DATADIR/cubes.alltests.css
>
> I lost the access of the cubicweb stylesheet's classes. I was wondering if
> I
> need to copy all the classes of the cubicweb stylesheet here? or I might be
> missing some step in the configuration of the external_resources file.
>
> I don't have any other cube in the application.
>
> CubicWeb version: 3.3.2
> Detected mode: installed
>
> Any help or tip would be appreciated.
>
> Merci Beaucoup
> Carlos
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.cubicweb.org/pipermail/cubicweb/attachments/20090707/4a4ab3c3/attachment.html
> >
>
> ------------------------------
>
> Message: 2
> Date: Tue, 7 Jul 2009 20:05:36 +0200
> From: Sylvain Th?nault <sylvain.thenault at logilab.fr>
> Subject: Re: [Cubicweb] external_resources
> To: Carlos Balderas <carlos.balderas at gmail.com>
> Cc: cubicweb at lists.cubicweb.org
> Message-ID: <20090707180536.GB5811 at lupus.logilab.fr>
> Content-Type: text/plain; charset=utf-8
>
> On 07 juillet 12:30, Carlos Balderas wrote:
> > Salut,
> >
> > The use of external_resources.
> >
> > I am trying to declare my own and overwrite existing stylesheet classes
> in
> > my CW application,  so I am using the external_resources file but when I
> > uncomment the line below in the file:
> > (example)
> > #STYLESHEETS = DATADIR/cubes.alltests.css
> >
> > I lost the access of the cubicweb stylesheet's classes. I was wondering
> if I
> > need to copy all the classes of the cubicweb stylesheet here? or I might
> be
> > missing some step in the configuration of the external_resources file.
>
> either add:
>
>  @import url("cubicweb.css");
>
> at the top of your css file, or set
>
>  STYLESHEETS = DATADIR/cubicweb.css, DATADIR/cubes.alltests.cs
>
> in the external_resources file
>
>
> --
> Sylvain Th?nault                               LOGILAB, Paris (France)
> Formations Python, Debian, M?th. Agiles: http://www.logilab.fr/formations
> D?veloppement <http://www.logilab.fr/formations%0AD?veloppement> logiciel
> sur mesure:       http://www.logilab.fr/services
> CubicWeb, the semantic web framework:    http://www.cubicweb.org
>
>
>
> ------------------------------
>
> _______________________________________________
> Cubicweb mailing list
> Cubicweb at lists.cubicweb.org
> http://lists.cubicweb.org/mailman/listinfo/cubicweb
>
>
> End of Cubicweb Digest, Vol 5, Issue 3
> **************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cubicweb.org/pipermail/cubicweb/attachments/20090708/856fa581/attachment-0186.html>


More information about the Cubicweb mailing list