Skip to content

Commit 9abf43a

Browse files
author
Richard Jones
committed
allow serving of non-"file"-Class file content (eg. paper_file)
1 parent c4e1ad3 commit 9abf43a

File tree

5 files changed

+11
-12
lines changed

5 files changed

+11
-12
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ are given with the most recent entry first.
44
2004-??-?? 0.6.5
55
Fixed:
66
- mailgw handling of subject-line errors
7+
- allow serving of non-"file"-Class file content (eg. paper_file)
78

89

910
2003-12-17 0.6.4

demo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# Copyright (c) 2003 Richard Jones ([email protected])
44
#
5-
# $Id: demo.py,v 1.5 2003-07-28 23:17:50 richard Exp $
5+
# $Id: demo.py,v 1.5.2.1 2004-01-07 22:44:43 richard Exp $
66

77
import sys, os, string, re, urlparse
88
import shutil, socket, errno, BaseHTTPServer
@@ -21,7 +21,7 @@ def install_demo(home):
2121
except os.error, error:
2222
if error.errno != errno.ENOENT:
2323
raise
24-
init.write_select_db(home, 'anydbm')
24+
init.write_select_db(home, 'sqlite')
2525

2626
# figure basic params for server
2727
hostname = socket.gethostname()

roundup/__init__.py

Lines changed: 2 additions & 2 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: __init__.py,v 1.25.2.4 2003-12-04 02:39:04 richard Exp $
18+
# $Id: __init__.py,v 1.25.2.5 2004-01-07 22:44:44 richard Exp $
1919

2020
''' Roundup - issue tracking for knowledge workers.
2121
@@ -67,6 +67,6 @@
6767
much prettier cake :)
6868
'''
6969

70-
__version__ = '0.6.4'
70+
__version__ = '0.6.5'
7171

7272
# vim: set filetype=python ts=4 sw=4 et si

roundup/cgi/client.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: client.py,v 1.130.2.3 2003-10-24 09:31:13 jlgijsbers Exp $
1+
# $Id: client.py,v 1.130.2.4 2004-01-07 22:44:44 richard Exp $
22

33
__doc__ = """
44
WWW request handler (also used in the stand-alone server).
@@ -469,14 +469,12 @@ def serve_file(self, designator, dre=re.compile(r'([^\d]+)(\d+)')):
469469
if not m:
470470
raise NotFound, str(designator)
471471
classname, nodeid = m.group(1), m.group(2)
472-
if classname != 'file':
473-
raise NotFound, designator
474472

475473
# we just want to serve up the file named
476474
self.opendb('admin')
477-
file = self.db.file
478-
self.additional_headers['Content-Type'] = file.get(nodeid, 'type')
479-
self.write(file.get(nodeid, 'content'))
475+
klass = self.db.getclass(classname)
476+
self.additional_headers['Content-Type'] = klass.get(nodeid, 'type')
477+
self.write(klass.get(nodeid, 'content'))
480478

481479
def serve_static_file(self, file):
482480
ims = None

roundup/mailgw.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
1818

19-
'''
19+
"""
2020
An e-mail gateway for Roundup.
2121
2222
Incoming messages are examined for multiple parts:
@@ -73,7 +73,7 @@ class node. Any parts of other types are each stored in separate files
7373
an exception, the original message is bounced back to the sender with the
7474
explanatory message given in the exception.
7575
76-
$Id: mailgw.py,v 1.126.2.1 2003-12-19 01:51:56 richard Exp $
76+
$Id: mailgw.py,v 1.126.2.2 2004-01-07 22:44:44 richard Exp $
7777
"""
7878

7979
import string, re, os, mimetools, cStringIO, smtplib, socket, binascii, quopri

0 commit comments

Comments
 (0)