summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a2b6f03)
raw | patch | inline | side by side (parent: a2b6f03)
author | jlgijsbers <jlgijsbers@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Fri, 24 Oct 2003 15:51:43 +0000 (15:51 +0000) | ||
committer | jlgijsbers <jlgijsbers@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Fri, 24 Oct 2003 15:51:43 +0000 (15:51 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1930 57a73879-2fb5-44c3-a270-3262357dd7e2
templates/classic/detectors/statusauditor.py | patch | blob | history |
diff --git a/templates/classic/detectors/statusauditor.py b/templates/classic/detectors/statusauditor.py
index e7aa6e9b02a4dd2c242d83a55bec495af040bdac..ccc5c8291db37cf81f3853021600e0a81f179485 100644 (file)
# 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'):
# 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