Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/z/a/zamboni-HEAD/apps/files/decorators.py   zamboni(Download)
            log.error('Denying access to %s, no token.' % viewer.file.id)
            raise PermissionDenied
        if not Token.valid(token, [viewer.file.id, key]):
            log.error('Denying access to %s, token invalid.' % viewer.file.id)
            raise PermissionDenied

src/z/a/zamboni-HEAD/mkt/reviewers/tests/test_views_api.py   zamboni(Download)
 
        # Check data in token.
        assert Token.valid(data['token'], data={'app_id': self.app.id})