Re: [web2py] Re: pre populated SQLFORM.FACTORY does not submit because of upload field

2013-04-08 Thread Massimo Di Pierro
It took me a while to isolate the problem. Here is a simple code to reproduce it: def index(): db.define_table('thing',Field('image','upload',requires=IS_NOT_EMPTY())) db.thing.image.default = 'xxx.png' form = SQLFORM.factory(db.thing,upload=URL('download')).process() return

Re: [web2py] Re: pre populated SQLFORM.FACTORY does not submit because of upload field

2013-04-08 Thread António Ramos
Thank you Massimo for your patience. I change factory to just sqlform and it works even with default values to upload fields. Thank you António 2013/4/8 Massimo Di Pierro massimo.dipie...@gmail.com It took me a while to isolate the problem. Here is a simple code to reproduce it: def

Re: [web2py] Re: pre populated SQLFORM.FACTORY does not submit because of upload field

2013-04-07 Thread António Ramos
Can you check again Massimo in the app i posted? controller default - Action trabalhador Thank you António 2013/4/6 António Ramos ramstei...@gmail.com Sorry i meant trabalhador Action trabalhador Thank you No dia 06/04/2013 17:31, Massimo Di Pierro massimo.dipie...@gmail.com escreveu:

Re: [web2py] Re: pre populated SQLFORM.FACTORY does not submit because of upload field

2013-04-06 Thread Massimo Di Pierro
Sorry I cannot find action empreiteiro On Friday, 5 April 2013 16:45:39 UTC-5, Ramos wrote: I post here my app. Sorry about the quality of my code. I´m learning as i go along the way. The problem is in controller default, action empreiteiro The upload field is required but when i edit a

Re: [web2py] Re: pre populated SQLFORM.FACTORY does not submit because of upload field

2013-04-06 Thread António Ramos
Sorry i meant trabalhador Action trabalhador Thank you No dia 06/04/2013 17:31, Massimo Di Pierro massimo.dipie...@gmail.com escreveu: Sorry I cannot find action empreiteiro On Friday, 5 April 2013 16:45:39 UTC-5, Ramos wrote: I post here my app. Sorry about the quality of my code. I´m

[web2py] Re: pre populated SQLFORM.FACTORY does not submit because of upload field

2013-04-05 Thread Massimo Di Pierro
Can you post a simpler example (including mode) to reproduce the problem? Looks like the field in the table has a validator which requires an upload. On Friday, 5 April 2013 11:06:52 UTC-5, Ramos wrote: hello, i´m using a sqlform.factory to edit a record. The form is prepopulated using this