Skip to main content

Overview

Provides an interface and a default adapter to allow users to search the catalog independent of the View permission.

Installation

Add this package to your buildout or policy package, or add a ZCML slug for it to your etc/site.zcml.

Usage

Simply mark any content which you want to be visible in searches for anonymous users with the IAllowAnonymousSearchMarker interface.

This can be done programmatically or using ZCML like:

<configure
    xmlns="http://namespaces.zope.org/zope"
    xmlns:five="http://namespaces.zope.org/five"
    i18n_domain="collective.allowsearch">

    <include package="collective.allowsearch" />

    <!--
    EXAMPLE: Allow all ATDocument objects to be found by Anonymous users.
    NOTE: This does _NOT_ change the View permissions in any way.
    -->
    <five:implements
        class="Products.ATContentTypes.content.document.ATDocument"
        interface="collective.allowsearch.interfaces.IAllowAnonymousSearchMarker"
        />

</configure>

That’s it. See the package’s doctest for more information.

Release files for collective.allowsearch 0.1.4

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

Source distribution (sdist)

Source distribution for collective.allowsearch 0.1.4
File Size Uploaded
collective.allowsearch-0.1.4.tar.gz 11.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for collective.allowsearch 0.1.4
File Interpreter ABI Platform
collective.allowsearch-0.1.4-py2.4.egg Legacy Egg format - - Details

Total release size: 25.5 kB

Release files / collective.allowsearch-0.1.4.tar.gz

Download URL collective.allowsearch-0.1.4.tar.gz
Size 11.2 kB
Tags Source
SHA-256 checksum
How to use checksums
7d0867b76aff9489ac09b452742ac271e8022df1fd1de9310a0c9e2795fd669d
BLAKE2b-256 checksum
How to use checksums
536115d84c4dc2a1b40e88380c4b12da9601a62ce7a399e9c907cc9e21c79ce2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / collective.allowsearch-0.1.4-py2.4.egg

Download URL collective.allowsearch-0.1.4-py2.4.egg
Size 14.3 kB
Tags Egg
SHA-256 checksum
How to use checksums
6406c21c50540c123a9a4ed18de10fa77637d09dd5655c503e0b99c60571bbb9
BLAKE2b-256 checksum
How to use checksums
7fd091906438aa717eb240e61bf4448a848057669af7b34de9f66e505e05a543
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1

2 release files

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