Issue 1926124
Created on 2008-03-26 13:19 by henryl, last changed 2016-06-26 20:15 by rouilj.
File name |
Uploaded |
Description |
Edit |
Remove |
anydbm_migrate.patch
|
henryl,
2008-03-26 13:19
|
Patch to mark that the anydbm is always updated |
|
|
msg2541 |
Author: [hidden] (henryl) |
Date: 2008-03-26 13:19 |
|
Attempting to run 'roundup-admin migrate' fails for anydbm trackers, with the following exception::
Traceback (most recent call last):
File "/home/henry/apps//lib/python2.5/site-packages/roundup/admin.py", line 1433, in run_command
ret = function(args[1:])
File "/home/henry/apps//lib/python2.5/site-packages/roundup/admin.py", line 1356, in do_migrate
if getattr(self.db, 'db_version_updated'):
File "/home/henry/apps//lib/python2.5/site-packages/roundup/backends/back_anydbm.py", line 152, in __getattr__
raise AttributeError, classname
AttributeError: db_version_updated
The exception appears to be because db_version_updated is only set for databases inheriting from rdbms_common.Database (ie: not back_anydbm.Database). Running 'roundup-admin help migrate' suggests it isn't necessary to 'migrate' anydbm databases, but a simple fix to prevent the exception has been attached.
|
msg5637 |
Author: [hidden] (rouilj) |
Date: 2016-06-26 20:15 |
|
Thanks for the patch. Turns out the proper value is false not true.
Applied it in revision: 5775959d81a3
|
|
Date |
User |
Action |
Args |
2016-06-26 20:15:01 | rouilj | set | status: open -> fixed resolution: fixed messages:
+ msg5637 nosy:
+ rouilj keywords:
+ patch type: crash |
2008-03-26 13:19:19 | henryl | create | |
|