Changeset 3464

Show
Ignore:
Timestamp:
04/04/08 07:19:51 (5 months ago)
Author:
Blackhex
Message:
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • discussionplugin/0.10/setup.py

    r3373 r3464  
    1717    'TracDiscussion.notification = tracdiscussion.notification', 
    1818    'TracDiscussion.spamfilter = tracdiscussion.spamfilter']}, 
    19   install_requires = ['TracWebAdmin'], 
     19  install_requires = ['TracWebAdmin', 'TracSpamFilter'], 
    2020  keywords = 'trac discussion', 
    2121  author = 'Alec Thomas, Radek Bartoň', 
  • discussionplugin/0.10/tracdiscussion/wiki.py

    r3373 r3464  
    106106                row = dict(zip(columns, row)) 
    107107                return html.a(label, href = formatter.href.discussion(id), 
    108                   title = row['subject']
     108                  title = row['subject'].replace('"', '')
    109109            return html.a(label, href = '%s/%s' % (formatter.href.discussion(), 
    110               id), title = label, class_ = 'missing') 
     110              id), title = label.replace('"', ''), class_ = 'missing') 
    111111        elif ns == 'topic': 
    112112            columns = ('forum', 'forum_subject', 'subject') 
     
    119119                return html.a(label, href = '%s#-1' % \ 
    120120                  (formatter.href.discussion(row['forum'], id),), title = 
    121                   '%s: %s' % (row['forum_subject'], row['subject'])) 
     121                  ('%s: %s' % (row['forum_subject'], row['subject'])) 
     122                  .replace('"', '')) 
    122123            return html.a(label, href = '%s/%s' % (formatter.href.discussion(), 
    123               id), title = label, class_ = 'missing') 
     124              id), title = label.replace('"', ''), class_ = 'missing') 
    124125        elif ns == 'message': 
    125126            columns = ('forum', 'topic', 'forum_subject', 'subject') 
     
    134135                return html.a(label, href = '%s#%s' % \ 
    135136                  (formatter.href.discussion(row['forum'], row['topic'], id), 
    136                   id), title = '%s: %s' % (row['forum_subject'], 
    137                   row['subject'])) 
     137                  id), title = ('%s: %s' % (row['forum_subject'], 
     138                  row['subject'])).replace('"', '')) 
    138139            return html.a(label, href = '%s/%s' % (formatter.href.discussion(), 
    139               id), title = label, class_ = 'missing') 
     140              id), title = label.replace('"', ''), class_ = 'missing') 
    140141        else: 
    141142            return html.a(label, href = '%s/%s' % (formatter.href.discussion(), 
    142               id), title = label, class_ = 'missing') 
     143              id), title = label.replace('"', ''), class_ = 'missing')