#325: Glitch in opensearch web handler
------------------------+---------------------------------------------------
  Reporter:  skaplun    |       Owner:  jcaffaro  
      Type:  defect     |      Status:  new       
  Priority:  major      |   Milestone:            
 Component:  WebSearch  |     Version:            
Resolution:             |    Keywords:  opensearch
------------------------+---------------------------------------------------

Comment (by jcaffaro):

 I wanted to test something of that kind:
 {{{
 diff --git a/modules/webstyle/lib/webinterface_handler.py
 b/modules/webstyle/lib/webinterface_handler.py
 index c396e65..3a76f64 100644
 --- a/modules/webstyle/lib/webinterface_handler.py
 +++ b/modules/webstyle/lib/webinterface_handler.py
 @@ -220,7 +220,11 @@ class WebInterfaceDirectory(object):
          # resolving, otherwise call the method as it is our final
          # renderer. We even pass it the parsed form arguments.
          if path:
 -            return obj._traverse(req, path, do_head, guest_p)
 +            if hasattr(obj, '_traverse'):
 +                return obj._traverse(req, path, do_head, guest_p)
 +            else:
 +                raise apache.SERVER_RETURN, apache.HTTP_NOT_FOUND
 }}}

 but it looks more like a new behavior than a regression fix, so if you
 think that it got broken by the migration to WSGI, we might have to check
 somewhere else.

-- 
Ticket URL: <http://invenio-software.org/ticket/325#comment:3>
Invenio <http://invenio-software.org>

Reply via email to