Mercurial > p > roundup > code
comparison roundup/cgi/actions.py @ 3805:f86d9531c8db
comment update
| author | Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net> |
|---|---|
| date | Thu, 11 Jan 2007 07:34:02 +0000 |
| parents | 5445ff8c442b |
| children | 1a44e4bb2b54 |
comparison
equal
deleted
inserted
replaced
| 3804:5445ff8c442b | 3805:f86d9531c8db |
|---|---|
| 1 #$Id: actions.py,v 1.63 2007-01-10 20:16:17 schlatterbeck Exp $ | 1 #$Id: actions.py,v 1.64 2007-01-11 07:34:02 schlatterbeck Exp $ |
| 2 | 2 |
| 3 import re, cgi, StringIO, urllib, Cookie, time, random, csv, codecs | 3 import re, cgi, StringIO, urllib, Cookie, time, random, csv, codecs |
| 4 | 4 |
| 5 from roundup import hyperdb, token, date, password | 5 from roundup import hyperdb, token, date, password |
| 6 from roundup.i18n import _ | 6 from roundup.i18n import _ |
| 242 | 242 |
| 243 self.form.value.append(cgi.MiniFieldStorage('@filter', key)) | 243 self.form.value.append(cgi.MiniFieldStorage('@filter', key)) |
| 244 | 244 |
| 245 def getCurrentURL(self, req): | 245 def getCurrentURL(self, req): |
| 246 """Get current URL for storing as a query. | 246 """Get current URL for storing as a query. |
| 247 The [1:] strips off the '?' character, it isn't part of the | 247 |
| 248 query string. | 248 Note: We are removing the first character from the current URL, |
| 249 because the leading '?' is not part of the query string. | |
| 250 | |
| 251 Implementation note: | |
| 249 But maybe the template should be part of the stored query: | 252 But maybe the template should be part of the stored query: |
| 250 template = self.getFromForm('template') | 253 template = self.getFromForm('template') |
| 251 if template: | 254 if template: |
| 252 return req.indexargs_url('', {'@template' : template})[1:] | 255 return req.indexargs_url('', {'@template' : template})[1:] |
| 253 """ | 256 """ |
