Changeset 3243


Ignore:
Timestamp:
11/13/07 13:55:48 (6 years ago)
Author:
moschny
Message:

Make TracNav work with 0.11dev after the context-refactoring merge
(which happened in revision 6139).

Location:
trac/plugins/tracnav-0.11/tracnav
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trac/plugins/tracnav-0.11/tracnav/__init__.py

    r3159 r3243  
    1 __version__ = '4.0pre3' 
     1__version__ = '4.0pre4' 
  • trac/plugins/tracnav-0.11/tracnav/tracnav.py

    r3159 r3243  
    7676    last wiki link. 
    7777    """ 
    78     def __init__(self, context): 
    79         OneLinerFormatter.__init__(self, context) 
     78    def __init__(self, env, ctx): 
     79        OneLinerFormatter.__init__(self, env, ctx) 
    8080        self.lastlink = None 
    8181 
     
    109109    def __init__(self, formatter, args, out): 
    110110 
    111         # save for later use 
    112         self.formatter = formatter 
    113  
    114111        # shortcuts 
    115112        self.env = formatter.env 
    116113        self.req = formatter.req 
     114        self.ctx = formatter.context 
    117115 
    118116        # output 
     
    150148        Parse and format the entries in toc_text. 
    151149        """ 
    152         formatter = TocFormatter(self.formatter.context) 
     150        formatter = TocFormatter(self.env, self.ctx) 
    153151        for match in LISTRULE.finditer(toc_text): 
    154152            indent = len(match.group('indent')) 
Note: See TracChangeset for help on using the changeset viewer.