Return-Path: X-Original-To: apmail-chemistry-dev-archive@www.apache.org Delivered-To: apmail-chemistry-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 37BAF9B41 for ; Wed, 14 Dec 2011 18:38:00 +0000 (UTC) Received: (qmail 53375 invoked by uid 500); 14 Dec 2011 18:38:00 -0000 Delivered-To: apmail-chemistry-dev-archive@chemistry.apache.org Received: (qmail 53330 invoked by uid 500); 14 Dec 2011 18:38:00 -0000 Mailing-List: contact dev-help@chemistry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@chemistry.apache.org Delivered-To: mailing list dev@chemistry.apache.org Received: (qmail 53321 invoked by uid 99); 14 Dec 2011 18:38:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Dec 2011 18:38:00 +0000 X-ASF-Spam-Status: No, hits=-2001.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Dec 2011 18:37:51 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id E572B112B61 for ; Wed, 14 Dec 2011 18:37:30 +0000 (UTC) Date: Wed, 14 Dec 2011 18:37:30 +0000 (UTC) From: "Jeff Potts (Updated) (JIRA)" To: dev@chemistry.apache.org Message-ID: <928298939.12077.1323887850941.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (CMIS-230) createDocument should accept a string instead of a file object. (Or have alternate version) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CMIS-230?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jeff Potts updated CMIS-230: ---------------------------- Affects Version/s: cmislib 0.4.1 Fix Version/s: cmislib 0.5 > 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 > Affects Versions: cmislib 0.4.1 > Reporter: Jeff Potts > Assignee: Jeff Potts > Priority: Minor > Fix For: cmislib 0.5 > > 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. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira