From: jlgijsbers Date: Fri, 24 Oct 2003 15:51:43 +0000 (+0000) Subject: Set status to 'chatting' if no status is set (patch #827613). X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8cd8e3ea8b91475175d682fe0b80db0978442054;p=roundup.git Set status to 'chatting' if no status is set (patch #827613). git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1930 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/templates/classic/detectors/statusauditor.py b/templates/classic/detectors/statusauditor.py index e7aa6e9..ccc5c82 100644 --- a/templates/classic/detectors/statusauditor.py +++ b/templates/classic/detectors/statusauditor.py @@ -18,11 +18,11 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. # -#$Id: statusauditor.py,v 1.3 2003-09-04 00:47:01 richard Exp $ +#$Id: statusauditor.py,v 1.4 2003-10-24 15:51:43 jlgijsbers Exp $ def chatty(db, cl, nodeid, newvalues): - ''' If the issue is currently 'unread', 'resolved' or 'done-cbb', then set - it to 'chatting' + ''' If the issue is currently 'unread', 'resolved', 'done-cbb' or None, + then set it to 'chatting' ''' # don't fire if there's no new message (ie. chat) if not newvalues.has_key('messages'): @@ -55,7 +55,7 @@ def chatty(db, cl, nodeid, newvalues): # ok, there's no explicit change, so check if we are in a state that # should be changed - if current_status in fromstates: + if current_status in fromstates + [None]: # yep, we're now chatting newvalues['status'] = chatting_id