I have used the Firebug to see if I could get the error I was having.
It gave me "effect is not defined"

I've googled it and it was about a file called effectS.js. When
uploading the file using the admin interface, to copy the file to the
js dir, I had to rename to js/effects.js. The problem is that I
mistakenly renamed it to effect.js, without the s.

Sorry for wasting your time and thanks a lot for the help. Now the
next challenge is to make the site work on GAE.

Thanks a lot to all.

On Feb 25, 10:58 am, Adriano Almeida <adrianowalme...@gmail.com>
wrote:
> sorry for not posting any code before. I had my code at home.
>
> So..
>
> I have a layout.html with the following code:
>
> ...
>  <!-- All JavaScript at the bottom, except for Modernizr which
> enables
>        HTML5 elements & feature detects -->
>   <script src="{{=URL('static','js/modernizr.custom.js')}}"></
> script>
>
>   <!-- include stylesheets -->
>   {{
>   response.files.append(URL('static','css/skeleton.css'))
>   response.files.append(URL('static','css/web2py.css'))
>   response.files.append(URL('static','css/superfish.css'))
>   response.files.append(URL('static','js/superfish.js'))
>   response.files.append(URL('static','css/mamae.css'))
>   response.files.append(URL('static','js/prototype.js'))
>   response.files.append(URL('static','js/scriptaculous.js'))
>   response.files.append(URL('static','js/lightbox.js'))
>   response.files.append(URL('static','css/lightbox.css'))
>   }}
>
>   {{include 'web2py_ajax.html'}}
> ...
>
> <div id="conteudo">
>        {{block center}}
>        {{include}}
>        {{end}}
>     </div>
>
> ...
>
> Than I have a controller called  fotos that has a method called  index
> and download:
> def index():
>     response.menu = [
>     (T('A LOJA'),False,URL('default','aloja')),
>     (T('FOTOS'),True,URL('fotos','index')),
>     (T('PRODUTOS'),False,URL('default','produtos')),
>     (T('ONDE'),False,URL('default','onde')),
>     (T('CONTATO'),False,URL('default','contato'))]
>
>     fotos = db().select(db.imagem.ALL)
>     return dict(fotos=fotos)
>
> @auth.requires_login()
> def gerenciamento():
>     """ simple person registration form with validation and
> database.insert()
>         also lists all records currently in the table"""
>
>     records = SQLFORM.grid(db.imagem,searchable=False)
>     return dict(records=records)
>
> def download():
>     """
>     allows downloading of uploaded files
>    http://..../[app]/default/download/[filename]
>     """
>     return response.download(request,db)
>
> and the view that will use these files is fotos/index.html:
> {{tipo_pagina='site'}} -- this will tell layout which layout it will
> use
> {{extend 'layout.html'}}
>
> {{for foto in fotos:}}
>
> <a href="{{=URL('download', args=foto.arquivo)}}" rel="lightbox"
> title="{{=foto.descricao}}">{{=foto.descricao}}</a>
> {{pass}}
>
> besides that I have the lightbox.css in css folder and the various js
> asked in js folder (lightbox, ligthbox_web, prototype,
> scriptaculous).
>
> I have tried to upload the project to fluxflex but it returned and
> internal error after uploading it.
>
> Thanks again
>
> On Feb 24, 9:12 pm, peter <peterchutchin...@gmail.com> wrote:
>
>
>
>
>
>
>
> > To see what the current repository deployed on fluxflex looks like, go
> > to
>
> > kathykuck.fluxflex.com/gallery
>
> > When Kathy logs in, using the usual web2py way of doing this, 3 new
> > headings appear, allowing her to edit images, edit galleries and edit
> > the personal information. Only the first registered user is allowed to
> > do this. The second gallery is currently empty.
>
> > As flux flex is free for small sites like this, one can give an artist
> > a free site that they have control over.
>
> > Peter
>
> > On Feb 24, 10:48 pm, peter <peterchutchin...@gmail.com> wrote:

Reply via email to