2013-10-10 15:36:18 +02:00
|
|
|
from Products.CMFCore.utils import getToolByName
|
|
|
|
|
2013-12-15 12:02:32 +01:00
|
|
|
|
2013-10-10 15:36:18 +02:00
|
|
|
def index_object(obj, event):
|
2022-05-01 23:14:09 +02:00
|
|
|
"""Index the object when it is added/modified to the conversation."""
|
2019-03-21 08:57:08 +01:00
|
|
|
obj.indexObject()
|
2013-10-10 15:36:18 +02:00
|
|
|
|
2013-12-15 12:02:32 +01:00
|
|
|
|
2013-10-10 15:36:18 +02:00
|
|
|
def unindex_object(obj, event):
|
2022-05-01 23:14:09 +02:00
|
|
|
"""Unindex the object when it is removed from the conversation."""
|
2019-03-21 08:57:08 +01:00
|
|
|
obj.unindexObject()
|