from zope.interface.declarations import moduleProvides
from zope.globalrequest.interfaces import IGlobalRequest
from zope.globalrequest.local import getLocal
from zope.globalrequest.local import marker
from zope.globalrequest.local import setLocal
moduleProvides(IGlobalRequest)


def getRequest():
    """ return the currently active request object """
    return getLocal('request')


def setRequest(request):
    """ set the request object to be returned by `getRequest` """
    setLocal('request', request)


def clearRequest():
    """ clear the stored request object """
    setRequest(marker)

48b38ffd9db73d7960059e9ade22c28da88a3dc2
<mask token>


def getRequest():
    """ return the currently active request object """
    return getLocal('request')


def setRequest(request):
    """ set the request object to be returned by `getRequest` """
    setLocal('request', request)


<mask token>

<mask token>


def getRequest():
    """ return the currently active request object """
    return getLocal('request')


def setRequest(request):
    """ set the request object to be returned by `getRequest` """
    setLocal('request', request)


def clearRequest():
    """ clear the stored request object """
    setRequest(marker)

<mask token>
moduleProvides(IGlobalRequest)


def getRequest():
    """ return the currently active request object """
    return getLocal('request')


def setRequest(request):
    """ set the request object to be returned by `getRequest` """
    setLocal('request', request)


def clearRequest():
    """ clear the stored request object """
    setRequest(marker)

from zope.interface.declarations import moduleProvides
from zope.globalrequest.interfaces import IGlobalRequest
from zope.globalrequest.local import getLocal
from zope.globalrequest.local import marker
from zope.globalrequest.local import setLocal
moduleProvides(IGlobalRequest)


def getRequest():
    """ return the currently active request object """
    return getLocal('request')


def setRequest(request):
    """ set the request object to be returned by `getRequest` """
    setLocal('request', request)


def clearRequest():
    """ clear the stored request object """
    setRequest(marker)
