Edgewall Software

Changes between Version 2 and Version 3 of TracDev/NotificationApi


Ignore:
Timestamp:
Jul 25, 2010, 11:17:49 PM (14 years ago)
Author:
hasienda <hoff.st@…>
Comment:

add ticket system specific API info and another link to Trac plugins using TracNotification infrastructure

Legend:

Unmodified
Added
Removed
Modified
  • TracDev/NotificationApi

    v2 v3  
    624624{{{#!td
    625625includes methods {{{build_addresses}}} and {{{remove_dup}}}
     626}}}
     627
     628Source: [source:trunk/trac/notification.py trac/notification.py]
     629
     630{{{#!th
     631type
     632}}}
     633{{{#!th
     634name
     635}}}
     636{{{#!th
     637doc-string/notes
     638}}}
     639|----------------
     640{{{#!td style="background: #efe"
     641class
     642}}}
     643{{{#!td style="background: #efe"
     644!TicketNotificationSystem(Component)
     645}}}
     646{{{#!td
     647
     648{{{#!th
     649type
     650}}}
     651{{{#!th
     652section
     653}}}
     654{{{#!th
     655option name
     656}}}
     657{{{#!th
     658default value
     659}}}
     660{{{#!th
     661doc-string/notes
     662}}}
     663|----------------
     664{{{#!td
     665!BoolOption
     666}}}
     667{{{#!td
     668notification
     669}}}
     670{{{#!td
     671always_notify_owner
     672}}}
     673{{{#!td
     674false
     675}}}
     676{{{#!td
     677Always send notifications to the ticket owner (''since 0.9'').
     678}}}
     679|----------------
     680{{{#!td
     681!BoolOption
     682}}}
     683{{{#!td
     684notification
     685}}}
     686{{{#!td
     687always_notify_reporter
     688}}}
     689{{{#!td
     690false
     691}}}
     692{{{#!td
     693Always send notifications to any address in the ''reporter'' field.
     694}}}
     695|----------------
     696{{{#!td
     697!BoolOption
     698}}}
     699{{{#!td
     700notification
     701}}}
     702{{{#!td
     703always_notify_updater
     704}}}
     705{{{#!td
     706true
     707}}}
     708{{{#!td
     709Always send notifications to the person who causes the ticket property change and to any previous updater of that ticket.
     710}}}
     711|----------------
     712{{{#!td
     713Option
     714}}}
     715{{{#!td
     716notification
     717}}}
     718{{{#!td
     719ticket_subject_template
     720}}}
     721{{{#!td
     722'$prefix #$ticket.id: $summary'
     723}}}
     724{{{#!td
     725A Genshi text template snippet used to get the notification subject.[[BR]]
     726By default, the subject template is `$prefix #$ticket.id: $summary`. `$prefix` being the value of the `smtp_subject_prefix` option. ''(since 0.11)''
     727}}}
     728
     729}}}
     730|----------------
     731{{{#!td colspan="3"
     732}}}
     733|----------------
     734{{{#!td style="background: #efe"
     735class
     736}}}
     737{{{#!td style="background: #efe"
     738!TicketNotifyEmail(NotifyEmail)
     739}}}
     740{{{#!td
     741Notification of ticket changes.
     742}}}
     743|----------------
     744{{{#!td
     745method
     746}}}
     747{{{#!td
     748{{{__init__}}}
     749}}}
     750{{{#!td
     751}}}
     752|----------------
     753{{{#!td
     754method
     755}}}
     756{{{#!td
     757notify
     758}}}
     759{{{#!td
     760Send ticket change notification e-mail (untranslated)
     761}}}
     762|----------------
     763{{{#!td
     764method
     765}}}
     766{{{#!td
     767_notify
     768}}}
     769{{{#!td
     770}}}
     771|----------------
     772{{{#!td
     773method
     774}}}
     775{{{#!td
     776send
     777}}}
     778{{{#!td
     779}}}
     780|----------------
     781{{{#!td
     782method
     783}}}
     784{{{#!td
     785format_props
     786}}}
     787{{{#!td
     788}}}
     789|----------------
     790{{{#!td
     791method
     792}}}
     793{{{#!td
     794parse_cc
     795}}}
     796{{{#!td
     797}}}
     798|----------------
     799{{{#!td
     800method
     801}}}
     802{{{#!td
     803diff_cc
     804}}}
     805{{{#!td
     806}}}
     807|----------------
     808{{{#!td
     809method
     810}}}
     811{{{#!td
     812format_hdr
     813}}}
     814{{{#!td
     815}}}
     816|----------------
     817{{{#!td
     818method
     819}}}
     820{{{#!td
     821format_subj
     822}}}
     823{{{#!td
     824}}}
     825|----------------
     826{{{#!td
     827method
     828}}}
     829{{{#!td
     830get_recipients
     831}}}
     832{{{#!td
     833}}}
     834|----------------
     835{{{#!td
     836method
     837}}}
     838{{{#!td
     839get_message_id
     840}}}
     841{{{#!td
     842Generate a predictable, but sufficiently unique message ID.
     843}}}
     844|----------------
     845{{{#!td
     846method
     847}}}
     848{{{#!td
     849send
     850}}}
     851{{{#!td
    626852}}}
    627853
     
    634860 * [th:wiki:FullBlogNotificationPlugin]
    635861 * [th:wiki:PrivateCommentPlugin PrivateCommentPlugin]
     862 * [th:wiki:WikiNotificationPlugin WikiNotificationPlugin]
    636863
    637864Trac plugins using '''!TicketNotifyEmail''' (as of 25-Jul-2010)