auth.enable_record_versioning(...db=...)

This commit is contained in:
Massimo Di Pierro
2012-04-05 18:09:44 -05:00
parent f104bf1d9c
commit 6e9df7cf18
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1 +1 @@
Version 1.99.7 (2012-04-05 18:08:16) dev
Version 1.99.7 (2012-04-05 18:09:31) dev
+2 -2
View File
@@ -1259,7 +1259,7 @@ class Auth(object):
def enable_record_versioning(self,
tables,
db = None,
archive_db = None,
archive_names='%s_archive',
current_record='current_record'):
"""
@@ -1297,7 +1297,7 @@ class Auth(object):
fields[current_record] = row.id
archive_table.insert(**fields)
archive_db = db or self.db
archive_db = archive_db or self.db
tables = [table for table in tables]
for table in tables:
fieldnames = table.fields()