Author: jure
Date: Tue Mar 12 08:27:26 2013
New Revision: 1455437
URL: http://svn.apache.org/r1455437
Log:
Add login and logout to global href white list
Modified:
incubator/bloodhound/branches/bep_0003_multiproduct/bloodhound_multiproduct/multiproduct/hooks.py
Modified:
incubator/bloodhound/branches/bep_0003_multiproduct/bloodhound_multiproduct/multiproduct/hooks.py
URL:
http://svn.apache.org/viewvc/incubator/bloodhound/branches/bep_0003_multiproduct/bloodhound_multiproduct/multiproduct/hooks.py?rev=1455437&r1=1455436&r2=1455437&view=diff
==============================================================================
---
incubator/bloodhound/branches/bep_0003_multiproduct/bloodhound_multiproduct/multiproduct/hooks.py
(original)
+++
incubator/bloodhound/branches/bep_0003_multiproduct/bloodhound_multiproduct/multiproduct/hooks.py
Tue Mar 12 08:27:26 2013
@@ -55,7 +55,7 @@ class ProductizedHref(Href):
if args:
# TODO: this should be done using regex or similar
if args[0] == 'chrome' or \
- (args[0] == 'admin' and len(args) == 1) or \
+ (len(args) == 1 and args[0] in ['admin', 'login', 'logout']) or
\
args[0].startswith('js/') or \
args[0].startswith('css/') or\
args[0].startswith('img/') or\