Commit b1400840 authored by Arnaud Fontaine's avatar Arnaud Fontaine

Override getLink from zope.testbrowser to exclude looking into the

query string unless explicitely specified


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@44958 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4acb37fb
......@@ -261,6 +261,23 @@ class Browser(ExtendedTestBrowser):
self._main_form = ContextMainForm(self, form)
return self._main_form
def getLink(self, url=None, *args, **kwargs):
"""
Override original C{getLink} allowing to not consider the HTTP
query string unless it is explicitly given.
@param url: URL to look for
@type url: str
@param args: Positional arguments given to original C{getLink}
@type args: list
@param kwargs: Keyword arguments given to original C{getLink}
@type kwargs: dict
"""
if url and '?' not in url:
url += '?'
return super(Browser, self).getLink(url=url, *args, **kwargs)
def getTransitionMessage(self):
"""
Parses the current page and returns the value of the portal_status
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment