2010-08-05 20:40:22 +02:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
|
|
from zope.i18nmessageid import MessageFactory
|
|
|
|
PloneAppDiscussionMessageFactory = MessageFactory('plone.app.discussion')
|
|
|
|
|
2009-05-31 19:49:33 +02:00
|
|
|
# Monkey patch plone.app.vocabularies.types.BAD_TYPES and remove
|
|
|
|
# 'Discussion Item' from this tuple, so that Comments can be found
|
|
|
|
# in the search. This will become needless once plone.app.discussion
|
|
|
|
# will become a part of Plone 4.
|
2009-05-11 18:52:16 +02:00
|
|
|
|
2009-10-12 20:46:03 +02:00
|
|
|
import plone.app.vocabularies.types
|
|
|
|
|
|
|
|
new_bad_types = list(plone.app.vocabularies.types.BAD_TYPES)
|
|
|
|
if 'Discussion Item' in new_bad_types:
|
|
|
|
new_bad_types.remove('Discussion Item')
|
|
|
|
plone.app.vocabularies.types.BAD_TYPES = new_bad_types
|