hey,

nope, gave it a try, and a few other things and nothing so far... no
tables are being emptied... this is very strange. There must be a
trick somewhere ;)

thanks for the suggestion :)

On Apr 28, 9:49 pm, Vasile Ermicioi <[email protected]> wrote:
> def deleteRecords():
>    _tables=['auth_user',
>                        'auth_group',
>                            'auth_membership',
>                                'auth_permisssion',
>                                    'auth_event',
>                                        'local_user',
>                                            'local_history']
>    for tbl in db.tables:
>        if not tbl._tablename in _tables:
>            db(tbl).delete()
>
> important thing:  if not tbl._tablename in _tables
>
> this is just a shorter version: db(tbl).delete()

Reply via email to