Back to index

plone3  3.1.7
Functions
plone.app.kss.globalui Namespace Reference

Functions

def attributesTriggerPortalTabsReload
def attributesTriggerDocumentBylineReload
def attributesTriggerBreadcrumbsReload
def attributesTriggerHeadTitleReload

Function Documentation

def plone.app.kss.globalui.attributesTriggerBreadcrumbsReload (   obj,
  view,
  event 
)

Definition at line 30 of file globalui.py.

00030 
00031 def attributesTriggerBreadcrumbsReload(obj, view, event):
00032     triggeringAttributes = ('title', 'description')
00033     if attributesModified(triggeringAttributes, event):
00034         ksscore = view.getCommandSet('core')
00035         selector = ksscore.getHtmlIdSelector('portal-breadcrumbs')
00036         zopecommands = view.getCommandSet('zope')
00037         zopecommands.refreshViewlet(selector,
00038                                     'plone.portaltop',
00039                                     'plone.path_bar')
00040 
@component.adapter(None, IKSSView, IObjectModifiedEvent)

Here is the call graph for this function:

Definition at line 21 of file globalui.py.

00021 
00022 def attributesTriggerDocumentBylineReload(obj, view, event):
00023     ksscore = view.getCommandSet('core')
00024     selector = ksscore.getHtmlIdSelector('plone-document-byline')
00025     zopecommands = view.getCommandSet('zope')
00026     zopecommands.refreshViewlet(selector,
00027                                 'plone.belowcontenttitle',
00028                                 'plone.belowcontenttitle.documentbyline')
00029 
@component.adapter(None, IKSSView, IObjectModifiedEvent)
def plone.app.kss.globalui.attributesTriggerHeadTitleReload (   obj,
  view,
  event 
)

Definition at line 41 of file globalui.py.

00041 
00042 def attributesTriggerHeadTitleReload(obj, view, event):
00043     triggeringAttributes = ('title', )
00044     if attributesModified(triggeringAttributes, event):
00045         htmlhead = getMultiAdapter((obj, view.request, view), name=u'plone.htmlhead')
00046         headtitle = getMultiAdapter((obj, view.request, view, htmlhead), name=u'plone.htmlhead.title')
00047         headtitle.update()
00048         ksscore = view.getCommandSet('core')
00049         ksscore.replaceHTML(
00050             'head title',
00051             headtitle.render(),
00052             withKssSetup='False')
00053 

Here is the call graph for this function:

def plone.app.kss.globalui.attributesTriggerPortalTabsReload (   obj,
  view,
  event 
)

Definition at line 10 of file globalui.py.

00010 
00011 def attributesTriggerPortalTabsReload(obj, view, event):
00012     triggeringAttributes = ('title', 'description')
00013     if attributesModified(triggeringAttributes, event):
00014         ksscore = view.getCommandSet('core')
00015         selector = ksscore.getHtmlIdSelector('portal-globalnav')
00016         zopecommands = view.getCommandSet('zope')
00017         zopecommands.refreshViewlet(selector,
00018                                     'plone.portalheader',
00019                                     'plone.global_sections')
00020 
@component.adapter(None, IKSSView, IObjectModifiedEvent)

Here is the call graph for this function: