Skip to content

Commit aa7f24b

Browse files
author
Richard Jones
committed
Fixed missing import in mailgw :(
1 parent d4a728f commit aa7f24b

File tree

5 files changed

+28
-11
lines changed

5 files changed

+28
-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+
2001-08-30 - 0.2.8
5+
Fixed:
6+
. Missing import in mailgw.
7+
8+
49
2001-08-29 - 0.2.7
510
Feature:
611
. Text searches are now case insensitive. All forms of text search use

doc/announcement.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
Roundup [version] - an issue tracking system
1+
Roundup 0.2.8 - an issue tracking system
22

33
This is a bugfix release.
44

5-
[CHANGES.txt entries for this version go here]
5+
Fixed:
6+
. Missing import in mailgw.
7+
68

79
Roundup is a simple-to-use and -install issue-tracking system with
810
command-line, web and e-mail interfaces. It is based on the winning design

roundup/htmltemplate.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
# $Id: htmltemplate.py,v 1.21 2001-08-16 07:34:59 richard Exp $
18+
# $Id: htmltemplate.py,v 1.22 2001-08-30 06:01:17 richard Exp $
1919

2020
import os, re, StringIO, urllib, cgi, errno
2121

@@ -328,13 +328,14 @@ class List(Base):
328328
''' list the items specified by property using the standard index for
329329
the class
330330
'''
331-
def __call__(self, property, **args):
331+
def __call__(self, property, reverse=0):
332332
propclass = self.properties[property]
333333
if isinstance(not propclass, hyperdb.Multilink):
334334
return '[List: not a Multilink]'
335335
fp = StringIO.StringIO()
336-
args['show_display_form'] = 0
337336
value = self.cl.get(self.nodeid, property)
337+
if reverse:
338+
value.reverse()
338339
# TODO: really not happy with the way templates is passed on here
339340
index(fp, self.templates, self.db, propclass.classname, nodeids=value,
340341
show_display_form=0)
@@ -512,10 +513,10 @@ def index(client, templates, db, classname, filterspec={}, filter=[],
512513
if show_display_form:
513514
anchor = "%s?%s"%(classname, sortby(name, columns, filter,
514515
sort, group, filterspec))
515-
w('<td><span class="list-item"><a href="%s">%s</a></span></td>\n'%(
516+
w('<td><span class="list-header"><a href="%s">%s</a></span></td>\n'%(
516517
anchor, cname))
517518
else:
518-
w('<td><span class="list-item">%s</span></td>\n'%cname)
519+
w('<td><span class="list-header">%s</span></td>\n'%cname)
519520
w('</tr>\n')
520521

521522
# this stuff is used for group headings - optimise the group names
@@ -742,6 +743,9 @@ def newitem(client, templates, db, classname, form, replace=re.compile(
742743

743744
#
744745
# $Log: not supported by cvs2svn $
746+
# Revision 1.21 2001/08/16 07:34:59 richard
747+
# better CGI text searching - but hidden filter fields are disappearing...
748+
#
745749
# Revision 1.20 2001/08/15 23:43:18 richard
746750
# Fixed some isFooTypes that I missed.
747751
# Refactored some code in the CGI code.

roundup/mailgw.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,13 @@ class node. Any parts of other types are each stored in separate files
7272
an exception, the original message is bounced back to the sender with the
7373
explanatory message given in the exception.
7474
75-
$Id: mailgw.py,v 1.14 2001-08-13 23:02:54 richard Exp $
75+
$Id: mailgw.py,v 1.15 2001-08-30 06:01:17 richard Exp $
7676
'''
7777

7878

7979
import string, re, os, mimetools, cStringIO, smtplib, socket, binascii, quopri
8080
import traceback
81-
import date
81+
import hyperdb, date
8282

8383
class MailUsageError(ValueError):
8484
pass
@@ -398,6 +398,9 @@ def parseContent(content, blank_line=re.compile(r'[\r\n]+\s*[\r\n]+'),
398398

399399
#
400400
# $Log: not supported by cvs2svn $
401+
# Revision 1.14 2001/08/13 23:02:54 richard
402+
# Make the mail parser a little more robust.
403+
#
401404
# Revision 1.13 2001/08/12 06:32:36 richard
402405
# using isinstance(blah, Foo) now instead of isFooType
403406
#

setup.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1717
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1818
#
19-
# $Id: setup.py,v 1.17 2001-08-08 03:29:35 richard Exp $
19+
# $Id: setup.py,v 1.18 2001-08-30 06:01:17 richard Exp $
2020

2121
from distutils.core import setup, Extension
2222
from distutils.util import get_platform
@@ -42,7 +42,7 @@
4242

4343

4444
setup ( name = "roundup",
45-
version = "0.2.7",
45+
version = "0.2.8",
4646
description = "Roundup issue tracking system.",
4747
author = "Richard Jones",
4848
author_email = "[email protected]",
@@ -53,6 +53,9 @@
5353

5454
#
5555
# $Log: not supported by cvs2svn $
56+
# Revision 1.17 2001/08/08 03:29:35 richard
57+
# Next release is 0.2.6
58+
#
5659
# Revision 1.16 2001/08/07 00:24:42 richard
5760
# stupid typo
5861
#

0 commit comments

Comments
 (0)