Modify

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#7139 closed defect (fixed)

Patch to trac 0.12 to fix hyperlinks to dependent tickets

Reported by: clp Owned by: coderanger
Priority: high Component: MasterTicketsPlugin
Severity: normal Keywords:
Cc: dag.viggo@…, darose@… Trac Release: 0.12

Description


Attachments (1)

masterticket.patch (1.7 KB) - added by clp 4 years ago.

Download all attachments as: .zip

Change History (5)

Changed 4 years ago by clp

comment:1 Changed 4 years ago by anonymous

  • Priority changed from normal to high

comment:2 Changed 4 years ago by ronalde

  • Cc dag.viggo@… added
  • Summary changed from Patch to trac 0.12dev to Patch to trac 0.12 to fix hyperlinks to dependent tickets

Found a duplicate (with reaction from coderanger!) in #7257.

I transformed your patch in something you might apply to dagvl's git-version 2.1.3-viz4:

  • mastertickets/model.py

    diff --git a/mastertickets/model.py b/mastertickets/model.py
    index e98d114..bab21c4 100644
    a b from datetime import datetime 
    55 
    66from trac.ticket.model import Ticket 
    77from trac.util.compat import set, sorted 
    8 from trac.util.datefmt import utc, to_timestamp 
     8from trac.util.datefmt import utc, to_utimestamp 
    99 
    1010class TicketLinks(object): 
    1111    """A model for the ticket links used MasterTickets.""" 
    class TicketLinks(object): 
    3434        """Save new links.""" 
    3535        if when is None: 
    3636            when = datetime.now(utc) 
    37         when_ts = to_timestamp(when) 
     37        when_ts = to_utimestamp(when) 
    3838         
    3939        handle_commit = False 
    4040        if db is None: 
  • mastertickets/web_ui.py

    diff --git a/mastertickets/web_ui.py b/mastertickets/web_ui.py
    index b3288cb..13cf744 100644
    a b class MasterTicketsModule(Component): 
    3535    FIELD_XPATHS = { 
    3636        'query': 'table[@class="listing tickets"]/tbody/td[@class="%s"]/text()', 
    3737        'ticket_id': 'table[@class="listing tickets"]/tbody/td[@class="id"]/a/text()', 
    38         'ticket': 'div[@id="ticket"]/table[@class="properties"]/td[@headers="h_%s"]/text()', 
     38        'ticket': '//div[@id="ticket"]/table[@class="properties"]//td[@headers="h_%s"]/text()', 
    3939    } 
    4040    fields = set(['blocking', 'blockedby']) 
    4141 

comment:3 Changed 4 years ago by coderanger

  • Resolution set to fixed
  • Status changed from new to closed

comment:4 Changed 4 years ago by darose

  • Cc darose@… added

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from coderanger. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.