Re: extract text from ods TableCell using odfpy

2008-08-26 Thread frankentux
Ok. Sorted it out, but only after taking a round trip over xml.minidom. Here's the working code: #!/usr/bin/python from odf.opendocument import Spreadsheet from odf.opendocument import load from odf.table import TableRow,TableCell from odf.text import P doc = load(/tmp/match_data.ods) d =

Re: extract text from ods TableCell using odfpy

2008-08-26 Thread norseman
frankentux wrote: Ok. Sorted it out, but only after taking a round trip over xml.minidom. Here's the working code: #!/usr/bin/python from odf.opendocument import Spreadsheet from odf.opendocument import load from odf.table import TableRow,TableCell from odf.text import P doc =

Re: extract text from ods TableCell using odfpy

2008-08-26 Thread John Machin
On Aug 27, 3:04 am, norseman [EMAIL PROTECTED] wrote: frankentux wrote: Ok. Sorted it out, but only after taking a round trip over xml.minidom. Here's the working code: #!/usr/bin/python from odf.opendocument import Spreadsheet from odf.opendocument import load from odf.table import

Re: extract text from ods TableCell using odfpy

2008-08-26 Thread norseman
Ciaran Farrell wrote: 2008/8/26 norseman [EMAIL PROTECTED]: frankentux wrote: Ok. Sorted it out, but only after taking a round trip over xml.minidom. Here's the working code: #!/usr/bin/python from odf.opendocument import Spreadsheet from odf.opendocument import load from odf.table import

extract text from ods TableCell using odfpy

2008-08-25 Thread frankentux
Hi there, I'm losing hair trying to figure out how I can actually get the text out of an existing .ods file. Currently I have: #!/usr/bin/python from odf.opendocument import Spreadsheet from odf.opendocument import load from odf.table import TableRow,TableCell from odf import text doc =