Changeset 2998

Show
Ignore:
Timestamp:
01/08/08 02:54:49 (11 months ago)
Author:
athomas
Message:

Use new add_notice() function rather than warning.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • voteplugin/0.11/tracvote/__init__.py

    r2970 r2998  
    55from trac.web.api import IRequestFilter, IRequestHandler, Href 
    66from trac.web.chrome import ITemplateProvider, add_ctxtnav, add_stylesheet, \ 
    7                             add_script, add_warning 
     7                            add_script, add_notice 
    88from trac.resource import get_resource_url 
    99from trac.db import DatabaseManager, Table, Column 
     
    167167            shown = req.session.get('shown_vote_message') 
    168168            if not shown: 
    169                 add_warning(req, 'You can vote for resources on this Trac ' 
    170                             'install by clicking the up-vote/down-vote arrows ' 
    171                             'in the context navigation bar.') 
     169                add_notice(req, 'You can vote for resources on this Trac ' 
     170                           'install by clicking the up-vote/down-vote arrows ' 
     171                           'in the context navigation bar.') 
    172172                req.session['shown_vote_message'] = True 
    173173        body, title = self.format_votes(resource)