summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2ae3d34)
raw | patch | inline | side by side (parent: 2ae3d34)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Thu, 2 May 2002 08:07:49 +0000 (08:07 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Thu, 2 May 2002 08:07:49 +0000 (08:07 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@715 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/cgi_client.py | patch | blob | history |
diff --git a/roundup/cgi_client.py b/roundup/cgi_client.py
index 9482b391039da64be8a77f874821737cd614ec46..066ad1e31300ad50f2f5655a4400558754b579a4 100644 (file)
--- a/roundup/cgi_client.py
+++ b/roundup/cgi_client.py
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#
-# $Id: cgi_client.py,v 1.115 2002-04-02 01:56:10 richard Exp $
+# $Id: cgi_client.py,v 1.116 2002-05-02 08:07:49 richard Exp $
__doc__ = """
WWW request handler (also used in the stand-alone server).
showissue = shownode
showmsg = shownode
+ def _add_author_to_nosy(self, props):
+ ''' add the author value from the props to the nosy list
+ '''
+ if not props.has_key('author'):
+ return
+ author_id = props['author']
+ if not props.has_key('nosy'):
+ # load current nosy
+ if self.nodeid:
+ cl = self.db.classes[self.classname]
+ l = cl.get(self.nodeid, 'nosy')
+ if author_id in l:
+ return
+ props['nosy'] = l
+ else:
+ props['nosy'] = []
+ if author_id not in props['nosy']:
+ props['nosy'].append(author_id)
+
def _add_assignedto_to_nosy(self, props):
''' add the assignedto value from the props to the nosy list
'''
self._add_assignedto_to_nosy(props)
+ # possibly add the author of the change to the nosy list
+ if self.db.config.ADD_AUTHOR_TO_NOSY == 'yes':
+ self._add_author_to_nosy(props)
+
# create the message
message, files = self._handle_message()
if message:
self._add_assignedto_to_nosy(props)
+ # possibly add the author of the new node to the nosy list
+ if self.db.config.ADD_AUTHOR_TO_NOSY in ('new', 'yes'):
+ self._add_author_to_nosy(props)
+
# check for messages and files
message, files = self._handle_message()
if message:
#
# $Log: not supported by cvs2svn $
+# Revision 1.115 2002/04/02 01:56:10 richard
+# . stop sending blank (whitespace-only) notes
+#
# Revision 1.114 2002/03/17 23:06:05 richard
# oops
#