What do you mean? On Friday, 1 March 2013 09:54:22 UTC-6, [email protected] wrote: > > I just discovered that the insert works with the SQLform, but not > manually. Any idea why that would be? > > On Friday, March 1, 2013 12:35:08 PM UTC+8, [email protected] wrote: >> >> So my app is getting some small audio files via the gluon.tools fetch >> method, and then storing them manually in the upload folder via the store() >> method. While this works fine on a local server, it doesn't seem to work on >> GAE. It's throwing a runtime error: "you must specify a >> Field(...,uploadfolder=...)". Looking at the DAL gluon, this seems to >> imply that there is no path specified for the upload folder, even though >> that should be a default argument for Field() regardless of backend. >> Anyone have any ideas why? >> >> Here is the code: >> >> audio_file = StringIO.StringIO(fetch(audio_url)) >> self.classcont_id = current.db.classcont.insert(...., quest_audio = >> current.db.classcont.quest_audio.store(audio_file, self.audio_name) ,....) >> current.db.commit() >> >> Thanks. >> >
-- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

