Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

bda.resultduplexer

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.

  3. Write your own duplexer. Look at bda.contenbtproxy

This Product is tested with Plone 3.0

Credits

  • Written by Robert Niederreiter Squarewave Computing, BlueDynamics Alliance, Austria

  • Refactorings: Jens Klein BlueDynamics Alliance, Klein & Partner KEG, Innsbruck, Austria

Licence

  • GNU General Public Licence 2.0 or later

Changelog

1.0 beta2

[rnix] 2010-03-10

  • resultduplexer depends now on bda.contentproxy.

Release files for bda.resultduplexer 1.0-beta2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bda.resultduplexer 1.0-beta2
File Size Uploaded
bda.resultduplexer-1.0-beta2.tar.gz 9.5 kB Details

Release files / bda.resultduplexer-1.0-beta2.tar.gz

Download URL bda.resultduplexer-1.0-beta2.tar.gz
Size 9.5 kB
Tags Source
SHA-256 checksum
How to use checksums
45c04fa1b8bfa91b17b085f028d0bbfc8e5ec8d4e21a67cb914d8f991df6ce93
BLAKE2b-256 checksum
How to use checksums
25701199ec1f30e74c171164f8522476138cdc9819d14fac9977d1920679e2c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0-beta2 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page