Changeset 27473

Show
Ignore:
Timestamp:
12/27/08 14:11:21 (4 years ago)
Author:
hirobe
Message:

Tracのバージョンによりエラーになる件の解消

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • platform/trac/plugins/wlwriter/trunk/wlwriter/wikitohtml.py

    r27152 r27473  
    3737    #ignore_missing_pages = True 
    3838 
    39     def _make_link(self, ns, target, match, label,fullmatch): 
     39    # fullmatch args shuld be option for Trac0.11ja1 
     40    def _make_link(self, ns, target, match, label,fullmatch=None): 
    4041        #force ignore_missing_pages = True 
    4142        #if ret contains '<a class="missing wiki"' return match 
    42         elem = Formatter._make_link(self, ns, target, match, label,fullmatch) 
     43        try: 
     44            elem = Formatter._make_link(self, ns, target, match, label,fullmatch) 
     45        except TypeError: 
     46            elem = Formatter._make_link(self, ns, target, match, label) 
     47             
    4348        if is_missing_link(elem) == True: 
    4449            return match 
    4550        else: 
    4651            return elem 
    47  
    48         # Trac0.11ja1 
    49     def _make_link(self, ns, target, match, label): 
    50         #force ignore_missing_pages = True 
    51         #if ret contains '<a class="missing wiki"' return match 
    52         elem = Formatter._make_link(self, ns, target, match, label) 
    53         if is_missing_link(elem) == True: 
    54             return match 
    55         else: 
    56             return elem 
    57  
    5852 
    5953    # -- Wiki engine