Skip to content

Commit cbb7432

Browse files
author
Richard Jones
committed
If-Modified-Since handling was broken
Updated documentation for customising hard-coded searches in page.html
1 parent 38260e5 commit cbb7432

File tree

3 files changed

+32
-11
lines changed

3 files changed

+32
-11
lines changed

CHANGES.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
This file contains the changes to the Roundup system over time. The entries
22
are given with the most recent entry first.
33

4+
2007-??-?? 1.3.3
5+
Fixed:
6+
- If-Modified-Since handling was broken
7+
- Updated documentation for customising hard-coded searches in page.html
8+
49

510
2006-12-19 1.3.2
611
Fixed:

doc/customizing.txt

Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Customising Roundup
33
===================
44

5-
:Version: $Revision: 1.215 $
5+
:Version: $Revision: 1.216 $
66

77
.. This document borrows from the ZopeBook section on ZPT. The original is at:
88
http://www.zope.org/Documentation/Books/ZopeBook/current/ZPT.stx
@@ -2925,8 +2925,7 @@ caches the schema).
29252925

29262926
5. if you wish for the due date to appear in the standard views listed
29272927
in the sidebar of the web interface then you'll need to add "due_date"
2928-
to the list of @columns in the links in the sidebar section of
2929-
``page.html``.
2928+
to the columns and columns_showall lists in your ``page.html``.
29302929

29312930

29322931
Adding a new constrained field to the classic schema
@@ -4067,16 +4066,33 @@ resolved. To achieve this:
40674066
example, the existing "Show All" link in the "page" template (in the
40684067
tracker's "html" directory) looks like this::
40694068

4070-
<a href="issue?@sort=-activity&@group=priority&@filter=status&
4071-
@columns=id,activity,title,creator,assignedto,status&
4072-
status=-1,1,2,3,4,5,6,7">Show All</a><br>
4069+
<a href="#"
4070+
tal:attributes="href python:request.indexargs_url('issue', {
4071+
'@sort': '-activity',
4072+
'@group': 'priority',
4073+
'@filter': 'status',
4074+
'@columns': columns_showall,
4075+
'@search_text': '',
4076+
'status': status_notresolved,
4077+
'@dispname': i18n.gettext('Show All'),
4078+
})"
4079+
i18n:translate="">Show All</a><br>
40734080

40744081
modify it to add the "blockers" info to the URL (note, both the
40754082
"@filter" *and* "blockers" values must be specified)::
40764083

4077-
<a href="issue?@sort=-activity&@group=priority&@filter=status,blockers&
4078-
blockers=-1&@columns=id,activity,title,creator,assignedto,status&
4079-
status=-1,1,2,3,4,5,6,7">Show All</a><br>
4084+
<a href="#"
4085+
tal:attributes="href python:request.indexargs_url('issue', {
4086+
'@sort': '-activity',
4087+
'@group': 'priority',
4088+
'@filter': 'status,blockers',
4089+
'@columns': columns_showall,
4090+
'@search_text': '',
4091+
'status': status_notresolved,
4092+
'blockers': '-1',
4093+
'@dispname': i18n.gettext('Show All'),
4094+
})"
4095+
i18n:translate="">Show All</a><br>
40804096

40814097
The above examples are line-wrapped on the trailing & and should
40824098
be unwrapped.

roundup/cgi/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: client.py,v 1.229 2006-11-15 06:27:15 a1s Exp $
1+
# $Id: client.py,v 1.230 2006-12-28 22:08:45 richard Exp $
22

33
"""WWW request handler (also used in the stand-alone server).
44
"""
@@ -727,7 +727,7 @@ def _serve_file(self, lmt, mime_type, content):
727727
ims = self.env['HTTP_IF_MODIFIED_SINCE']
728728
if ims:
729729
ims = rfc822.parsedate(ims)[:6]
730-
lmtt = time.gmtime(lmt)[:6]
730+
lmtt = time.gmtime(ims)[:6]
731731
if lmtt <= ims:
732732
raise NotModified
733733

0 commit comments

Comments
 (0)