Message de Joaquin Cuenca Abela date 2010-07-29 11:58 :
Any other ideas?
Thanks!
For what's worth (I am not fluent in Python), I do not understand this code (and
similar for output) :
self._toProperties(
InputStream=inputStream,
FilterName='writer8',
ReadOnly=True)
which calls this :
def _toProperties(self, **args):
props = []
for key in args:
prop = PropertyValue()
prop.Name = key
prop.Value = args[key]
props.append(prop)
return tuple(props)
I can't see how you will get a correct .Name and .Value for each propertyValue.
Check that you have:
props[0].Name = 'InputStream'
props[0].Value = inputStream
props[1].Name = 'FilterName'
props[1].Value = 'writer8'
props[2].Name = 'ReadOnly'
props[2].Value = True
In the original code, function _toProperties receives a dictionnary as argument,
and this I can understand.
Regards
Bernard
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
For additional commands, e-mail: dev-h...@api.openoffice.org