22
22
"""Convenience method to subscribe the current request.
24
24
:param target: Something that can be adapted to `ILongPollEvent`.
26
27
:param request: The request for which to get an `ILongPollSubscriber`. It
27
28
a request is not specified the currently active request is used.
28
29
:return: The `ILongPollEvent` that has been subscribed to.
32
33
request = get_current_browser_request()
33
34
subscriber = ILongPollSubscriber(request)