def authenticateRequest(self, service_request, username, password, **kwargs):
        authenticator = self.getAuthenticator(service_request)

        if self.logger:
            self.logger.debug('Authenticator expands to: %r' % authenticator)

        if authenticator is None:
            return defer.succeed(True)

        args = (username, password)

        if hasattr(authenticator, '_pyamf_expose_request'):
            http_request = kwargs.get('http_request', None)
            args = (http_request,) + args

        return defer.maybeDeferred(authenticator, *args)
Convenience method for getting or creating revision.
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/PyAMF-0.6.1/pyamf/remoting/gateway/twisted.py/TwistedGateway.authenticateRequest--crossover with--dataset/ETHPy150Open divio/django-cms/cms/models/apphooks_reload.py/UrlconfRevision.get_or_create_revision