First my plugin did not work at all (it did not show uo in WebAdmin -> Plugins) Then I figured that b/c I am using Python 2.5 I need to change the import statement si replaced in pagetoodt.py
#import cElementTree as ElementTree?
with
from xml.etree.ElementTree? import Element, ElementTree? # python 2.5
note that I am a total Python newbie... at least the plugin shows up in the WebAdmin -> Plugins menu now and it is activated... .but now I have the same problem as described above.
But now I get this error:
Python Traceback
Traceback (most recent call last):
File "/var/lib/python-support/python2.5/trac/web/main.py", line 387, in dispatch_request
dispatcher.dispatch(req)
File "/var/lib/python-support/python2.5/trac/web/main.py", line 237, in dispatch
resp = chosen_handler.process_request(req)
File "/var/lib/python-support/python2.5/trac/wiki/web_ui.py", line 134, in process_request
page.text, format, page.name)
File "/var/lib/python-support/python2.5/trac/mimeview/api.py", line 604, in send_converted
content, selector)
File "/var/lib/python-support/python2.5/trac/mimeview/api.py", line 384, in convert_content
output = converter.convert_content(req, mimetype, content, ck)
File "build/bdist.linux-i686/egg/pagetoodt/pagetoodt.py", line 30, in convert_content
archive = zipfile.ZipFile(self.template_filename, 'r')
File "zipfile.py", line 339, in __init__
self.fp = open(file, modeDict[mode])
IOError: [Errno 2] No such file or directory: u'/var/www/trac/pwc/attachments/wiki/PageToOdtStyles/empty.odt'