[albatross-users] Oh, and another tricky one.. :)

Cameron Blackwood korg at darkqueen.org
Sat Nov 9 02:50:04 EST 2002


Andrew McNamara writes In message <20021108082425.E28673C188 at coffee.object-craf
t.com.au>:
  |             self.request.write_header('Pragma', 'no-cache')
  |             self.request.write_header('Content-Type', self.mimetype)
  |             self.request.write_header('Content-Disposition', 
  |                                       self.mimedisposition)

Ok, I just used:
  myctxhack.write_header('Content-Type', 'blah/blerg')
  ctx.write_content( open('image/file.blerg','r').read() )
Hacky, I know.

I havnt ever played with Content-Disposition's before, but
then I guess i dont need to mime encode images :)

--
 / `Rev Dr' cameron.blackwood at darkqueen.org    Roleplaying, virtual goth \
<   http://darkqueen.org        Poly, *nix, Python, C/C++, genetics, ATM  >
 \  [+61 3] 9809 1523[h]         skeptic, Evil GM(tm). Sysadmin for hire /
                      ---------- Random Quote ----------
"Israel today announced that it is giving up.  The Zionist state will dissolve 
in two weeks time, and its citizens will disperse to various resort communities
around the world.  Said Prime Minister Yitzhak Shamir, 'Who needs the 
aggravation?'"
-- Dennis Miller, "Satuday Night Live" News



More information about the Albatross-users mailing list