Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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

Project Description

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 History

Release History

This version
History Node

0.1.4

History Node

0.1.3

History Node

0.1.2

History Node

0.1.1

History Node

0.1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
collective.allowsearch-0.1.4-py2.4.egg (14.3 kB) Copy SHA256 Checksum SHA256 2.4 Egg Mar 13, 2008
collective.allowsearch-0.1.4.tar.gz (11.2 kB) Copy SHA256 Checksum SHA256 Source Mar 13, 2008

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting