ODFPY

2010-06-06 Thread Lawrence D'Oliveiro
Very handy library for creating and manipulating ODF documents without any dependency on OpenOffice.org . I’ve been looking at using it for automating the generation of the invoices I send out at the end of each month. So far, it’s been a lot easier than trying to figu

Re: issue: Permissions in odfpy

2009-05-19 Thread Philipp Hagemeister
n:oasis:names:tc:opendocument:xmlns:table:1.0', 'protected', 'true') doc.save('out.ods') Regards, Philipp shruti surve wrote: > hey, > i am using odfpy and generating spreadsheet in open office..but nobody > should modify the file..so can anyb

Re: issue: Permissions in odfpy

2009-05-19 Thread Krishnakant
Through the python code, chmod 400 happy hacking. Krishnakant. On Tue, 2009-05-19 at 12:21 +0530, shruti surve wrote: > hey, > i am using odfpy and generating spreadsheet in open office..but > nobody should modify the file..so can anybody tell me how can we give > permissions (r

issue: Permissions in odfpy

2009-05-18 Thread shruti surve
hey, i am using odfpy and generating spreadsheet in open office..but nobody should modify the file..so can anybody tell me how can we give permissions (read only) to spreadsheet in odfpy??..i have change the properties of my normal open office spreadsheet file and made it read only..n also

About Odfpy links

2009-05-07 Thread shruti surve
hey all, For my project, i am using ODFpy open office spreadsheets. I am creating ledgers in python ie.ledger.py. So when i run ledger.py, spreadsheet will be opened in open office. since ledger is made of number of accounts, i am creating multiple tables for all accounts in single spreadsheet

Re: About ODFPY links

2009-05-06 Thread Terry Reedy
shruti surve wrote: hey all, For my project, i am using ODFpy open office spreadsheets. I am creating ledgers in python ie.ledger.py <http://ie.ledger.py>. So when i run ledger.py, spreadsheet will be opened in open office. since ledger is made of number of accounts, i am creating mu

About ODFPY links

2009-05-06 Thread shruti surve
hey all, For my project, i am using ODFpy open office spreadsheets. I am creating ledgers in python ie.ledger.py. So when i run ledger.py, spreadsheet will be opened in open office. since ledger is made of number of accounts, i am creating multiple tables for all accounts in single spreadsheet

odfpy examples

2008-12-25 Thread Ellinghaus, Lance
Has anyone created any complex spreadsheets using odfpy? The samples that come with odfpy are pretty simple and I need some examples of more complex spreadsheets. Thank you, lance -- http://mail.python.org/mailman/listinfo/python-list

Re: extract text from ods TableCell using odfpy

2008-08-26 Thread norseman
Sorry. Stupid of me. The module is not part of the standard libary. It's at http://opendocumentfellowship.com/projects/odfpy Ciaran == I got the download and all went pretty well. Setup.py compiled OK and install put it where it belongs. As a test I went to try odflin

Re: extract text from ods TableCell using odfpy

2008-08-26 Thread John Machin
o/python-list > > = > cd /opt > find . -name "*odf*" -print > (empty) > cd /usr/local/lib/python2.5 > find . -name "*odf*" -print > (empty) > > OK - where is it? :) > Consider using: find --http --google "odfpy" ;-) -- http://mail.python.org/mailman/listinfo/python-list

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 = load("/tmp/match_d

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 = doc.sp

extract text from ods TableCell using odfpy

2008-08-25 Thread frankentux
g strings. What I'd like to be able to do is something like: for row in rows: cells = row.getElementsByType(TableCell) users.append((cells[0].value,cells[1].value,cells[2].value,cells[3].value)) Thus, what I'd like to know is how to actually get the value out of the cell. I'

Document creation with odfpy

2007-07-20 Thread DarkBlue
Hello I hope here is the right place to ask this: I use the python odfpy library to create and load an odt file , however, spaces in the passed in text are removed. http://opendocumentfellowship.org/development/projects/odfpy python2.4 from odf.opendocument import OpenDocumentText from