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.
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
Built Distribution
Close
Hashes for collective.allowsearch-0.1.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86dcb5042613906890b7f149fda4d49007d73e0e85224b54a7be2a78ed170639 |
|
MD5 | 6651c59bfda2ed27685c8a73082ebcee |
|
BLAKE2b-256 | 4c8315e875da8321dcaa6e0356f641383ac2c790cd4d6b29d36a46d7fb67d741 |
Close
Hashes for collective.allowsearch-0.1.3-py2.4.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30be2f3c915f8002b95cb20c1ccaf3c98cb4231d4e3e0b4f26a5b6b40278c451 |
|
MD5 | 2f39ef11ff8039caeec1bcfcc38c6fc0 |
|
BLAKE2b-256 | 079ed4aa002d49f7d29d33d03003363c8680bb8dbaa438c0edea4358568a6d2d |