[Testbot] Plone 4.3 - Python 2.6 - Build # 2142 - Still failing! - 3 failure(s)
jenkins at plone.org
jenkins at plone.org
Mon Jun 9 19:20:38 UTC 2014
-------------------------------------------------------------------------------
Plone 4.3 - Python 2.6 - Build # 2142 - Still Failing!
-------------------------------------------------------------------------------
http://jenkins.plone.org/job/plone-4.3-python-2.6/2142/
-------------------------------------------------------------------------------
CHANGES
-------------------------------------------------------------------------------
Repository: Products.CMFPlone
Branch: refs/heads/4.3.x
Date: 2014-06-09T10:24:27-07:00
Author: Ross Patterson (rpatterson) <me at rpatterson.net>
Commit: https://github.com/plone/Products.CMFPlone/commit/daa24ce44718a52f47c9099ff7efd15aee38350a
Support livesearch QUERY terms by passing the REQUEST to the catalog query.
Files changed:
M Products/CMFPlone/skins/plone_scripts/livesearch_reply.py
diff --git a/Products/CMFPlone/skins/plone_scripts/livesearch_reply.py b/Products/CMFPlone/skins/plone_scripts/livesearch_reply.py
index 84385fa..f0f4d66 100644
--- a/Products/CMFPlone/skins/plone_scripts/livesearch_reply.py
+++ b/Products/CMFPlone/skins/plone_scripts/livesearch_reply.py
@@ -69,6 +69,7 @@ def quote_bad_chars(s):
r = quote_bad_chars(r) + '*'
searchterms = url_quote_plus(r)
+REQUEST = context.REQUEST
params = {'SearchableText': r,
'portal_type': friendly_types,
'sort_limit': limit + 1}
@@ -80,11 +81,10 @@ def quote_bad_chars(s):
params['path'] = path
# search limit+1 results to know if limit is exceeded
-results = catalog(**params)
+results = catalog(REQUEST, **params)
searchterm_query = '?searchterm=%s' % url_quote_plus(q)
-REQUEST = context.REQUEST
RESPONSE = REQUEST.RESPONSE
RESPONSE.setHeader('Content-Type', 'text/xml;charset=utf-8')
Repository: Products.CMFPlone
Branch: refs/heads/4.3.x
Date: 2014-06-09T10:25:03-07:00
Author: Ross Patterson (rpatterson) <me at rpatterson.net>
Commit: https://github.com/plone/Products.CMFPlone/commit/53c7184308a781ba53166f4d0d66ad7cf850f231
Allow livesearch portal_type to be hard coded in the URL.
Files changed:
M Products/CMFPlone/skins/plone_scripts/livesearch_reply.py
diff --git a/Products/CMFPlone/skins/plone_scripts/livesearch_reply.py b/Products/CMFPlone/skins/plone_scripts/livesearch_reply.py
index f0f4d66..03f0b56 100644
--- a/Products/CMFPlone/skins/plone_scripts/livesearch_reply.py
+++ b/Products/CMFPlone/skins/plone_scripts/livesearch_reply.py
@@ -71,8 +71,9 @@ def quote_bad_chars(s):
REQUEST = context.REQUEST
params = {'SearchableText': r,
- 'portal_type': friendly_types,
'sort_limit': limit + 1}
+if 'portal_type' not in REQUEST:
+ params['portal_type'] = friendly_types
if path is None:
# useful for subsides
-------------------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CHANGES.log
Type: application/octet-stream
Size: 2282 bytes
Desc: not available
URL: <http://lists.plone.org/pipermail/plone-testbot/attachments/20140609/a91548b6/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: build.log
Type: application/octet-stream
Size: 169479 bytes
Desc: not available
URL: <http://lists.plone.org/pipermail/plone-testbot/attachments/20140609/a91548b6/attachment-0003.obj>
More information about the Testbot
mailing list