>From the docs...

By default SQLFORM.factory generates the form using html "id" attributes 
generated as if the form was generated from a table called "no_table". To 
change this dummy table name, use the table_name attribute for the factory:

form = SQLFORM.factory(...,table_name='other_dummy_name')

Changing the table_name is necessary if you need to place two factory 
generated forms in the same table and want to avoid CSS conflicts.

On Tuesday, January 22, 2013 11:01:59 AM UTC-7, Ramos wrote:
>
> hello
> my sqlform.factory below
>
> trab_id=db.trabalhador.insert(**db.trabalhador._filter_fields(form.vars))
>
> is not uploading a file
>
> First i got error 
> SQLFORM.factory - RuntimeError: you must specify a 
> Field(...,uploadfolder=...) 
>
> so i added in my model
>
> Field('apt_medica','upload', 
> uploadfolder=os.path.join(request.folder,'uploads'),label='Ficha de aptidão 
> médica'),
>
> then the upload is done( i think! because no errors)
>
> Strangely in app admin when i click in the file link i get another error
>
> 404 not found
>
> the url is
> http://127.0.0.1:8000/EMPRE2/appadmin/download/db/*no_table.*
> apt_medica.b8e824a896390be6.737061333130322e747874.txt
>
> what does it mean  *no_table *in the url?
>
>
> Thank you
>
>
>

-- 



Reply via email to