comparison roundup/cgi/client.py @ 1427:37e712e77a99

trackers' templates directory can contain subdirectories with static files
author Andrey Lebedev <kedder@users.sourceforge.net>
date Thu, 13 Feb 2003 12:10:34 +0000
parents b79b1823af7b
children c70068162e64
comparison
equal deleted inserted replaced
1426:b79b1823af7b 1427:37e712e77a99
1 # $Id: client.py,v 1.83 2003-02-13 11:23:46 richard Exp $ 1 # $Id: client.py,v 1.84 2003-02-13 12:10:34 kedder Exp $
2 2
3 __doc__ = """ 3 __doc__ = """
4 WWW request handler (also used in the stand-alone server). 4 WWW request handler (also used in the stand-alone server).
5 """ 5 """
6 6
348 self.template = template_override 348 self.template = template_override
349 else: 349 else:
350 self.template = '' 350 self.template = ''
351 return 351 return
352 elif path[0] == '_file': 352 elif path[0] == '_file':
353 raise SendStaticFile, path[1] 353 raise SendStaticFile, os.path.join(*path[1:])
354 else: 354 else:
355 self.classname = path[0] 355 self.classname = path[0]
356 if len(path) > 1: 356 if len(path) > 1:
357 # send the file identified by the designator in path[0] 357 # send the file identified by the designator in path[0]
358 raise SendFile, path[0] 358 raise SendFile, path[0]

Roundup Issue Tracker: http://roundup-tracker.org/