Updated resources
authorThierry Florac <tflorac@ulthar.net>
Fri, 14 Dec 2018 20:05:02 +0100
changeset 49 e6d3e3443b84
parent 48 acf504fb9590
child 50 721ade1bdc6e
Updated resources
src/pyams_notify/resources.py
--- a/src/pyams_notify/resources.py	Wed Nov 21 09:44:32 2018 +0100
+++ b/src/pyams_notify/resources.py	Fri Dec 14 20:05:02 2018 +0100
@@ -12,22 +12,16 @@
 
 __docformat__ = 'restructuredtext'
 
+from pyramid.interfaces import IRequest
+from zope.interface import Interface
 
-# import standard library
-
-# import interfaces
+from pyams_notify.skin import pyams_notify
 from pyams_skin.interfaces.resources import IResources
-from pyramid.interfaces import IRequest
-
-# import packages
-from pyams_notify.skin import pyams_notify
-from pyams_utils.adapter import adapter_config, ContextRequestViewAdapter
-from zope.interface import Interface
+from pyams_utils.adapter import ContextRequestViewAdapter, adapter_config
 
 
 @adapter_config(context=(Interface, IRequest, Interface), provides=IResources)
 class ResourcesAdapter(ContextRequestViewAdapter):
     """Get context resources"""
 
-    def get_resources(self):
-        pyams_notify.need()
+    resources = (pyams_notify,)