Back to index

plone3  3.1.7
Classes | Functions
plone.app.layout.links.viewlets Namespace Reference

Classes

class  FaviconViewlet
class  SearchViewlet
class  AuthorViewlet
class  NavigationViewlet
class  RSSViewlet

Functions

def get_language
def render_cachekey

Function Documentation

def plone.app.layout.links.viewlets.get_language (   context,
  request 
)

Definition at line 16 of file viewlets.py.

00016 
00017 def get_language(context, request):
00018     portal_state = getMultiAdapter((context, request),
00019                                    name=u'plone_portal_state')
00020     return portal_state.locale().getLocaleID()
00021 

Here is the caller graph for this function:

Definition at line 22 of file viewlets.py.

00022 
00023 def render_cachekey(fun, self):
00024     key = StringIO()
00025     # Include the name of the viewlet as the underlying cache key only
00026     # takes the module and function name into account, but not the class
00027     print >> key, self.__name__
00028     print >> key, self.site_url
00029     print >> key, get_language(aq_inner(self.context), self.request)
00030 
00031     return key.getvalue()
00032 

Here is the call graph for this function:

Here is the caller graph for this function: