Mercurial > p > roundup > code
comparison roundup/scripts/roundup_server.py @ 635:3d61b5d2243e
Added popup help for classes using the classhelp html template function.
- add <display call="classhelp('priority', 'id,name,description')">
to an item page, and it generates a link to a popup window which displays
the id, name and description for the priority class. The description
field won't exist in most installations, but it will be added to the
default templates.
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Thu, 21 Feb 2002 06:57:39 +0000 |
| parents | 2256f81293c1 |
| children | 3569dfce4bc5 |
comparison
equal
deleted
inserted
replaced
| 634:53549c6a7b33 | 635:3d61b5d2243e |
|---|---|
| 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.2 2002-01-29 20:07:15 jhermann Exp $ | 21 $Id: roundup_server.py,v 1.3 2002-02-21 06:57:39 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 | 162 |
| 162 decoded_query = query.replace('+', ' ') | 163 decoded_query = query.replace('+', ' ') |
| 163 | 164 |
| 164 # do the roundup thang | 165 # do the roundup thang |
| 165 client = instance.Client(instance, self, env) | 166 client = instance.Client(instance, self, env) |
| 246 if __name__ == '__main__': | 247 if __name__ == '__main__': |
| 247 run() | 248 run() |
| 248 | 249 |
| 249 # | 250 # |
| 250 # $Log: not supported by cvs2svn $ | 251 # $Log: not supported by cvs2svn $ |
| 252 # Revision 1.2 2002/01/29 20:07:15 jhermann | |
| 253 # Conversion to generated script stubs | |
| 254 # | |
| 251 # Revision 1.1 2002/01/29 19:53:08 jhermann | 255 # Revision 1.1 2002/01/29 19:53:08 jhermann |
| 252 # Moved scripts from top-level dir to roundup.scripts subpackage | 256 # Moved scripts from top-level dir to roundup.scripts subpackage |
| 253 # | 257 # |
| 254 # Revision 1.25 2002/01/05 02:21:21 richard | 258 # Revision 1.25 2002/01/05 02:21:21 richard |
| 255 # fixes | 259 # fixes |
