Hi all, probably due to my incompetence I have the following problem, Thank's in advance anyone who wants to help me.
consider the following code: ''' db.define_table('prodotto', Field('nome'), format='%(nome)s', plural='prodotti') db.define_table('allegato', Field('descrizione',requires=IS_NOT_EMPTY()), Field('documento','upload',autodelete=True), Field('prodotto','reference prodotto',writable=False,readable=False), format='%(descrizione)s', plural='allegati') def index(): grid = SQLFORM.smartgrid(db.prodotto, deletable=True, editable=True, create=True, csv=False) return dict(grid=grid) web2py 2.7.4-stable+timestamp.2013.10.14.15.16.29 (Running on Rocket 1.2.6, Python 2.7.3) Debian 7.2 (wheezy) ''' Deleting a record from the "allegato" table, also delete the corresponding file (autodelete=True) in the default /uploads folder. Deleting a record from the "prodotto" master table, also delete all records in the "allegato" detail table (CASCADE delete), but files in the folder uploads are not erased. Any idea? thanks again Maurizio -- 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/groups/opt_out.