Mercurial > p > roundup > code
comparison roundup/cgi/actions.py @ 3014:fa49f3fe6afa maint-0.7
merge from HEAD
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Wed, 15 Dec 2004 00:07:58 +0000 |
| parents | 3e55ba70f0b7 |
| children | a64ca23531d1 |
comparison
equal
deleted
inserted
replaced
| 3000:fb204c022b7c | 3014:fa49f3fe6afa |
|---|---|
| 1 #$Id: actions.py,v 1.27.2.7 2004-12-07 23:31:00 richard Exp $ | 1 #$Id: actions.py,v 1.27.2.8 2004-12-15 00:07:58 richard Exp $ |
| 2 | 2 |
| 3 import re, cgi, StringIO, urllib, Cookie, time, random | 3 import re, cgi, StringIO, urllib, Cookie, time, random |
| 4 | 4 |
| 5 from roundup import hyperdb, token, date, password, rcsv, exceptions | 5 from roundup import hyperdb, token, date, password, rcsv, exceptions |
| 6 from roundup.i18n import _ | 6 from roundup.i18n import _ |
| 125 self.fakeFilterVars() | 125 self.fakeFilterVars() |
| 126 queryname = self.getQueryName() | 126 queryname = self.getQueryName() |
| 127 | 127 |
| 128 # handle saving the query params | 128 # handle saving the query params |
| 129 if queryname: | 129 if queryname: |
| 130 if not self.hasPermission('Edit', 'query'): | |
| 131 raise Unauthorised, _("You do not have permission to edit queries") | |
| 130 # parse the environment and figure what the query _is_ | 132 # parse the environment and figure what the query _is_ |
| 131 req = templating.HTMLRequest(self.client) | 133 req = templating.HTMLRequest(self.client) |
| 132 | 134 |
| 133 # The [1:] strips off the '?' character, it isn't part of the | 135 # The [1:] strips off the '?' character, it isn't part of the |
| 134 # query string. | 136 # query string. |
