Mercurial > p > roundup > code
comparison roundup/scripts/roundup_server.py @ 636:3569dfce4bc5
The correct var is "HTTP_HOST"
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Thu, 21 Feb 2002 07:02:54 +0000 |
| parents | 3d61b5d2243e |
| children | cdcee6721841 |
comparison
equal
deleted
inserted
replaced
| 635:3d61b5d2243e | 636:3569dfce4bc5 |
|---|---|
| 16 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, | 16 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, |
| 17 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. | 17 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
| 18 # | 18 # |
| 19 """ HTTP Server that serves roundup. | 19 """ HTTP Server that serves roundup. |
| 20 | 20 |
| 21 $Id: roundup_server.py,v 1.3 2002-02-21 06:57:39 richard Exp $ | 21 $Id: roundup_server.py,v 1.4 2002-02-21 07:02:54 richard Exp $ |
| 22 """ | 22 """ |
| 23 | 23 |
| 24 # python version check | 24 # python version check |
| 25 from roundup import version_check | 25 from roundup import version_check |
| 26 | 26 |
| 156 if co: | 156 if co: |
| 157 env['HTTP_COOKIE'] = ', '.join(co) | 157 env['HTTP_COOKIE'] = ', '.join(co) |
| 158 env['SCRIPT_NAME'] = '' | 158 env['SCRIPT_NAME'] = '' |
| 159 env['SERVER_NAME'] = self.server.server_name | 159 env['SERVER_NAME'] = self.server.server_name |
| 160 env['SERVER_PORT'] = str(self.server.server_port) | 160 env['SERVER_PORT'] = str(self.server.server_port) |
| 161 env['HOST'] = self.headers['host'] | 161 env['HTTP_HOST'] = self.headers['host'] |
| 162 | 162 |
| 163 decoded_query = query.replace('+', ' ') | 163 decoded_query = query.replace('+', ' ') |
| 164 | 164 |
| 165 # do the roundup thang | 165 # do the roundup thang |
| 166 client = instance.Client(instance, self, env) | 166 client = instance.Client(instance, self, env) |
| 247 if __name__ == '__main__': | 247 if __name__ == '__main__': |
| 248 run() | 248 run() |
| 249 | 249 |
| 250 # | 250 # |
| 251 # $Log: not supported by cvs2svn $ | 251 # $Log: not supported by cvs2svn $ |
| 252 # Revision 1.3 2002/02/21 06:57:39 richard | |
| 253 # . Added popup help for classes using the classhelp html template function. | |
| 254 # - add <display call="classhelp('priority', 'id,name,description')"> | |
| 255 # to an item page, and it generates a link to a popup window which displays | |
| 256 # the id, name and description for the priority class. The description | |
| 257 # field won't exist in most installations, but it will be added to the | |
| 258 # default templates. | |
| 259 # | |
| 252 # Revision 1.2 2002/01/29 20:07:15 jhermann | 260 # Revision 1.2 2002/01/29 20:07:15 jhermann |
| 253 # Conversion to generated script stubs | 261 # Conversion to generated script stubs |
| 254 # | 262 # |
| 255 # Revision 1.1 2002/01/29 19:53:08 jhermann | 263 # Revision 1.1 2002/01/29 19:53:08 jhermann |
| 256 # Moved scripts from top-level dir to roundup.scripts subpackage | 264 # Moved scripts from top-level dir to roundup.scripts subpackage |
