'If you override .set_ok(), be sure to call this method.  If it returns
false, so should your subclass (assuming your subclass wants to be more
strict about which cookies to accept).'

def set_ok(self, cookie, request):

    _debug('    -    checking    cookie    %s=%s', cookie.name, cookie.value)
    for n in ('version', 'verifiability', 'name', 'path', 'domain', 'port'):
        fn_name = ('set_ok_' + n)
        fn = getattr(self, fn_name)
        if (not fn(cookie, request)):
            return False
    return True
