Mercurial > p > roundup > code
comparison roundup/cgi/actions.py @ 3913:00896a2acaa5
clean up query display of "Private to you" items
Previously the handling of queries in the edit menu was a little wonky. If
you change a query to not be private to you then you lose the ability to
ever change it back to being private.
Previously the queries were displayed in three chunks: First all retired
queries. Then all queries private to the current user (this batch has the
dropdown for toggling private state). Then all non-private queries.
Now: all queries we created that are retired, all queries that we created
that are not retired, then all non-private queries not created by the
current user.
this should fix [SF#1481394]
| author | Justus Pendleton <jpend@users.sourceforge.net> |
|---|---|
| date | Thu, 20 Sep 2007 23:44:58 +0000 |
| parents | de4c2e538e06 |
| children | c4f7b3817d3d |
comparison
equal
deleted
inserted
replaced
| 3912:82f462d9ad16 | 3913:00896a2acaa5 |
|---|---|
| 1 #$Id: actions.py,v 1.70 2007-05-15 16:23:39 schlatterbeck Exp $ | 1 #$Id: actions.py,v 1.71 2007-09-20 23:44:58 jpend 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 _ |
| 146 Split any String query values on whitespace and comma. | 146 Split any String query values on whitespace and comma. |
| 147 | 147 |
| 148 """ | 148 """ |
| 149 self.fakeFilterVars() | 149 self.fakeFilterVars() |
| 150 queryname = self.getQueryName() | 150 queryname = self.getQueryName() |
| 151 | 151 |
| 152 # editing existing query name? | 152 # editing existing query name? |
| 153 old_queryname = self.getFromForm('old-queryname') | 153 old_queryname = self.getFromForm('old-queryname') |
| 154 | 154 |
| 155 # handle saving the query params | 155 # handle saving the query params |
| 156 if queryname: | 156 if queryname: |
