/[glsr]/trunk/harmonious/server/responders/responder403.py
Gentoo

Contents of /trunk/harmonious/server/responders/responder403.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7 - (show annotations) (download) (as text)
Thu Jun 16 00:41:45 2005 UTC (9 years, 2 months ago) by port001
File MIME type: text/x-python
File size: 582 byte(s)
Convert Header to Id
1 __id__ = '$Id$'
2 __version__ = '$Revision: $'
3 __modulename__ = 'Responder403'
4
5 import os
6
7 from harmonious import harm
8 from harmonious.lib.template import Template
9 from harmonious._baseresponder import BaseResponder
10
11 class Responder403(BaseResponder):
12
13 def _construct(self):
14
15 self.add_header('Content-Type', 'text/html')
16 self.add_header('Status', '403')
17
18 template = Template()
19 template.param('403_MSG', self.get_body())
20 template.compile(os.path.join(harm.config.server['TemplatePath'], '403.tpl'))
21 self.set_body(template.output())

Properties

Name Value
svn:keywords Id

  ViewVC Help
Powered by ViewVC 1.1.20