Show More
@@ -212,7 +212,14 b' class Hooks(object):' | |||||
212 | extras = AttributeDict(extras) |
|
212 | extras = AttributeDict(extras) | |
213 | server_url = extras['server_url'] |
|
213 | server_url = extras['server_url'] | |
214 | request = bootstrap_request(application_url=server_url) |
|
214 | request = bootstrap_request(application_url=server_url) | |
|
215 | ||||
215 | bootstrap_config(request) # inject routes and other interfaces |
|
216 | bootstrap_config(request) # inject routes and other interfaces | |
|
217 | ||||
|
218 | # inject the user for usage in hooks | |||
|
219 | request.user = AttributeDict({'username': extras.username, | |||
|
220 | 'ip_addr': extras.ip, | |||
|
221 | 'user_id': extras.user_id}) | |||
|
222 | ||||
216 | extras.request = request |
|
223 | extras.request = request | |
217 |
|
224 | |||
218 | try: |
|
225 | try: |
General Comments 0
You need to be logged in to leave comments.
Login now