[Zope3-dev] problem with zope.testbrowser
Benji York
benji at zope.com
Wed Jul 11 08:50:49 EDT 2007
Adam Groszer wrote:
> (http://localhost:8080/ap_test/@@/dkr-help/index.html#Documents)
> That works fine using a browser, but fails with the testbrowser:
>
> File "U:\zope\svn_zope33\src\zope\app\publisher\browser\directoryresource.py", line 68, in publishTraverse
> return self.get(name)
> File "U:\zope\svn_zope33\src\zope\app\publisher\browser\directoryresource.py", line 88, in get
> raise NotFound(None, name)
> NotFound: Object: None, name: u'index.html#Documents'
>
> Apparently the anchor is to blame.
> Anybody noticed that already?
Testbrowser should remove the fragment identifier before sending the
request on to the publisher. That's how "real" browsers behave.
Patches accepted <wink>.
--
Benji York
Senior Software Engineer
Zope Corporation
More information about the Zope3-dev
mailing list