Skip to main content

module providing duplexing of search results in plone.

Project description

Overview

bda.resultduplexer provides duplexing of search results in plone. The original intention were the needs to modify the url for proxied contents (see bda.contentproxy package). This is also the behaviour of the default duplexer. It looks if the user is authenticated, and if so, leave the object url as is, otherwise modify the url pointing to the content proxy view of the object.

To implement your own duplexing logic, you have to provide an IResultDuplexer implementing object. See bda.resultduplexer.interfaces for the API documentation and bda.resultduplexer.duplexer how such an implementation can look like.

To describe duplexed results, brain wrapper objects are used. The default implementation modifies the URL of an object, if you want to modify anything else of the result, you have to provide such an IBrainWrapper implementing object as well.

Note

This module patches ATTopic!. This must be done to make the result duplexer work on topics by calling:

results = IResultDuplexer(self).prepareResults(results)

For the common search behaviour, livesearch_reply and queryCatalog are replaced. To be able to call the duplexer in restricted code, there is a browser view implementation simply loops the call through:

duplexer = context.restrictedTraverse('@@restrictedresultduplexer')
results = duplexer.prepareResults(results)

Installation

  1. Make the egg available in your instance,

  2. Import the bda.resultduplexer extension profile in your plone instance.

This Product is tested with Plone 3.0

Credits

Licence

  • GNU General Public Licence 2.0 or later

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bda.resultduplexer-1.0-beta1.tar.gz (8.8 kB view details)

Uploaded Source

File details

Details for the file bda.resultduplexer-1.0-beta1.tar.gz.

File metadata

File hashes

Hashes for bda.resultduplexer-1.0-beta1.tar.gz
Algorithm Hash digest
SHA256 b731a6429add1fdc6ef490506e2b1d6840b3a511a3a59f722236ae6097f5ff99
MD5 e7da223b9d8b5ed864cfffaf6ef04866
BLAKE2b-256 217a43878344df184d692f050785cabab7c1a849cef1fff4c7f0c90dfd38768c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page