Hi,
I found this little problem interesting. I have put a workaround in
place but I have not gotten around to identifying the underlying cause
and whether we are likely to see more of these kinds of problem. I have
left https://issues.apache.org/bloodhound/ticket/512 in a review state
for now.
Cheers,
Gary
On 30/04/13 19:45, [email protected] wrote:
Author: gjm
Date: Tue Apr 30 18:45:35 2013
New Revision: 1477773
URL: http://svn.apache.org/r1477773
Log:
storing super on the ProductizedHref as a workaround for TypeError on
attempting to call a super() method - #512
Modified:
bloodhound/trunk/bloodhound_multiproduct/multiproduct/hooks.py
Modified: bloodhound/trunk/bloodhound_multiproduct/multiproduct/hooks.py
URL:
http://svn.apache.org/viewvc/bloodhound/trunk/bloodhound_multiproduct/multiproduct/hooks.py?rev=1477773&r1=1477772&r2=1477773&view=diff
==============================================================================
--- bloodhound/trunk/bloodhound_multiproduct/multiproduct/hooks.py (original)
+++ bloodhound/trunk/bloodhound_multiproduct/multiproduct/hooks.py Tue Apr 30
18:45:35 2013
@@ -84,7 +84,8 @@ class ProductizedHref(Href):
'img/',
]
def __init__(self, global_href, base):
- super(ProductizedHref, self).__init__(base)
+ self.super = super(ProductizedHref, self)
+ self.super.__init__(base)
self._global_href = global_href
def __call__(self, *args, **kwargs):
@@ -93,7 +94,7 @@ class ProductizedHref(Href):
(len(args) == 1 and args[0] == 'admin') or \
filter(lambda x: args[0].startswith(x), self.STATIC_PREFIXES):
return self._global_href(*args, **kwargs)
- return super(ProductizedHref, self).__call__(*args, **kwargs)
+ return self.super.__call__(*args, **kwargs)
class ProductRequestWithSession(RequestWithSession):
def __init__(self, env, environ, start_response):