weboob.deprecated.browser.decorators

class weboob.deprecated.browser.decorators.check_url(regexp)

Bases: object

Checks if the first argument matches the given regular expression (given as str, without the ^$ delimiters which are automatically added). If not, this decorator will return None instead of calling the function.

weboob.deprecated.browser.decorators.id2url(id2url)

If the first argument is not an URL, this decorator will try to convert it to one, by calling the id2url function. If id2url returns None (because the id is invalid), the decorated function will not be called and None will be returned. If the DOMAIN attribute of the method’s class is not empty, it will also check it. If it does not match, the decorated function will not be called and None will be returned.

Previous topic

weboob.deprecated.browser.browser

Next topic

weboob.deprecated.browser.firefox_cookies