Updated event attribute
authorThierry Florac <thierry.florac@onf.fr>
Mon, 11 Jun 2018 15:52:58 +0200
changeset 75 a816b056301f
parent 74 23b65ea4ebee
child 76 f1cd0f749696
Updated event attribute
src/pyams_zmi/view.py
--- a/src/pyams_zmi/view.py	Fri Jun 08 15:19:37 2018 +0200
+++ b/src/pyams_zmi/view.py	Mon Jun 11 15:52:58 2018 +0200
@@ -60,7 +60,7 @@
 @subscriber(IPageletCreatedEvent, context_selector=IAdminView)
 def handle_admin_view(event):
     """Set skin for admin views"""
-    apply_skin(event.object.request, 'PyAMS admin skin')
+    apply_skin(event.request, 'PyAMS admin skin')
 
 
 @subscriber(IFormCreatedEvent, context_selector=IAdminView)