|
In the SVN revision 1155 (and a few before this), the exporter is not working and there is not apparent importer menu. However the module code is available. Is there a way of accessing this functionality? Either from the administration menu or the command line? |
|
This problem was caused by a function called "fixtag" that couldn't be imported from the Python XML module Etree namespace. A fix has been pushed to the trunk in revision #1156: http://svn.osqa.net/changelog/OSQA/?cs=1156 2
I tried the patch. It makes the "XML data export" item available in the administration panel. However, when i use it, I get the following in the apache error log: Exception in thread Thread-1: Traceback (most recent call last): File "/usr/local/lib/python2.7/threading.py", line 530, in bootstrap_inner self.run() File "/usr/local/lib/python2.7/threading.py", line 483, in run self.target(*self.args, **self.kwargs) File "forum_modules/exporter/exporter.py", line 255, in export original__write = xml.etree.ElementTree.ElementTree._write AttributeError: type object 'ElementTree' has no attribute '_write' I renamed _write to write (not sure if I should) and the problem moves on to: File "forum_modules/exporter/exporter.py", line 164, in write_to_file tree.write(os.path.join(tmp, filename), encoding='UTF-8') TypeError: Etree_pretty__write() takes at least 5 arguments (3 given) Should we move this to the bugtracker?
(06 Aug '11, 03:09)
mgiann
|
@mgiann, when you refer to "the latest SVN version" you're likely to be correct only for a very short time. It would be much better if you would refer to a specific version like "in SVN revision #1129" and so on.
rickross, I did the change. Thank you.