|
15 | 15 |
|
16 | 16 | from roundup import roundupdb, date, hyperdb, password |
17 | 17 | from roundup.cgi import templating, cgitb, TranslationService |
18 | | -from roundup.cgi.actions import * |
| 18 | +from roundup.cgi import actions |
19 | 19 | from roundup.exceptions import LoginError, Reject, RejectRaw, Unauthorised |
20 | | -from roundup.cgi.exceptions import * |
| 20 | +from roundup.cgi.exceptions import ( |
| 21 | + FormError, NotFound, NotModified, Redirect, SendFile, SendStaticFile, |
| 22 | + SeriousError) |
21 | 23 | from roundup.cgi.form_parser import FormParser |
22 | 24 | from roundup.mailer import Mailer, MessageSendError, encode_quopri |
23 | 25 | from roundup.cgi import accept_language |
@@ -1222,18 +1224,18 @@ def renderContext(self): |
1222 | 1224 |
|
1223 | 1225 | # these are the actions that are available |
1224 | 1226 | actions = ( |
1225 | | - ('edit', EditItemAction), |
1226 | | - ('editcsv', EditCSVAction), |
1227 | | - ('new', NewItemAction), |
1228 | | - ('register', RegisterAction), |
1229 | | - ('confrego', ConfRegoAction), |
1230 | | - ('passrst', PassResetAction), |
1231 | | - ('login', LoginAction), |
1232 | | - ('logout', LogoutAction), |
1233 | | - ('search', SearchAction), |
1234 | | - ('retire', RetireAction), |
1235 | | - ('show', ShowAction), |
1236 | | - ('export_csv', ExportCSVAction), |
| 1227 | + ('edit', actions.EditItemAction), |
| 1228 | + ('editcsv', actions.EditCSVAction), |
| 1229 | + ('new', actions.NewItemAction), |
| 1230 | + ('register', actions.RegisterAction), |
| 1231 | + ('confrego', actions.ConfRegoAction), |
| 1232 | + ('passrst', actions.PassResetAction), |
| 1233 | + ('login', actions.LoginAction), |
| 1234 | + ('logout', actions.LogoutAction), |
| 1235 | + ('search', actions.SearchAction), |
| 1236 | + ('retire', actions.RetireAction), |
| 1237 | + ('show', actions.ShowAction), |
| 1238 | + ('export_csv', actions.ExportCSVAction), |
1237 | 1239 | ) |
1238 | 1240 | def handle_action(self): |
1239 | 1241 | """ Determine whether there should be an Action called. |
|
0 commit comments