Back to index

plone3  3.1.7
Public Member Functions | Public Attributes
plone.app.form._named.NamedTemplateAdapter Class Reference

List of all members.

Public Member Functions

def __init__
def macros
def __call__

Public Attributes

 context

Detailed Description

A named template adapter implementation that has the ability
to lookup the template portion from regular traversal (intended for
being able to customize the template portion of a view component
in the traditional portal_skins style).

Definition at line 6 of file _named.py.


Constructor & Destructor Documentation

Definition at line 15 of file _named.py.

00015 
00016     def __init__(self, context):
00017         self.context = context

Here is the caller graph for this function:


Member Function Documentation

def plone.app.form._named.NamedTemplateAdapter.__call__ (   self,
  args,
  kwargs 
)

Definition at line 22 of file _named.py.

00022 
00023     def __call__(self, *args, **kwargs):
00024         context = aq_inner(self.context)
00025         context_of_context = aq_inner(context.context)
00026         view = context.__of__(context_of_context)
00027         return self.default_template.__of__(view)(*args, **kwargs)

Here is the caller graph for this function:

Definition at line 19 of file _named.py.

00019 
00020     def macros (self):
00021         return self.default_template.macros


Member Data Documentation

Definition at line 16 of file _named.py.


The documentation for this class was generated from the following file: