annotate roundup/templates/extended/interfaces.py @ 602:c242455d9b46 config-0-4-0-branch

Brought the config branch up to date with HEAD
author Richard Jones <richard@users.sourceforge.net>
date Wed, 06 Feb 2002 04:05:55 +0000
parents 00450ff9c4e7
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
213
d45384bc6420 Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents: 183
diff changeset
1 #
d45384bc6420 Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents: 183
diff changeset
2 # Copyright (c) 2001 Bizar Software Pty Ltd (http://www.bizarsoftware.com.au/)
d45384bc6420 Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents: 183
diff changeset
3 # This module is free software, and you may redistribute it and/or modify
d45384bc6420 Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents: 183
diff changeset
4 # under the same terms as Python, so long as this copyright message and
d45384bc6420 Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents: 183
diff changeset
5 # disclaimer are retained in their original form.
d45384bc6420 Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents: 183
diff changeset
6 #
214
18134bffab37 stupid typo
Richard Jones <richard@users.sourceforge.net>
parents: 213
diff changeset
7 # IN NO EVENT SHALL BIZAR SOFTWARE PTY LTD BE LIABLE TO ANY PARTY FOR
213
d45384bc6420 Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents: 183
diff changeset
8 # DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING
d45384bc6420 Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents: 183
diff changeset
9 # OUT OF THE USE OF THIS CODE, EVEN IF THE AUTHOR HAS BEEN ADVISED OF THE
d45384bc6420 Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents: 183
diff changeset
10 # POSSIBILITY OF SUCH DAMAGE.
d45384bc6420 Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents: 183
diff changeset
11 #
d45384bc6420 Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents: 183
diff changeset
12 # BIZAR SOFTWARE PTY LTD SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
d45384bc6420 Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents: 183
diff changeset
13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
d45384bc6420 Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents: 183
diff changeset
14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS"
d45384bc6420 Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents: 183
diff changeset
15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
d45384bc6420 Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents: 183
diff changeset
16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
d45384bc6420 Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents: 183
diff changeset
17 #
602
c242455d9b46 Brought the config branch up to date with HEAD
Richard Jones <richard@users.sourceforge.net>
parents: 476
diff changeset
18 # $Id: interfaces.py,v 1.15.2.1 2002-02-06 04:05:54 richard Exp $
55
bd7be96eb56d Split off the interfaces (CGI, mailgw) into a separate file from the DB stuff.
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
19
273
45e32247aa33 Pushed the base code for the extended schema CGI interface back...
Richard Jones <richard@users.sourceforge.net>
parents: 264
diff changeset
20 import instance_config
55
bd7be96eb56d Split off the interfaces (CGI, mailgw) into a separate file from the DB stuff.
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
21 from roundup import cgi_client, mailgw
bd7be96eb56d Split off the interfaces (CGI, mailgw) into a separate file from the DB stuff.
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
22
273
45e32247aa33 Pushed the base code for the extended schema CGI interface back...
Richard Jones <richard@users.sourceforge.net>
parents: 264
diff changeset
23 class Client(cgi_client.ExtendedClient):
45e32247aa33 Pushed the base code for the extended schema CGI interface back...
Richard Jones <richard@users.sourceforge.net>
parents: 264
diff changeset
24 ''' derives basic CGI implementation from the standard module,
55
bd7be96eb56d Split off the interfaces (CGI, mailgw) into a separate file from the DB stuff.
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
25 with any specific extensions
bd7be96eb56d Split off the interfaces (CGI, mailgw) into a separate file from the DB stuff.
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
26 '''
602
c242455d9b46 Brought the config branch up to date with HEAD
Richard Jones <richard@users.sourceforge.net>
parents: 476
diff changeset
27 pass
55
bd7be96eb56d Split off the interfaces (CGI, mailgw) into a separate file from the DB stuff.
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
28
bd7be96eb56d Split off the interfaces (CGI, mailgw) into a separate file from the DB stuff.
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
29 class MailGW(mailgw.MailGW):
bd7be96eb56d Split off the interfaces (CGI, mailgw) into a separate file from the DB stuff.
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
30 ''' derives basic mail gateway implementation from the standard module,
bd7be96eb56d Split off the interfaces (CGI, mailgw) into a separate file from the DB stuff.
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
31 with any specific extensions
bd7be96eb56d Split off the interfaces (CGI, mailgw) into a separate file from the DB stuff.
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
32 '''
602
c242455d9b46 Brought the config branch up to date with HEAD
Richard Jones <richard@users.sourceforge.net>
parents: 476
diff changeset
33 pass
55
bd7be96eb56d Split off the interfaces (CGI, mailgw) into a separate file from the DB stuff.
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
34
bd7be96eb56d Split off the interfaces (CGI, mailgw) into a separate file from the DB stuff.
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
35 #
bd7be96eb56d Split off the interfaces (CGI, mailgw) into a separate file from the DB stuff.
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
36 # $Log: not supported by cvs2svn $
602
c242455d9b46 Brought the config branch up to date with HEAD
Richard Jones <richard@users.sourceforge.net>
parents: 476
diff changeset
37 # Revision 1.16 2002/01/14 02:20:15 richard
c242455d9b46 Brought the config branch up to date with HEAD
Richard Jones <richard@users.sourceforge.net>
parents: 476
diff changeset
38 # . changed all config accesses so they access either the instance or the
c242455d9b46 Brought the config branch up to date with HEAD
Richard Jones <richard@users.sourceforge.net>
parents: 476
diff changeset
39 # config attriubute on the db. This means that all config is obtained from
c242455d9b46 Brought the config branch up to date with HEAD
Richard Jones <richard@users.sourceforge.net>
parents: 476
diff changeset
40 # instance_config instead of the mish-mash of classes. This will make
c242455d9b46 Brought the config branch up to date with HEAD
Richard Jones <richard@users.sourceforge.net>
parents: 476
diff changeset
41 # switching to a ConfigParser setup easier too, I hope.
c242455d9b46 Brought the config branch up to date with HEAD
Richard Jones <richard@users.sourceforge.net>
parents: 476
diff changeset
42 #
c242455d9b46 Brought the config branch up to date with HEAD
Richard Jones <richard@users.sourceforge.net>
parents: 476
diff changeset
43 # At a minimum, this makes migration a _little_ easier (a lot easier in the
c242455d9b46 Brought the config branch up to date with HEAD
Richard Jones <richard@users.sourceforge.net>
parents: 476
diff changeset
44 # 0.5.0 switch, I hope!)
c242455d9b46 Brought the config branch up to date with HEAD
Richard Jones <richard@users.sourceforge.net>
parents: 476
diff changeset
45 #
c242455d9b46 Brought the config branch up to date with HEAD
Richard Jones <richard@users.sourceforge.net>
parents: 476
diff changeset
46 # Revision 1.15 2002/01/02 02:32:38 richard
c242455d9b46 Brought the config branch up to date with HEAD
Richard Jones <richard@users.sourceforge.net>
parents: 476
diff changeset
47 # ANONYMOUS_ACCESS -> ANONYMOUS_REGISTER
c242455d9b46 Brought the config branch up to date with HEAD
Richard Jones <richard@users.sourceforge.net>
parents: 476
diff changeset
48 #
476
00450ff9c4e7 ANONYMOUS_ACCESS -> ANONYMOUS_REGISTER
Richard Jones <richard@users.sourceforge.net>
parents: 467
diff changeset
49 # Revision 1.14 2001/12/20 15:43:01 rochecompaan
00450ff9c4e7 ANONYMOUS_ACCESS -> ANONYMOUS_REGISTER
Richard Jones <richard@users.sourceforge.net>
parents: 467
diff changeset
50 # Features added:
00450ff9c4e7 ANONYMOUS_ACCESS -> ANONYMOUS_REGISTER
Richard Jones <richard@users.sourceforge.net>
parents: 467
diff changeset
51 # . Multilink properties are now displayed as comma separated values in
00450ff9c4e7 ANONYMOUS_ACCESS -> ANONYMOUS_REGISTER
Richard Jones <richard@users.sourceforge.net>
parents: 467
diff changeset
52 # a textbox
00450ff9c4e7 ANONYMOUS_ACCESS -> ANONYMOUS_REGISTER
Richard Jones <richard@users.sourceforge.net>
parents: 467
diff changeset
53 # . The add user link is now only visible to the admin user
00450ff9c4e7 ANONYMOUS_ACCESS -> ANONYMOUS_REGISTER
Richard Jones <richard@users.sourceforge.net>
parents: 467
diff changeset
54 # . Modified the mail gateway to reject submissions from unknown
00450ff9c4e7 ANONYMOUS_ACCESS -> ANONYMOUS_REGISTER
Richard Jones <richard@users.sourceforge.net>
parents: 467
diff changeset
55 # addresses if ANONYMOUS_ACCESS is denied
00450ff9c4e7 ANONYMOUS_ACCESS -> ANONYMOUS_REGISTER
Richard Jones <richard@users.sourceforge.net>
parents: 467
diff changeset
56 #
467
103f521810f7 Features added:
Roche Compaan <rochecompaan@users.sourceforge.net>
parents: 413
diff changeset
57 # Revision 1.13 2001/11/26 23:00:53 richard
103f521810f7 Features added:
Roche Compaan <rochecompaan@users.sourceforge.net>
parents: 413
diff changeset
58 # This config stuff is getting to be a real mess...
103f521810f7 Features added:
Roche Compaan <rochecompaan@users.sourceforge.net>
parents: 413
diff changeset
59 #
413
aafe6980123d This config stuff is getting to be a real mess...
Richard Jones <richard@users.sourceforge.net>
parents: 316
diff changeset
60 # Revision 1.12 2001/10/22 03:25:01 richard
aafe6980123d This config stuff is getting to be a real mess...
Richard Jones <richard@users.sourceforge.net>
parents: 316
diff changeset
61 # Added configuration for:
aafe6980123d This config stuff is getting to be a real mess...
Richard Jones <richard@users.sourceforge.net>
parents: 316
diff changeset
62 # . anonymous user access and registration (deny/allow)
aafe6980123d This config stuff is getting to be a real mess...
Richard Jones <richard@users.sourceforge.net>
parents: 316
diff changeset
63 # . filter "widget" location on index page (top, bottom, both)
aafe6980123d This config stuff is getting to be a real mess...
Richard Jones <richard@users.sourceforge.net>
parents: 316
diff changeset
64 # Updated some documentation.
aafe6980123d This config stuff is getting to be a real mess...
Richard Jones <richard@users.sourceforge.net>
parents: 316
diff changeset
65 #
316
c0ca7f35e0c5 Added configuration for:
Richard Jones <richard@users.sourceforge.net>
parents: 273
diff changeset
66 # Revision 1.11 2001/10/09 07:38:58 richard
c0ca7f35e0c5 Added configuration for:
Richard Jones <richard@users.sourceforge.net>
parents: 273
diff changeset
67 # Pushed the base code for the extended schema CGI interface back into the
c0ca7f35e0c5 Added configuration for:
Richard Jones <richard@users.sourceforge.net>
parents: 273
diff changeset
68 # code cgi_client module so that future updates will be less painful.
c0ca7f35e0c5 Added configuration for:
Richard Jones <richard@users.sourceforge.net>
parents: 273
diff changeset
69 # Also removed a debugging print statement from cgi_client.
c0ca7f35e0c5 Added configuration for:
Richard Jones <richard@users.sourceforge.net>
parents: 273
diff changeset
70 #
273
45e32247aa33 Pushed the base code for the extended schema CGI interface back...
Richard Jones <richard@users.sourceforge.net>
parents: 264
diff changeset
71 # Revision 1.10 2001/10/05 02:23:24 richard
45e32247aa33 Pushed the base code for the extended schema CGI interface back...
Richard Jones <richard@users.sourceforge.net>
parents: 264
diff changeset
72 # . roundup-admin create now prompts for property info if none is supplied
45e32247aa33 Pushed the base code for the extended schema CGI interface back...
Richard Jones <richard@users.sourceforge.net>
parents: 264
diff changeset
73 # on the command-line.
45e32247aa33 Pushed the base code for the extended schema CGI interface back...
Richard Jones <richard@users.sourceforge.net>
parents: 264
diff changeset
74 # . hyperdb Class getprops() method may now return only the mutable
45e32247aa33 Pushed the base code for the extended schema CGI interface back...
Richard Jones <richard@users.sourceforge.net>
parents: 264
diff changeset
75 # properties.
45e32247aa33 Pushed the base code for the extended schema CGI interface back...
Richard Jones <richard@users.sourceforge.net>
parents: 264
diff changeset
76 # . Login now uses cookies, which makes it a whole lot more flexible. We can
45e32247aa33 Pushed the base code for the extended schema CGI interface back...
Richard Jones <richard@users.sourceforge.net>
parents: 264
diff changeset
77 # now support anonymous user access (read-only, unless there's an
45e32247aa33 Pushed the base code for the extended schema CGI interface back...
Richard Jones <richard@users.sourceforge.net>
parents: 264
diff changeset
78 # "anonymous" user, in which case write access is permitted). Login
45e32247aa33 Pushed the base code for the extended schema CGI interface back...
Richard Jones <richard@users.sourceforge.net>
parents: 264
diff changeset
79 # handling has been moved into cgi_client.Client.main()
45e32247aa33 Pushed the base code for the extended schema CGI interface back...
Richard Jones <richard@users.sourceforge.net>
parents: 264
diff changeset
80 # . The "extended" schema is now the default in roundup init.
45e32247aa33 Pushed the base code for the extended schema CGI interface back...
Richard Jones <richard@users.sourceforge.net>
parents: 264
diff changeset
81 # . The schemas have had their page headings modified to cope with the new
45e32247aa33 Pushed the base code for the extended schema CGI interface back...
Richard Jones <richard@users.sourceforge.net>
parents: 264
diff changeset
82 # login handling. Existing installations should copy the interfaces.py
45e32247aa33 Pushed the base code for the extended schema CGI interface back...
Richard Jones <richard@users.sourceforge.net>
parents: 264
diff changeset
83 # file from the roundup lib directory to their instance home.
45e32247aa33 Pushed the base code for the extended schema CGI interface back...
Richard Jones <richard@users.sourceforge.net>
parents: 264
diff changeset
84 # . Incorrectly had a Bizar Software copyright on the cgitb.py module from
45e32247aa33 Pushed the base code for the extended schema CGI interface back...
Richard Jones <richard@users.sourceforge.net>
parents: 264
diff changeset
85 # Ping - has been removed.
45e32247aa33 Pushed the base code for the extended schema CGI interface back...
Richard Jones <richard@users.sourceforge.net>
parents: 264
diff changeset
86 # . Fixed a whole bunch of places in the CGI interface where we should have
45e32247aa33 Pushed the base code for the extended schema CGI interface back...
Richard Jones <richard@users.sourceforge.net>
parents: 264
diff changeset
87 # been returning Not Found instead of throwing an exception.
45e32247aa33 Pushed the base code for the extended schema CGI interface back...
Richard Jones <richard@users.sourceforge.net>
parents: 264
diff changeset
88 # . Fixed a deviation from the spec: trying to modify the 'id' property of
45e32247aa33 Pushed the base code for the extended schema CGI interface back...
Richard Jones <richard@users.sourceforge.net>
parents: 264
diff changeset
89 # an item now throws an exception.
45e32247aa33 Pushed the base code for the extended schema CGI interface back...
Richard Jones <richard@users.sourceforge.net>
parents: 264
diff changeset
90 #
264
a671e5917b33 Many features and fixes.
Richard Jones <richard@users.sourceforge.net>
parents: 214
diff changeset
91 # Revision 1.9 2001/08/07 00:24:43 richard
a671e5917b33 Many features and fixes.
Richard Jones <richard@users.sourceforge.net>
parents: 214
diff changeset
92 # stupid typo
a671e5917b33 Many features and fixes.
Richard Jones <richard@users.sourceforge.net>
parents: 214
diff changeset
93 #
214
18134bffab37 stupid typo
Richard Jones <richard@users.sourceforge.net>
parents: 213
diff changeset
94 # Revision 1.8 2001/08/07 00:15:51 richard
18134bffab37 stupid typo
Richard Jones <richard@users.sourceforge.net>
parents: 213
diff changeset
95 # Added the copyright/license notice to (nearly) all files at request of
18134bffab37 stupid typo
Richard Jones <richard@users.sourceforge.net>
parents: 213
diff changeset
96 # Bizar Software.
18134bffab37 stupid typo
Richard Jones <richard@users.sourceforge.net>
parents: 213
diff changeset
97 #
213
d45384bc6420 Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents: 183
diff changeset
98 # Revision 1.7 2001/08/02 00:43:06 richard
d45384bc6420 Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents: 183
diff changeset
99 # Even better (more useful) headings
d45384bc6420 Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents: 183
diff changeset
100 #
183
2c5135c902ff Even better (more useful) headings
Richard Jones <richard@users.sourceforge.net>
parents: 182
diff changeset
101 # Revision 1.6 2001/08/02 00:36:42 richard
2c5135c902ff Even better (more useful) headings
Richard Jones <richard@users.sourceforge.net>
parents: 182
diff changeset
102 # Made all the user-specific link names the same (My Foo)
2c5135c902ff Even better (more useful) headings
Richard Jones <richard@users.sourceforge.net>
parents: 182
diff changeset
103 #
182
b6b79523be74 Made all the user-specific link names the same (My Foo)
Richard Jones <richard@users.sourceforge.net>
parents: 176
diff changeset
104 # Revision 1.5 2001/08/01 05:15:09 richard
b6b79523be74 Made all the user-specific link names the same (My Foo)
Richard Jones <richard@users.sourceforge.net>
parents: 176
diff changeset
105 # Added "My Issues" and "My Support" to extended template.
b6b79523be74 Made all the user-specific link names the same (My Foo)
Richard Jones <richard@users.sourceforge.net>
parents: 176
diff changeset
106 #
176
9cfab7f55df0 Added "My Issues" and "My Support" to extended template.
Richard Jones <richard@users.sourceforge.net>
parents: 167
diff changeset
107 # Revision 1.4 2001/07/30 08:12:17 richard
9cfab7f55df0 Added "My Issues" and "My Support" to extended template.
Richard Jones <richard@users.sourceforge.net>
parents: 167
diff changeset
108 # Added time logging and file uploading to the templates.
9cfab7f55df0 Added "My Issues" and "My Support" to extended template.
Richard Jones <richard@users.sourceforge.net>
parents: 167
diff changeset
109 #
167
a49c8a2ddd26 Added time logging and file uploading to the templates.
Richard Jones <richard@users.sourceforge.net>
parents: 144
diff changeset
110 # Revision 1.3 2001/07/30 01:26:59 richard
a49c8a2ddd26 Added time logging and file uploading to the templates.
Richard Jones <richard@users.sourceforge.net>
parents: 144
diff changeset
111 # Big changes:
a49c8a2ddd26 Added time logging and file uploading to the templates.
Richard Jones <richard@users.sourceforge.net>
parents: 144
diff changeset
112 # . split off the support priority into its own class
a49c8a2ddd26 Added time logging and file uploading to the templates.
Richard Jones <richard@users.sourceforge.net>
parents: 144
diff changeset
113 # . added "new support, new user" to the page head
a49c8a2ddd26 Added time logging and file uploading to the templates.
Richard Jones <richard@users.sourceforge.net>
parents: 144
diff changeset
114 # . fixed the display options for the heading links
a49c8a2ddd26 Added time logging and file uploading to the templates.
Richard Jones <richard@users.sourceforge.net>
parents: 144
diff changeset
115 #
144
b0c4ac63c6ed Big changes:
Richard Jones <richard@users.sourceforge.net>
parents: 127
diff changeset
116 # Revision 1.2 2001/07/29 07:01:39 richard
b0c4ac63c6ed Big changes:
Richard Jones <richard@users.sourceforge.net>
parents: 127
diff changeset
117 # Added vim command to all source so that we don't get no steenkin' tabs :)
b0c4ac63c6ed Big changes:
Richard Jones <richard@users.sourceforge.net>
parents: 127
diff changeset
118 #
127
0791d13baea7 Added vim command to all source so that we don't get no steenkin' tabs :)
Richard Jones <richard@users.sourceforge.net>
parents: 55
diff changeset
119 # Revision 1.1 2001/07/23 23:16:01 richard
0791d13baea7 Added vim command to all source so that we don't get no steenkin' tabs :)
Richard Jones <richard@users.sourceforge.net>
parents: 55
diff changeset
120 # Split off the interfaces (CGI, mailgw) into a separate file from the DB stuff.
55
bd7be96eb56d Split off the interfaces (CGI, mailgw) into a separate file from the DB stuff.
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
121 #
127
0791d13baea7 Added vim command to all source so that we don't get no steenkin' tabs :)
Richard Jones <richard@users.sourceforge.net>
parents: 55
diff changeset
122 #
0791d13baea7 Added vim command to all source so that we don't get no steenkin' tabs :)
Richard Jones <richard@users.sourceforge.net>
parents: 55
diff changeset
123 # vim: set filetype=python ts=4 sw=4 et si

Roundup Issue Tracker: http://roundup-tracker.org/