Back to index

plone3  3.1.7
Classes | Functions
plone.app.kss.portlets Namespace Reference

Classes

class  PortletReloader

Functions

def attributesTriggerNavigationPortletReload
def attributesTriggerRecentPortletReload
def attributesModified
def workflowTriggersNavigationPortletReload
def workflowTriggersRecentPortletReload

Function Documentation

def plone.app.kss.portlets.attributesModified (   triggeringAttributes,
  event 
)

Definition at line 29 of file portlets.py.

00029 
00030 def attributesModified(triggeringAttributes, event):
00031     for description in event.descriptions:
00032         for attr in triggeringAttributes:
00033             if attr in description.attributes:
00034                 return True
00035     return False
00036 
@adapter(None, IKSSView, IAfterTransitionEvent)

Here is the caller graph for this function:

Definition at line 16 of file portlets.py.

00016 
00017 def attributesTriggerNavigationPortletReload(obj, view, event):
00018     triggeringAttributes = ('title', 'description')
00019     if attributesModified(triggeringAttributes, event):
00020         portletReloader = PortletReloader(view)
00021         portletReloader.reloadPortletsByInterface(INavigationPortlet)
00022 
@adapter(None, IKSSView, IObjectModifiedEvent)

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 23 of file portlets.py.

00023 
00024 def attributesTriggerRecentPortletReload(obj, view, event):
00025     triggeringAttributes = ('title', 'description')
00026     if attributesModified(triggeringAttributes, event):
00027         portletReloader = PortletReloader(view)
00028         portletReloader.reloadPortletsByInterface(IRecentPortlet)

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 37 of file portlets.py.

00037 
00038 def workflowTriggersNavigationPortletReload(obj, view, event):
00039     if not (event.old_state is event.new_state):
00040         obj.reindexObject()
00041         portletReloader = PortletReloader(view)
00042         portletReloader.reloadPortletsByInterface(INavigationPortlet)
00043 
@adapter(None, IKSSView, IAfterTransitionEvent)

Definition at line 44 of file portlets.py.

00044 
00045 def workflowTriggersRecentPortletReload(obj, view, event):
00046     if not (event.old_state is event.new_state):
00047         obj.reindexObject()
00048         portletReloader = PortletReloader(view)
00049         portletReloader.reloadPortletsByInterface(IRecentPortlet)