Changeset 4782
- Timestamp:
- 11/12/08 18:31:50 (2 months ago)
- Files:
-
- timingandestimationplugin/branches/trac0.10/timingandestimationplugin/webui.py (modified) (2 diffs)
- timingandestimationplugin/branches/trac0.11-Permissions/timingandestimationplugin/webui.py (modified) (2 diffs)
- timingandestimationplugin/branches/trac0.11/timingandestimationplugin/webui.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
timingandestimationplugin/branches/trac0.10/timingandestimationplugin/webui.py
r3785 r4782 40 40 # INavigationContributor methods 41 41 def get_active_navigation_item(self, req): 42 if re.search('/Billing', req.path_info): 42 val = re.search('/Billing$', req.path_info) 43 if val and val.start() == 0: 43 44 return "Billing" 44 45 else: … … 68 69 69 70 def match_request(self, req): 70 if re.search('/Billing', req.path_info): 71 return True 72 return None 71 val = re.search('/Billing$', req.path_info) 72 return val and val.start() == 0 73 73 74 74 def process_request(self, req): timingandestimationplugin/branches/trac0.11-Permissions/timingandestimationplugin/webui.py
r4260 r4782 51 51 # INavigationContributor methods 52 52 def get_active_navigation_item(self, req): 53 if re.search('/Billing', req.path_info): 53 val = re.search('/Billing$', req.path_info) 54 if val and val.start() == 0: 54 55 return "Billing" 55 56 else: … … 79 80 80 81 def match_request(self, req): 81 return req.path_info.startswith('/Billing') 82 val = re.search('/Billing$', req.path_info) 83 return val and val.start() == 0 82 84 83 85 def process_request(self, req): timingandestimationplugin/branches/trac0.11/timingandestimationplugin/webui.py
r3784 r4782 46 46 # INavigationContributor methods 47 47 def get_active_navigation_item(self, req): 48 if re.search('/Billing', req.path_info): 48 val = re.search('/Billing$', req.path_info) 49 if val and val.start() == 0: 49 50 return "Billing" 50 51 else: … … 74 75 75 76 def match_request(self, req): 76 return req.path_info.startswith('/Billing') 77 val = re.search('/Billing$', req.path_info) 78 return val and val.start() == 0 77 79 78 80 def process_request(self, req):
