Changeset 3047

Show
Ignore:
Timestamp:
01/13/08 14:06:26 (10 months ago)
Author:
ixokai
Message:

Added producers to listen to wiki page changes; added 'Watch This' subscriber that posts a link above any wiki page or ticket and lets you 'subscribe' to changes to just that ticket. Effectively replaces 'CC' use. Added a basic text wiki formatter (that sucks)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • announcerplugin/0.11/announcerplugin/api.py

    r3046 r3047  
    268268        Table('subscriptions', key='id')[ 
    269269            Column('id', auto_increment=True), 
    270             Column('sid'), 
     270            Column('sid'), Column('authenticated', type='int'), 
    271271            Column('enabled', type='int'), 
    272             Column('managed', type='int'), 
     272            Column('managed'), 
    273273            Column('realm'), 
    274274            Column('category'), 
    275275            Column('rule'), 
    276             Column('destination'), 
    277             Column('format'), 
     276            Column('transport'), 
    278277            Index(['id']), 
    279278            Index(['realm', 'category', 'enabled']), 
  • announcerplugin/0.11/announcerplugin/distributors/email_distributor.py

    r3046 r3047  
    108108     
    109109    use_threaded_delivery = BoolOption('announcer', 'use_threaded_delivery', False,  
    110     """If true, the actual delivery of the message will occur in a separate thread.""") 
     110    """If true, the actual delivery of the message will occur in a separate thread. 
     111     
     112    Enabling this will improve responsiveness for requests that end up with an 
     113    announcement being sent over email. It requires building Python with threading 
     114    support enabled-- which is usually the case. To test, start Python and type 
     115    'import threading' to see if it raises an error.""") 
    111116     
    112117    default_email_format = Option('announcer', 'default_email_format', 'text/plain') 
     
    139144                ) 
    140145            ) 
     146             
     147            if not formats: 
     148                self.log.error( 
     149                    "EmailDistributor is unable to continue without supporting formatters." 
     150                ) 
     151                return 
    141152             
    142153            messages = {} 
  • announcerplugin/0.11/announcerplugin/formatters/__init__.py

    r3015 r3047  
    11import ticket_email 
     2import wiki_email 
  • announcerplugin/0.11/announcerplugin/producers/__init__.py

    r3046 r3047  
    11import ticket 
    22import attachment 
     3import wiki 
  • announcerplugin/0.11/announcerplugin/subscribers/__init__.py

    r3046 r3047  
    22import ticket_compat 
    33import ticket_groups 
     4import watchers 
  • announcerplugin/0.11/announcerplugin/subscribers/ticket_groups.py

    r3046 r3047  
    6767                if result: 
    6868                    sess["announcer_" + group_opt] = '1' 
    69                 else: 
    70                     if group_opt in sess: 
     69                else:                     
     70                    if "announcer_" + group_opt in sess: 
    7171                        del sess["announcer_" + group_opt] 
    7272