comparison detectors/creator_resolution.py @ 5381:0942fe89e82e

Python 3 preparation: change "x.has_key(y)" to "y in x". (Also likewise "not in" where appropriate.) Tool-generated patch.
author Joseph Myers <jsm@polyomino.org.uk>
date Tue, 24 Jul 2018 22:08:17 +0000
parents 35ea9b1efc14
children
comparison
equal deleted inserted replaced
5380:64c4e43fbb84 5381:0942fe89e82e
7 '''Catch attempts to set the status to "resolved" - if the assignedto 7 '''Catch attempts to set the status to "resolved" - if the assignedto
8 user isn't the creator, then set the status to "in-progress" (try 8 user isn't the creator, then set the status to "in-progress" (try
9 "confirm-done" first though, but "classic" Roundup doesn't have that 9 "confirm-done" first though, but "classic" Roundup doesn't have that
10 status) 10 status)
11 ''' 11 '''
12 if not newvalues.has_key('status'): 12 if 'status' not in newvalues:
13 return 13 return
14 14
15 # get the resolved state ID 15 # get the resolved state ID
16 resolved_id = db.status.lookup('resolved') 16 resolved_id = db.status.lookup('resolved')
17 17

Roundup Issue Tracker: http://roundup-tracker.org/