Changeset 3244 for trac


Ignore:
Timestamp:
01/06/08 16:31:36 (5 years ago)
Author:
moschny
Message:
  • Add "noedit" option, that prevents the "edit" link from being displayed. Fixes #281.
  • Strip whitespaces from all arguments.
  • Increment version.
Location:
trac/plugins/tracnav-0.11/tracnav
Files:
2 edited

Legend:

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

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

    r3243 r3244  
    3535 
    3636 * Copyright 2005-2006, Bernhard Haumacher (haui at haumacher.de) 
    37  * Copyright 2005-2007, Thomas Moschny (moschny at ipd.uni-karlsruhe.de) 
     37 * Copyright 2005-2008, Thomas Moschny (moschny at ipd.uni-karlsruhe.de) 
    3838 
    3939{{{ 
     
    127127        self.collapse = True 
    128128        if args: 
    129             for arg in args.split('|'): 
     129            for arg in map(lambda a: a.strip(), args.split('|')): 
    130130                if arg == 'nocollapse': 
    131131                    self.collapse = False 
     132                elif arg == 'noedit': 
     133                    self.modify = False 
    132134                else: 
    133135                    self.names.append(arg) 
     
    311313 
    312314    def get_templates_dirs(self): 
    313         # we don't provide templates 
    314         return [] 
     315        return [] # we don't provide templates 
Note: See TracChangeset for help on using the changeset viewer.