Ok, I'll just code it by myself. I was hoping there is better solution.

Marin


On Mon, Apr 14, 2014 at 11:49 AM, Marin Pranjić <marin.pran...@gmail.com>wrote:

> db.define_table(...,
>   Field('image', 'upload', autodelete=True),
>   Field('thumbnail', 'upload', autodelete=True, compute=create_thumbnail),
>  ...)
>
> This is not working because on _before_update/_before_delete callbacks
> thumbnail is not one of the upload_fields.
> I am talking about delete_uploaded_files defined inside gluon/dal.py.
>
> Is there an easier way or I have to manually do the code?
>
> Marin
>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> 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 web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to