Back to index

plone3  3.1.7
Public Member Functions | Public Attributes | Static Public Attributes
plone.app.portlets.portlets.language.Renderer Class Reference
Inheritance diagram for plone.app.portlets.portlets.language.Renderer:
Inheritance graph
[legend]
Collaboration diagram for plone.app.portlets.portlets.language.Renderer:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def show
def available
def showFlags
def update
def render

Public Attributes

 selector
 languages
 portal_url
 context
 request
 view
 manager
 data

Static Public Attributes

tuple render = ViewPageTemplateFile('language.pt')

Detailed Description

Definition at line 22 of file language.py.


Constructor & Destructor Documentation

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

Reimplemented from plone.app.portlets.portlets.base.Renderer.

Definition at line 24 of file language.py.

00024 
00025     def __init__(self, context, request, view, manager, data):
00026         base.Renderer.__init__(self, context, request, view, manager, data)
00027         self.selector=LanguageSelector(context, request, None, None)
00028         self.languages=self.selector.languages()
00029 
00030         def key(info):
00031             return info.get("native", info["name"])
00032         self.languages.sort(key=key)
00033         portal_state = getMultiAdapter((context, request), name=u'plone_portal_state')
00034         self.portal_url = portal_state.portal_url()

Here is the caller graph for this function:


Member Function Documentation

By default, portlets are available

Reimplemented from plone.app.portlets.portlets.base.Renderer.

Definition at line 39 of file language.py.

00039 
00040     def available(self):
00041         return self.show()

Here is the call graph for this function:

Reimplemented in plone.app.portlets.portlets.navigation.Renderer, plone.app.portlets.portlets.base.DeferredRenderer, plone.app.portlets.portlets.calendar.Renderer, plone.app.portlets.portlets.events.Renderer, plone.app.portlets.portlets.recent.Renderer, and plone.app.portlets.portlets.news.Renderer.

Definition at line 85 of file base.py.

00085 
00086     def render(self):
00087         raise NotImplementedError("You must implement 'render' as a method "
00088                                   "or page template file attribute")

Definition at line 35 of file language.py.

00035 
00036     def show(self):
00037         return self.selector.available() and len(self.languages)>1
    

Here is the caller graph for this function:

Definition at line 42 of file language.py.

00042 
00043     def showFlags(self):
00044         return self.selector.showFlags()

Reimplemented from plone.app.portlets.portlets.base.Renderer.

Definition at line 45 of file language.py.

00045 
00046     def update(self):
00047         pass

Here is the caller graph for this function:


Member Data Documentation

Reimplemented in plone.app.portlets.portlets.classic.Renderer.

Definition at line 75 of file base.py.

Reimplemented in plone.app.portlets.portlets.classic.Renderer.

Definition at line 80 of file base.py.

Definition at line 27 of file language.py.

Definition at line 79 of file base.py.

Definition at line 33 of file language.py.

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

Definition at line 48 of file language.py.

Definition at line 76 of file base.py.

Definition at line 26 of file language.py.

Definition at line 77 of file base.py.


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