Changeset 1533

Show
Ignore:
Timestamp:
11/10/06 19:58:01 (2 years ago)
Author:
bmcquay
Message:

PublishRevertPlugin:

cleaning things up again

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • publishrevertplugin/publishrevert/__init__.py

    r1531 r1533  
    11# PublishRevert module 
    22from publishrevert import * 
     3from setchangeset import * 
     4from svnpublish import * 
  • publishrevertplugin/publishrevert/svnpublish.py

    r1530 r1533  
    3636from trac.util import escape, Markup 
    3737 
    38 class PublishModule(Component): 
     38class SVNPublishModule(Component): 
    3939 
    4040    implements(INavigationContributor, IPermissionRequestor, IRequestHandler, 
     
    5757 
    5858    def match_request(self, req): 
    59         match = re.match(r'/publish/([0-9]+)$', req.path_info) 
     59        match = re.match(r'/svnpublish/([0-9]+)$', req.path_info) 
    6060        if match: 
    6161            req.args['ticket_id'] = match.group(1) 
     
    7373        diff_options = get_diff_options(req) 
    7474        if req.args.has_key('update'): 
    75             req.redirect(self.env.href.publish(ticket_id)) 
     75            req.redirect(self.env.href.svnpublish(ticket_id)) 
    7676 
    7777        ticket = Ticket(self.env, ticket_id) 
  • publishrevertplugin/publishrevert/templates/setchangeset.cs

    r1527 r1533  
    55<h1>Ticket <a href="../ticket/<?cs var:ticket_id ?>"><?cs var:ticket_id ?></a></h1> 
    66 
    7 <a href="../publish/<?cs var:ticket_id ?>">PUBLISH TO PRODUCTION</a><br/> 
    8 <a href="../revert/<?cs var:ticket_id ?>">REVERT PRODUCTION</a> 
     7<a href="../svnpublish/<?cs var:ticket_id ?>">PUBLISH TO PRODUCTION</a><br/> 
     8<a href="../svnrevert/<?cs var:ticket_id ?>">REVERT PRODUCTION</a> 
    99 
    1010 
  • publishrevertplugin/setup.py

    r1528 r1533  
    77      version=VERSION, 
    88      packages=['publishrevert'], 
    9       package_data={'publishrevert' : ['publishrevert/setchangeset/templates/*.cs','publishrevert/svnpublish/templates/*.cs']}, 
     9      package_data={'publishrevert' : ['templates/*.cs']}, 
    1010      entry_points={'trac.plugins': '%s = publishrevert' % PACKAGE}, 
    1111)