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?

asked 04 Aug '11, 06:06

mgiann's gravatar image

mgiann
71128
accept rate: 33%

edited 06 Aug '11, 02:19

@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.

(05 Aug '11, 21:27) rickross ♦♦

rickross, I did the change. Thank you.

(06 Aug '11, 03:12) mgiann

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

link

answered 05 Aug '11, 10:43

Jordan's gravatar image

Jordan ♦♦
3.1k618
accept rate: 38%

edited 05 Aug '11, 14:51

matt's gravatar image

matt ♦♦
6.1k335645

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
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×16
×10
×8

Asked: 04 Aug '11, 06:06

Seen: 623 times

Last updated: 06 Aug '11, 03:12

powered by OSQA