Re: [udk-dev] [pyUNO]opening with XInputStream

2005-11-14 Thread Laurent Godard
Hi David it may be useful to have a version that does not load the entire file in memory, with something like (untested): yes should work btw, havin the whole file in foo can be usefull though for transport consideration. It is what i need :) thanks for your proposal Laurent -- Laurent

Re: [udk-dev] [pyUNO]opening with XInputStream

2005-11-14 Thread David Douard
Hi,it may be useful to have a version that does not load the entire file in memory, with something like (untested):class FileInputStream(unohelper.Base, XInputStream, XSeekable):    """ Minimal Implementation of XInputStream """     def __init__(self, filename):    self.filename = filename 

Re: [udk-dev] [pyUNO]opening with XInputStream

2005-11-14 Thread Laurent Godard
Hi pierre Hi, the google link is a response to one of my question to the list dev@udk.openoffice.org look in the archive for subject "making a copy of the current document" The code you cited is from Joerg Budischewski and it worked perfectly well with OOo1.1 but I never tested it with OOo2.

Re: [udk-dev] [pyUNO]opening with XInputStream

2005-11-14 Thread Pierre Martineau
Hi, the google link is a response to one of my question to the list dev@udk.openoffice.org look in the archive for subject "making a copy of the current document" The code you cited is from Joerg Budischewski and it worked perfectly well with OOo1.1 but I never tested it with OOo2. Pierre Martin

Re: [udk-dev] [pyUNO]opening with XInputStream

2005-11-14 Thread Laurent Godard
Hi seems google is my friend hum, thanks to its caching http://66.249.93.104/search?q=cache:hmuHvanK2soJ:www.o-r-g.org/~azaroth/convert.py+InputStream+loadComponentFromURL+python&hl=fr It is worth a try :) i'll have a look and let you know Laurent -- Laurent Godard <[EMAIL PROTECTED]> - Ingé

[udk-dev] [pyUNO]opening with XInputStream

2005-11-14 Thread Laurent Godard
Hi all i'm doing some tests with pyUNO I cannot figure out using the InputStream property of LoadComponentFromURL i have an OOo file, read by the legal file reading method from python and need to pass it to an OOo instance How can i define this inputStream to pass as argument What is the best