[odf-discuss] How to use odt2tracwiki

Soren Roug soren.roug at eea.europa.eu
Thu May 15 12:31:01 EDT 2008


The odf2moinmoin.py doesn't expect text in a style declaration. I've 
fixed it (I think). If you just update from SVN, then you should get the 
modification. If it still doesn't work for you, please send me a 
document that causes the error.

Søren Roug

Alexandr N Zamaraev skrev:
> I tried to use odt2tracwiki but it does not work.
> When launched, I get an error:
> [code]
> Traceback (most recent call last):
>   File 
> "D:\Lang\sf.net\svn\odfpy\contrib\odt2tracwiki\odt2tracwiki.py", line 
> 26, in <module>
>     odt = ODF2MoinMoin(sys.argv[1])
>   File "C:\Lang\Python\25\lib\site-packages\odf\odf2moinmoin.py", line 
> 176, in __init__
>     self.load(filepath)
>   File "C:\Lang\Python\25\lib\site-packages\odf\odf2moinmoin.py", line 
> 296, in load
>
> self.processListStyles(styles_doc.getElementsByTagName("text:list-style")) 
>
>   File "C:\Lang\Python\25\lib\site-packages\odf\odf2moinmoin.py", line 
> 279, in processListStyles
>     if ( style.childNodes[0].tagName
> AttributeError: Text instance has no attribute 'tagName'
> [/code]
> How can we fix this?
>
> My environment:
> Os: WinXp Home Ru + sp3
> Python: 2.5.2
> odfpy: from svn revision 433
>
> P.S. I insert print in odf2moinmoin.py:279:
> Code snipped:
> [code]
>             if style.childNodes:
>                 print style.childNodes
>                 print style.childNodes[0]
>                 if ( style.childNodes[0].tagName
>



More information about the odf-discuss mailing list