def content_published(content, event):
    if not changes.only_published:
        return
    if (event.old_state.getId() == 'published' and
        event.new_state.getId() != 'published'):
        changes.unindex_content(content)
    elif (event.new_state.getId() == 'published' and
          event.old_state.getId() != 'published'):
        changes.index_content(content)
예제 #2
0
def content_published(content, event):
    if not changes.only_published:
        return
    if (event.old_state.getId() == 'published'
            and event.new_state.getId() != 'published'):
        changes.unindex_content(content)
    elif (event.new_state.getId() == 'published'
          and event.old_state.getId() != 'published'):
        changes.index_content(content)
예제 #3
0
def content_modified(content, event):
    if changes.should_index_content(content):
        changes.index_content(content)
예제 #4
0
def content_added(content, event):
    if changes.should_index_content(content):
        changes.index_content(content)
def content_state_changed(content, event):

    if not changes.only_published:
        changes.index_content(content)
def content_modified(content, event):
    if changes.should_index_content(content):
        changes.index_content(content)
def content_added(content, event):
    if changes.should_index_content(content):
        changes.index_content(content)