chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Potts (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CMIS-230) createDocument should accept a string instead of a file object. (Or have alternate version)
Date Tue, 31 May 2011 22:33:47 GMT

     [ https://issues.apache.org/jira/browse/CMIS-230?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jeff Potts resolved CMIS-230.
-----------------------------

    Resolution: Fixed

Manuel, thanks for the patch. I implemented this but I also added the same method to Folder
to be consistent with createDocument, which lives in both the Folder and Repository classes.

> createDocument should accept a string instead of a file object. (Or have alternate version)
> -------------------------------------------------------------------------------------------
>
>                 Key: CMIS-230
>                 URL: https://issues.apache.org/jira/browse/CMIS-230
>             Project: Chemistry
>          Issue Type: Improvement
>          Components: python-cmislib
>            Reporter: Jeff Potts
>            Assignee: Jeff Potts
>            Priority: Minor
>         Attachments: CMIS-230.patch
>
>
> Migrated from GC issue #9, Reported by bdkahn, Mar 17, 2010
> createDocument(name, properties={}, contentFile=None, contentType=None, 
> contentEncoding=None)
> should accept a string for contentFile since the underlying code is simply 
> calling read().encode anyway.
> The python program may have generated the content itself and should be able 
> to upload that file via CMIS rather than needing to save the file and then 
> uploading it.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message