Thanks you both for your replies.

@Niphlod,

I did set autodelete=True and the file gets deleted when I delete the 
entire record,
however, when I check the delete checkbox related to the upload field, the 
file
does not get deleted and the field is not to None.

I guess the issue is related to:

folder = 'nodeID' + str(nodeID)
db.lnd_page.image.uploadfolder = 
os.path.join(request.env.applications_parent, 'applications',
    'dbmodel', 'static', 'uploads', folder)


@Anthony,

What exactly is confusing? Are you not expecting to be able to do anything 
> with the "record" object after calling form.process()? If so, why?
>

Yes, because after the form has been accepted and processed, i.e the record 
has been 
updated or deleted I expected the record to be no longer accessible.


Kind regards,

Annet

-- 
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