src/pyams_skin/resources.py
changeset 142 5e603a22d753
parent 140 341044279bca
child 484 0424aeca91a3
equal deleted inserted replaced
141:1fa3a734453e 142:5e603a22d753
    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):