plone.app.discussion/plone/app/discussion/subscribers.py

15 lines
340 B
Python

# -*- coding: utf-8 -*-
from Products.CMFCore.utils import getToolByName
def index_object(obj, event):
"""Index the object when it is added/modified to the conversation.
"""
obj.indexObject()
def unindex_object(obj, event):
"""Unindex the object when it is removed from the conversation.
"""
obj.unindexObject()