Back to index

plone3  3.1.7
Public Member Functions | Public Attributes | Static Public Attributes
five.customerize.zpt.TTWViewTemplate Class Reference
Inheritance diagram for five.customerize.zpt.TTWViewTemplate:
Inheritance graph
[legend]
Collaboration diagram for five.customerize.zpt.TTWViewTemplate:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def __call__
def __before_publishing_traverse__

Public Attributes

 view
 permission
 name

Static Public Attributes

tuple manage_options

Detailed Description

A template class used to generate Zope 3 views TTW

Definition at line 14 of file zpt.py.


Constructor & Destructor Documentation

def five.customerize.zpt.TTWViewTemplate.__init__ (   self,
  id,
  text = None,
  content_type = 'text/html',
  strict = True,
  encoding = 'utf-8',
  view = None,
  permission = None,
  name = None 
)

Definition at line 24 of file zpt.py.

00024 
00025                  encoding='utf-8', view=None, permission=None, name=None):
00026         self.view = view
00027         self.permission = permission
00028         self.name = name
00029         super(TTWViewTemplate, self).__init__(id, text, content_type, encoding,
00030                                               strict)

Here is the caller graph for this function:


Member Function Documentation

Definition at line 51 of file zpt.py.

00051 
00052     def __before_publishing_traverse__(self, self2, request):
00053         pass
00054 

def five.customerize.zpt.TTWViewTemplate.__call__ (   self,
  context,
  request,
  viewlet = None,
  manager = None,
  data = None 
)

Definition at line 31 of file zpt.py.

00031 
00032     def __call__(self, context, request, viewlet=None, manager=None, data=None):
00033         #XXX raise a sensible exception if context and request are
00034         # omitted, IOW, if someone tries to render the template not as
00035         # a view.
00036 
00037         # the security check is now deferred until the template/viewlet/portlet
00038         # is actually called, because it may be looked up during traversal,
00039         # in which case there's no proper security context yet
00040         if IPortletManager.providedBy(manager):
00041             return TTWPortletRenderer(context, request, self, self.view,
00042                 manager, data, self.permission)
00043         if IViewletManager.providedBy(manager):
00044             return TTWViewletRenderer(context, request, self, self.view,
00045                 viewlet, manager, self.permission)
00046         else:
00047             return TTWViewTemplateRenderer(context, request, self, self.view, self.permission)

Here is the caller graph for this function:


Member Data Documentation

Initial value:
(
        ZopePageTemplate.manage_options[0],
        dict(label='Registrations', action='registrations.html'),
        )

Definition at line 18 of file zpt.py.

Definition at line 27 of file zpt.py.

Definition at line 26 of file zpt.py.

Definition at line 25 of file zpt.py.


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