Back to index

plone3  3.1.7
Functions
plone.app.content.catalog Namespace Reference

Functions

def reindexOnModify

Function Documentation

def plone.app.content.catalog.reindexOnModify (   content,
  event 
)
When an object is modified, re-index it in the catalog

Definition at line 3 of file catalog.py.

00003 
00004 def reindexOnModify(content, event):
00005     """When an object is modified, re-index it in the catalog
00006     """
00007     
00008     if event.object is not content:
00009         return
00010         
    content.reindexObject(idxs=getattr(event, 'descriptions', []))