Changeset 1574

Show
Ignore:
Timestamp:
11/15/06 13:35:37 (2 years ago)
Author:
bobbysmith007
Message:

TracTabPlugin:

reworked finding items in a list a little more so that it makes sense

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • tractabplugin/setup.py

    r1031 r1574  
    22 
    33PACKAGE = 'tractab' 
    4 VERSION = '0.1.2
     4VERSION = '0.1.3
    55 
    66setup(name=PACKAGE, 
  • tractabplugin/tractab/tractab.py

    r1573 r1574  
    8282            name = match.group(1) 
    8383            req.hdf['tractab.title'] = name 
    84             idx = self.names.index(name) 
    85             if idx: 
     84            try: 
     85                idx = self.names.index(name) 
    8686                if self.check_perms( req, idx ): 
    8787                    req.hdf['tractab.url'] = self.urlhash[name] 
    8888                else: 
    8989                    req.hdf['tractab.url'] = "" 
    90             else
     90            except ValueException
    9191                req.hdf['tractab.url'] = "" 
    92                  
     92                idx = None 
    9393        return 'tractab.cs', 'text/html' 
    9494