Back to index

plone3  3.1.7
Public Member Functions | Public Attributes | Static Public Attributes
plone.app.openid.portlets.login.Renderer Class Reference

List of all members.

Public Member Functions

def __init__
def show
def login_form

Public Attributes

 portal_state
 pas_info

Static Public Attributes

tuple render = ViewPageTemplateFile('login.pt')

Detailed Description

Definition at line 20 of file login.py.


Constructor & Destructor Documentation

def plone.app.openid.portlets.login.Renderer.__init__ (   self,
  context,
  request,
  view,
  manager,
  data 
)

Definition at line 22 of file login.py.

00022 
00023     def __init__(self, context, request, view, manager, data):
00024         base.Renderer.__init__(self, context, request, view, manager, data)
00025 
00026         self.portal_state = getMultiAdapter((context, request), name=u'plone_portal_state')
00027         self.pas_info = getMultiAdapter((context, request), name=u'pas_info')
00028 

Here is the caller graph for this function:


Member Function Documentation

Definition at line 38 of file login.py.

00038 
00039     def login_form(self):
00040         return '%s/login_form' % self.portal_state.portal_url()
00041 

Definition at line 29 of file login.py.

00029 
00030     def show(self):
00031         if not self.portal_state.anonymous():
00032             return False
00033         if not self.pas_info.hasOpenIDdExtractor():
00034             return False
00035         page = self.request.get('URL', '').split('/')[-1]
00036         return page not in ('login_form', 'join_form')
00037 

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 26 of file login.py.

Definition at line 25 of file login.py.

tuple plone.app.openid.portlets.login.Renderer.render = ViewPageTemplateFile('login.pt') [static]

Definition at line 42 of file login.py.


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