Skip to content

Commit 659ca65

Browse files
author
Richard Jones
committed
fixed static file serving
1 parent 714cc77 commit 659ca65

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Fixed:
1313
- fixed journal marshalling in RDBMS backends (sf bug 943627)
1414
- fixed handling of key values starting with numbers (sf bug 941363)
1515
- fixed journal "param" column size in RDBMS backends
16+
- fixed static file serving
1617

1718

1819
2004-04-18 0.7.0b3

roundup/cgi/client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: client.py,v 1.174 2004-05-02 23:16:05 richard Exp $
1+
# $Id: client.py,v 1.175 2004-05-04 00:02:18 richard Exp $
22

33
"""WWW request handler (also used in the stand-alone server).
44
"""
@@ -478,7 +478,7 @@ def serve_static_file(self, file):
478478

479479
self._serve_file(lmt, mime_type, content)
480480

481-
def _serve_file(self, last_modified, mime_type, content):
481+
def _serve_file(self, lmt, mime_type, content):
482482
''' guts of serve_file() and serve_static_file()
483483
'''
484484
ims = None
@@ -497,7 +497,7 @@ def _serve_file(self, last_modified, mime_type, content):
497497
# spit out headers
498498
self.additional_headers['Content-Type'] = mime_type
499499
self.additional_headers['Content-Length'] = len(content)
500-
lmt = rfc822.formatdate(last_modified)
500+
lmt = rfc822.formatdate(lmt)
501501
self.additional_headers['Last-Modifed'] = lmt
502502
self.write(content)
503503

templates/classic/html/user.item.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
<th>Timezone</th>
5757
<td tal:define="timezone request/form/timezone/value | python:'';
5858
timezone python:timezone
59-
or db._db.user.get(request.user.id, 'timezone')
59+
or db._db.user.get(context.id, 'timezone')
6060
or config.DEFAULT_TIMEZONE">
6161
<input tal:condition="context/is_edit_ok" name="timezone"
6262
tal:attributes="value timezone">

0 commit comments

Comments
 (0)