Thanks, that's what I was missing. I was thinking they needed to be in a
particular controller not in the model.
On Tuesday, March 5, 2013 9:02:12 PM UTC-6, Jim Gregory wrote:
>
> Did you include the code for the store_file and retrieve_file functions
> listed in the Stack Overflow answer befor
Did you include the code for the store_file and retrieve_file functions listed
in the Stack Overflow answer before the table definitions in your model file?
-Jim
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this gr
I've added the optional arguments to my field, and created the functions as
described. However I'm getting the error:
name 'store_file' is not defined
Do the functions need to live in a specific location in order to be
recognized?
I looked through the book but I didn't see an example of the
You can pass two optional arguments to Field(...)
custom_store and custom_retrieve
the first must be a function that takes a file like object, a
filename, and an optional path (uploadfolder) stores the file where
you like and returns the filename you assign to the file (can be the
original one)
4 matches
Mail list logo