Changeset 1573

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

TracTabPlugin:

better way to find things in a list

Files:

Legend:

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

    r1030 r1573  
    8282            name = match.group(1) 
    8383            req.hdf['tractab.title'] = name 
    84             idx = [i for i in range(0, len(self.names)) if self.names[i] == name] 
     84            idx = self.names.index(name) 
    8585            if idx: 
    86                 idx = idx[0] 
    8786                if self.check_perms( req, idx ): 
    8887                    req.hdf['tractab.url'] = self.urlhash[name]