X-Git-Url: https://scm.cri.mines-paristech.fr/git/Plinn.git/blobdiff_plain/351e9460c5a2215ba574374c37cde06f1ceb55a9..a8f0edf22418e87346d8561e5e5904dc262acbdd:/Folder.py?ds=sidebyside diff --git a/Folder.py b/Folder.py index db87868..2458bf1 100644 --- a/Folder.py +++ b/Folder.py @@ -348,7 +348,8 @@ class PlinnFolder(CMFCatalogAware, PortalFolder, DefaultDublinCoreImpl) : method_id = ti.queryMethodID('jsupload_snippet') meth = method_id and getattr(ob, method_id) or (lambda : 'Not implemented') RESPONSE.setStatus(httpRespCode) - return '' % meth() + RESPONSE.setHeader('Content-Type', 'text/xml;;charset=utf-8') + return '%s>' % meth().strip() # ## overload to maintain ownership if authenticated user has 'Manage portal' permission