Mercurial > p > roundup > code
comparison roundup/cgi/client.py @ 1722:78cdb73a0b2a maint-0.5
missed a usage of the database
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Fri, 18 Jul 2003 05:40:44 +0000 |
| parents | b6d0cc670060 |
| children |
comparison
equal
deleted
inserted
replaced
| 1720:8fbfe479a873 | 1722:78cdb73a0b2a |
|---|---|
| 1 # $Id: client.py,v 1.65.2.13 2003-06-24 05:19:10 richard Exp $ | 1 # $Id: client.py,v 1.65.2.14 2003-07-18 05:40:44 richard 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 |
| 388 classname, nodeid = m.group(1), m.group(2) | 388 classname, nodeid = m.group(1), m.group(2) |
| 389 if classname != 'file': | 389 if classname != 'file': |
| 390 raise NotFound, designator | 390 raise NotFound, designator |
| 391 | 391 |
| 392 # we just want to serve up the file named | 392 # we just want to serve up the file named |
| 393 self.opendb('admin') | |
| 393 file = self.db.file | 394 file = self.db.file |
| 394 self.additional_headers['Content-Type'] = file.get(nodeid, 'type') | 395 self.additional_headers['Content-Type'] = file.get(nodeid, 'type') |
| 395 self.write(file.get(nodeid, 'content')) | 396 self.write(file.get(nodeid, 'content')) |
| 396 | 397 |
| 397 def serve_static_file(self, file): | 398 def serve_static_file(self, file): |
