summaryrefslogtreecommitdiff
path: root/sandbox/pobrien/OpenOffice/rest2ooxml.py
blob: 671052845a2551969e4580da1f0f60c5ada09fe7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/env python

"""Generates the OpenOffice.org content.xml file outside of a .swx zip
file. Useful for debugging the OOwriter."""

__author__ = "Patrick K. O'Brien <pobrien@orbtech.com>"
__cvsid__ = "$Id$"
__revision__ = "$Revision$"[11:-2]

import locale
try:
    locale.setlocale(locale.LC_ALL, '')
except:
    pass

from docutils.core import publish_cmdline, default_description

from OOwriter import Writer


def main():
    description = ("Generates OpenOffice.org XML.  " + default_description)
    publish_cmdline(writer=Writer(), description=description)


if __name__ == '__main__':
    main()