Skip to content

Commit 7d2e3d4

Browse files
author
Richard Jones
committed
Changes to reflect cgi_client now implementing classic by default...
...and not "extended".
1 parent d45538a commit 7d2e3d4

File tree

2 files changed

+12
-39
lines changed

2 files changed

+12
-39
lines changed

roundup/templates/classic/htmlbase.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Do Not Edit (Unless You Want To)
33
# This file automagically generated by roundup.htmldata.makeHtmlBase
44
#
5-
fileDOTindex = """<!-- $Id: htmlbase.py,v 1.2 2001-07-29 23:34:37 richard Exp $-->
5+
fileDOTindex = """<!-- $Id: htmlbase.py,v 1.3 2001-07-30 01:25:57 richard Exp $-->
66
<tr>
77
<property name="name">
88
<td><display call="link('name')"></td>
@@ -13,7 +13,7 @@
1313
</tr>
1414
"""
1515

16-
issueDOTfilter = """<!-- $Id: htmlbase.py,v 1.2 2001-07-29 23:34:37 richard Exp $-->
16+
issueDOTfilter = """<!-- $Id: htmlbase.py,v 1.3 2001-07-30 01:25:57 richard Exp $-->
1717
<property name="title">
1818
<tr><th width="1%" align="right" class="location-bar">Title</th>
1919
<td><display call="field('title')"></td></tr>
@@ -28,7 +28,7 @@
2828
</property>
2929
"""
3030

31-
issueDOTindex = """<!-- $Id: htmlbase.py,v 1.2 2001-07-29 23:34:37 richard Exp $-->
31+
issueDOTindex = """<!-- $Id: htmlbase.py,v 1.3 2001-07-30 01:25:57 richard Exp $-->
3232
<tr class="row-<display call="plain('status')">">
3333
<property name="id">
3434
<td valign="top"><display call="plain('id')"></td>
@@ -51,7 +51,7 @@
5151
</tr>
5252
"""
5353

54-
issueDOTitem = """<!-- $Id: htmlbase.py,v 1.2 2001-07-29 23:34:37 richard Exp $-->
54+
issueDOTitem = """<!-- $Id: htmlbase.py,v 1.3 2001-07-30 01:25:57 richard Exp $-->
5555
<table border=0 cellspacing=0 cellpadding=2>
5656
5757
<tr class="strong-header">
@@ -117,7 +117,7 @@
117117
118118
"""
119119

120-
msgDOTindex = """<!-- $Id: htmlbase.py,v 1.2 2001-07-29 23:34:37 richard Exp $-->
120+
msgDOTindex = """<!-- $Id: htmlbase.py,v 1.3 2001-07-30 01:25:57 richard Exp $-->
121121
<tr>
122122
<property name="date">
123123
<td><display call="link('date')"></td>
@@ -131,7 +131,7 @@
131131
</tr>
132132
"""
133133

134-
msgDOTitem = """<!-- $Id: htmlbase.py,v 1.2 2001-07-29 23:34:37 richard Exp $-->
134+
msgDOTitem = """<!-- $Id: htmlbase.py,v 1.3 2001-07-30 01:25:57 richard Exp $-->
135135
<table border=0 cellspacing=0 cellpadding=2>
136136
137137
<tr class="strong-header">
@@ -378,7 +378,7 @@
378378
}
379379
"""
380380

381-
userDOTindex = """<!-- $Id: htmlbase.py,v 1.2 2001-07-29 23:34:37 richard Exp $-->
381+
userDOTindex = """<!-- $Id: htmlbase.py,v 1.3 2001-07-30 01:25:57 richard Exp $-->
382382
<tr>
383383
<property name="username">
384384
<td><display call="link('username')"></td>
@@ -398,7 +398,7 @@
398398
</tr>
399399
"""
400400

401-
userDOTitem = """<!-- $Id: htmlbase.py,v 1.2 2001-07-29 23:34:37 richard Exp $-->
401+
userDOTitem = """<!-- $Id: htmlbase.py,v 1.3 2001-07-30 01:25:57 richard Exp $-->
402402
<table border=0 cellspacing=0 cellpadding=2>
403403
404404
<tr class="strong-header">

roundup/templates/classic/interfaces.py

Lines changed: 4 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: interfaces.py,v 1.3 2001-07-29 07:01:39 richard Exp $
1+
# $Id: interfaces.py,v 1.4 2001-07-30 01:25:57 richard Exp $
22

33
import urlparse, os
44

@@ -11,36 +11,6 @@ class Client(cgi_client.Client):
1111
'''
1212
TEMPLATES = instance_config.TEMPLATES
1313

14-
default_index_sort = ['-activity']
15-
default_index_group = ['priority']
16-
default_index_filter = []
17-
default_index_columns = ['id','activity','title','status','assignedto']
18-
default_index_filterspec = {'status': ['1', '2', '3', '4', '5', '6', '7']}
19-
20-
def pagehead(self, title, message=None):
21-
url = self.env['SCRIPT_NAME'] + '/' #self.env.get('PATH_INFO', '/')
22-
machine = self.env['SERVER_NAME']
23-
port = self.env['SERVER_PORT']
24-
if port != '80': machine = machine + ':' + port
25-
base = urlparse.urlunparse(('http', machine, url, None, None, None))
26-
if message is not None:
27-
message = '<div class="system-msg">%s</div>'%message
28-
else:
29-
message = ''
30-
style = open(os.path.join(self.TEMPLATES, 'style.css')).read()
31-
userid = self.db.user.lookup(self.user)
32-
self.write('''<html><head>
33-
<title>%s</title>
34-
<style type="text/css">%s</style>
35-
</head>
36-
<body bgcolor=#ffffff>
37-
%s
38-
<table width=100%% border=0 cellspacing=0 cellpadding=2>
39-
<tr class="location-bar"><td><big><strong>%s</strong></big>
40-
(login: <a href="user%s">%s</a>)</td></tr>
41-
</table>
42-
'''%(title, style, message, title, userid, self.user))
43-
4414
class MailGW(mailgw.MailGW):
4515
''' derives basic mail gateway implementation from the standard module,
4616
with any specific extensions
@@ -51,6 +21,9 @@ class MailGW(mailgw.MailGW):
5121

5222
#
5323
# $Log: not supported by cvs2svn $
24+
# Revision 1.3 2001/07/29 07:01:39 richard
25+
# Added vim command to all source so that we don't get no steenkin' tabs :)
26+
#
5427
# Revision 1.2 2001/07/29 04:07:37 richard
5528
# Fixed the classic template so it's more like the "advertised" Roundup
5629
# template.

0 commit comments

Comments
 (0)