Changeset 16906
- Timestamp:
- Oct 23, 2017, 7:18:17 AM (7 years ago)
- Location:
- contextchromeplugin/0.12
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
contextchromeplugin/0.12/contextchrome/linkdeco.py
r16867 r16906 2 2 # -*- coding: utf-8 -*- 3 3 # 4 # Copyright (C) 2012-2013 MATOBA Akihiro <matobaa+trac-hacks@gmail.com>4 # Copyright (C) 2012-2013,2017 MATOBA Akihiro <matobaa+trac-hacks@gmail.com> 5 5 # All rights reserved. 6 6 # … … 10 10 from trac.core import Component, implements 11 11 from trac.ticket.api import TicketSystem 12 from trac.ticket.model import Ticket 13 from trac.ticket.web_ui import TicketModule 12 14 from trac.web.api import IRequestHandler, IRequestFilter 13 15 from trac.config import ListOption, IntOption … … 41 43 def wrap(self): 42 44 ticketsystem = self.compmgr[TicketSystem] 45 ticketmodule = self.compmgr[TicketModule] 43 46 44 47 def _format_link(*args, **kwargs): # hook method … … 59 62 element.attrib |= [('class', ' '.join(deco + [class_]))] 60 63 return element 64 65 def get_timeline_events(*args, **kwargs): 66 events = self.wrapped[2](*args, **kwargs) 67 for event in events: 68 ticket = Ticket(self.env, event[3][0].id) 69 deco = [event[0]] + (self._decorate(ticket) or []) 70 event = (' '.join(deco), ) + event[1:] 71 yield event 61 72 62 73 self.wrapped = [ 63 74 ticketsystem._format_link, 64 75 ticketsystem._format_comment_link, 76 ticketmodule.get_timeline_events, 65 77 ] 66 78 ticketsystem._format_link = _format_link 67 79 ticketsystem._format_comment_link = _format_comment_link 80 ticketmodule.get_timeline_events = get_timeline_events 68 81 69 82 def get_ticket_deco(self, formatter, ns, target, label, fullmatch=None): -
contextchromeplugin/0.12/setup.py
r16867 r16906 6 6 setup( 7 7 name='ContextChrome', 8 version='0. 4',8 version='0.5', 9 9 license='Modified BSD; except xdr.js under MIT-LICENSE', 10 author= 'MATOBA Akihiro',10 author= {'MATOBA Akihiro', 'Ryan J Ollos'}, 11 11 author_email='matobaa+trac-hacks@gmail.com', 12 12 url='http://trac-hacks.org/wiki/matobaa',
Note: See TracChangeset
for help on using the changeset viewer.