It was an issue with web2py_ajax.html. It should be fixed in trunk,
please give it a try.

On Oct 7, 11:58 pm, Bruno Rocha <[email protected]> wrote:
> I am trying many ways, does not works here
>
> Calling directly in browser 
> :http://127.0.0.1:8000/examples/static/css/menu.css?version=1234(Thats
> works)
>
> But when in layout.html:
> {{response.files.append(URL(request.application,'static','css/menu.css',vars={'version':'1234'}))}}
> or
> {{response.files.append(URL(request.application,'static','css/menu.css',vars=dict(version='1234')))}}
>
> Does not find the css file, Am I doing something wrong?
>
> it is not important now, because I can solve putting CSS calling direct in
> CSS, but other users may need the same.
>
> 2010/10/6 mdipierro <[email protected]>
>
>
>
> > Is this better?
>
> > {{response.files.append(URL(request.application,'static','css/
> > home.css',vars=dict(version=random.random())))}}
>
> > On Oct 5, 5:48 pm, Bruno Rocha <[email protected]> wrote:
> > > Hi,
>
> > > Sometimes is useful to pass a random argument to a CSS file, matters of
> > > cache, when you change something in your style and wants the user to have
> > > the site updated without the need to clean the cache
>
> > > What I need is that CSS file will called as
> > .../blablabla.css?version=12345
> > > (ther argument does not matter, but browser will not use cached version)
>
> > > I tried in layout.html:
>
> > > <code>
>
> > {{response.files.append(URL(request.application,'static/css','home.css?version=12345'))}}
>
> > {{response.files.append(URL(request.application,'static/css','home.css',args='12345'))}}
> > > </code>
>
> > > and
>
> > > <code>
> > > import random
>
> > {{response.files.append(URL(request.application,'static/css','home.css',args=[random.random()]))}}
>
> > {{response.files.append(URL(request.application,'static/css','home.css',args=str(random.random())))}}
> > > </code>
>
> > > But web2py does not loads CSS in this way.
>
> --
>
> http://rochacbruno.com.br

Reply via email to