Mercurial > p > roundup > code
diff templates/classic/detectors/statusauditor.py @ 1713:67a11e3cfb0f
Change so setting a property to its current value is also accepted...
...as an explicit change. This is useful in a case where an issue is
resolved, and you want to mail in a comment without making the status
revert to chatting.
| author | Jean Jordaan <neaj@users.sourceforge.net> |
|---|---|
| date | Wed, 25 Jun 2003 09:49:34 +0000 |
| parents | 21312a7564fd |
| children | d2801a2b0a77 c4968040459e |
line wrap: on
line diff
--- a/templates/classic/detectors/statusauditor.py Wed Jun 25 08:02:51 2003 +0000 +++ b/templates/classic/detectors/statusauditor.py Wed Jun 25 09:49:34 2003 +0000 @@ -18,7 +18,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. # -#$Id: statusauditor.py,v 1.1 2003-04-17 03:26:38 richard Exp $ +#$Id: statusauditor.py,v 1.2 2003-06-25 09:49:34 neaj Exp $ def chatty(db, cl, nodeid, newvalues): ''' If the issue is currently 'unread', 'resolved' or 'done-cbb', then set @@ -41,7 +41,7 @@ current_status = cl.get(nodeid, 'status') # see if there's an explicit change in this transaction - if newvalues.has_key('status') and newvalues['status'] != current_status: + if newvalues.has_key('status'): # yep, skip return
