sorry for not posting any code before. I had my code at home.
So..
I have a layout.html with the following code:
...
{{
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'}}
...
{{block center}}
{{include}}
{{end}}
...
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:}}
{{=foto.descricao}}
{{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 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 wrote: