[mod_python] Source code displayed by Mozilla/Firefox

Colin Doherty coldoherty68 at yahoo.co.uk
Sun Jun 5 12:04:47 EDT 2005


Hi,

I'm using mod_python servlets and psp and although the
code works correctly for IE, the source code of the
template is displayed with Mozilla and Firefox when
called from the servlet.

I'm setting the content type within the servlet:

class test(Servlet):
  content_type = 'text/html'

and calling the template thus:

  def respond(self):
    Servlet.respond(self)
    template = PSP(self.req, filename='test.html')
    template.run({'servlet':self})
    return True

Any suggestions appreciated. 

TIA
Colin


	
	
		
___________________________________________________________ 
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com


More information about the Mod_python mailing list