Permalink
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (7 sloc) 217 Bytes
from pylons.events import NewRequest, NewResponse, subscriber
@subscriber(NewRequest)
def add_reggy(event):
event.request.reg = True
@subscriber(NewResponse)
def add_respy(event):
event.response.reg = True