equal
deleted
inserted
replaced
34 myams.need() |
34 myams.need() |
35 |
35 |
36 |
36 |
37 @adapter_config(name='resources', context=(Interface, IRequest, Interface), provides=ITALESExtension) |
37 @adapter_config(name='resources', context=(Interface, IRequest, Interface), provides=ITALESExtension) |
38 class ResourcesTalesExtension(ContextRequestViewAdapter): |
38 class ResourcesTalesExtension(ContextRequestViewAdapter): |
39 """expression:resources TALES extension""" |
39 """extension:resources TALES extension""" |
40 |
40 |
41 def render(self, context=None): |
41 def render(self, context=None): |
42 if context is None: |
42 if context is None: |
43 context = self.context |
43 context = self.context |
44 for name, adapter in self.request.registry.getAdapters((context, self.request, self.view), IResources): |
44 for name, adapter in self.request.registry.getAdapters((context, self.request, self.view), IResources): |