method_id = ti.queryMethodID('jsupload_snippet')
meth = method_id and getattr(ob, method_id) or (lambda : 'Not implemented')
RESPONSE.setStatus(httpRespCode)
- return '<![CDATA[%s]]>' % meth()
+ RESPONSE.setHeader('Content-Type', 'text/xml;;charset=utf-8')
+ return '<fragment>%s</fragment>' % meth().strip()
# ## overload to maintain ownership if authenticated user has 'Manage portal' permission