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.