[Testbot] Plone 5.0 - Python 2.7 - Build # 1434 - Regression! - 1 failure(s)
jenkins at plone.org
jenkins at plone.org
Tue Feb 11 15:17:29 UTC 2014
-------------------------------------------------------------------------------
Plone 5.0 - Python 2.7 - Build # 1434 - Failure!
-------------------------------------------------------------------------------
http://jenkins.plone.org/job/plone-5.0-python-2.7/1434/
-------------------------------------------------------------------------------
CHANGES
-------------------------------------------------------------------------------
Repository: plone.app.contenttypes
Branch: refs/heads/master
Date: 2014-02-11T06:31:21-08:00
Author: Philip Bauer (pbauer) <bauer at starzel.de>
Commit: https://github.com/plone/plone.app.contenttypes/commit/14f2b28abc4b62c90d3a6540b5e4a28b5531e9a5
use safe_unicode for indexer (fixes #104) and pep8
Files changed:
M plone/app/contenttypes/indexers.py
diff --git a/plone/app/contenttypes/indexers.py b/plone/app/contenttypes/indexers.py
index 4733af7..473f261 100644
--- a/plone/app/contenttypes/indexers.py
+++ b/plone/app/contenttypes/indexers.py
@@ -1,18 +1,18 @@
# -*- coding: utf-8 -*-
-from logging import getLogger
-
+from plone.app.contenttypes.utils import replace_link_variables_by_paths
from Products.CMFCore.utils import getToolByName
+from Products.CMFPlone.utils import safe_unicode
from ZODB.POSException import ConflictError
-
+from logging import getLogger
+from plone.app.contenttypes.interfaces import IDocument
+from plone.app.contenttypes.interfaces import IFile
+from plone.app.contenttypes.interfaces import IFolder
+from plone.app.contenttypes.interfaces import IImage
+from plone.app.contenttypes.interfaces import ILink
+from plone.app.contenttypes.interfaces import INewsItem
from plone.indexer.decorator import indexer
from plone.rfc822.interfaces import IPrimaryFieldInfo
-from plone.app.contenttypes.interfaces import (
- IDocument, INewsItem, ILink, IImage, IFile, IFolder
-)
-
-from .utils import replace_link_variables_by_paths
-
logger = getLogger(__name__)
FALLBACK_CONTENTTYPE = 'application/octet-stream'
@@ -33,9 +33,9 @@ def _unicode_save_string_concat(*args):
def SearchableText(obj, text=False):
return u" ".join((
- obj.id,
- obj.title or u"",
- obj.description or u"",
+ safe_unicode(obj.id),
+ safe_unicode(obj.title) or u"",
+ safe_unicode(obj.description) or u"",
))
-------------------------------------------------------------------------------
More information about the Testbot
mailing list