summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3497b64)
raw | patch | inline | side by side (parent: 3497b64)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Sat, 27 Mar 2004 00:01:48 +0000 (00:01 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Sat, 27 Mar 2004 00:01:48 +0000 (00:01 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@2220 57a73879-2fb5-44c3-a270-3262357dd7e2
CHANGES.txt | patch | blob | history | |
templates/classic/detectors/statusauditor.py | patch | blob | history |
diff --git a/CHANGES.txt b/CHANGES.txt
index 2d20e4ce57ec02b170415b75456b8e12794c113f..b459d60c00983f09bc8675d6edf8825752ea2791 100644 (file)
--- a/CHANGES.txt
+++ b/CHANGES.txt
- sqlite backend wasn't migrating multilink tables correctly
- use SimpleCookie instead of Cookie (is an alias for the evil SmartCookie)
- handle older sessions in session dbm
+- make presetunread more resilient to status Class changes
2004-03-24 0.7.0b1
diff --git a/templates/classic/detectors/statusauditor.py b/templates/classic/detectors/statusauditor.py
index ccc5c8291db37cf81f3853021600e0a81f179485..75e4962516fcfc4fde402c979a178c9553475ad4 100644 (file)
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#
-#$Id: statusauditor.py,v 1.4 2003-10-24 15:51:43 jlgijsbers Exp $
+#$Id: statusauditor.py,v 1.5 2004-03-27 00:01:48 richard Exp $
def chatty(db, cl, nodeid, newvalues):
''' If the issue is currently 'unread', 'resolved', 'done-cbb' or None,
if newvalues.has_key('status') and newvalues['status']:
return
+ # get the unread state ID
+ try:
+ unread_id = db.status.lookup('unread')
+ except KeyError:
+ # no unread state, ignore all this stuff
+ return
+
# ok, do it
- newvalues['status'] = db.status.lookup('unread')
+ newvalues['status'] = unread_id
def init(db):