To elaborate - this bug pops up when all of the following conditions are 
met:


   - user is deleting a row from a table with an 'upload' field
   - the 'upload' field's 'uploadseparate' parameter is set to 'True'
   - the filename stored in the 'upload' field is missing or incorrectly 
   formatted (i.e. the number of components in the filename, separated by '.', 
   is below a certain minimum number)


When deleting a row with an upload field, pydal's delete_uploaded_files() 
function 
attempts to get the name of the file, and to split that filename into a 
list of components, using a period as the delimiter. If there is no 
filename present, or if the filename doesn't have a certain minimum number 
of components, this generates an error.

Unless I misinterpreted something, this situation presents a serious 
problem for anyone using tables with 'upload' fields with uploadseparate = 
True.

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to