DomainBrowser: ability to give the baseurl in constructor
This commit is contained in:
parent
e5cf80aec8
commit
0ce0a7e9b5
1 changed files with 5 additions and 0 deletions
|
|
@ -471,6 +471,11 @@ class DomainBrowser(Browser):
|
|||
More complex behavior is possible by overloading url_allowed()
|
||||
"""
|
||||
|
||||
def __init__(self, baseurl=None, *args, **kwargs):
|
||||
super(DomainBrowser, self).__init__(*args, **kwargs)
|
||||
if baseurl is not None:
|
||||
self.BASEURL = baseurl
|
||||
|
||||
def url_allowed(self, url):
|
||||
"""
|
||||
Checks if we are allowed to visit an URL.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue