22Customising Roundup
33===================
44
5- :Version: $Revision: 1.132 $
5+ :Version: $Revision: 1.133 $
66
77.. This document borrows from the ZopeBook section on ZPT. The original is at:
88 http://www.zope.org/Documentation/Books/ZopeBook/current/ZPT.stx
@@ -585,6 +585,9 @@ interface for detectors.
585585
586586__ design.html
587587
588+ Additional Detectors Ready For Use
589+ ----------------------------------
590+
588591Sample additional detectors that have been found useful will appear in
589592the ``'detectors'`` directory of the Roundup distribution. If you want
590593to use one, copy it to the ``'detectors'`` of your tracker instance:
@@ -594,28 +597,18 @@ to use one, copy it to the ``'detectors'`` of your tracker instance:
594597 created. The address is hard-coded into the detector, so edit it
595598 before you use it (look for the text '
[email protected] ') or you'll get
596599 email errors!
597-
598- The detector code::
599-
600- from roundup import roundupdb
601-
602- def newissuecopy(db, cl, nodeid, oldvalues):
603- ''' Copy a message about new issues to a team address.
604- '''
605- # so use all the messages in the create
606- change_note = cl.generateCreateNote(nodeid)
607-
608- # send a copy to the nosy list
609- for msgid in cl.get(nodeid, 'messages'):
610- try:
611- # note: last arg must be a list
612- cl.send_message(nodeid, msgid, change_note,
613- 614- except roundupdb.MessageSendError, message:
615- raise roundupdb.DetectorError, message
616-
617- def init(db):
618- db.issue.react('create', newissuecopy)
600+ **creator_resolution.py**
601+ Catch attempts to set the status to "resolved" - if the assignedto
602+ user isn't the creator, then set the status to "confirm-done". Note that
603+ "classic" Roundup doesn't have that status, so you'll have to add it. If
604+ you don't want to though, it'll just use "in-progress" instead.
605+ **email_auditor.py**
606+ If a file added to an issue is of type message/rfc822, we tack on the
607+ extension .eml.
608+ The reason for this is that Microsoft Internet Explorer will not open
609+ things with a .eml attachment, as they deem it 'unsafe'. Worse yet,
610+ they'll just give you an incomprehensible error message. For more
611+ information, see the detector code - it has a length explanation.
619612
620613
621614Auditor or Reactor?
0 commit comments