Skip to content

Commit e977f5f

Browse files
author
Richard Jones
committed
missed a usage of the database
1 parent 0734c47 commit e977f5f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

roundup/cgi/client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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 $
22

33
__doc__ = """
44
WWW request handler (also used in the stand-alone server).
@@ -390,6 +390,7 @@ def serve_file(self, designator, dre=re.compile(r'([^\d]+)(\d+)')):
390390
raise NotFound, designator
391391

392392
# we just want to serve up the file named
393+
self.opendb('admin')
393394
file = self.db.file
394395
self.additional_headers['Content-Type'] = file.get(nodeid, 'type')
395396
self.write(file.get(nodeid, 'content'))

0 commit comments

Comments
 (0)