The decorator only allows you to set a single content type for the method. However, you can use the standard CP mechanism
cherrypy.response.headerMap["Content-Type"] = "whatever/whatever" Kevin On 12/8/05, Static.Reality <[EMAIL PROTECTED]> wrote: > > In my web app that I am writing, I want to store files inside a > database. The storage and retrieval if the document works, but if I > want to store something other than a word doc it does not. > > This is what I am doing now: > > @turbogears.expose(content-type="application/msword") > def getDoc(self, id): > doc = Document.get(id) > return binascii.b2a_hex(doc.data) > > Is there another way to set the content-type? > > > Thanks, > Static > > -- Kevin Dangoor Author of the Zesty News RSS newsreader email: [EMAIL PROTECTED] company: http://www.BlazingThings.com blog: http://www.BlueSkyOnMars.com

