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
File details
Details for the file collective.allowsearch-0.1.4.tar.gz
.
File metadata
- Download URL: collective.allowsearch-0.1.4.tar.gz
- Upload date:
- Size: 11.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d0867b76aff9489ac09b452742ac271e8022df1fd1de9310a0c9e2795fd669d |
|
MD5 | 548046117b0f4fbba638de2e4fbdf581 |
|
BLAKE2b-256 | 536115d84c4dc2a1b40e88380c4b12da9601a62ce7a399e9c907cc9e21c79ce2 |
File details
Details for the file collective.allowsearch-0.1.4-py2.4.egg
.
File metadata
- Download URL: collective.allowsearch-0.1.4-py2.4.egg
- Upload date:
- Size: 14.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6406c21c50540c123a9a4ed18de10fa77637d09dd5655c503e0b99c60571bbb9 |
|
MD5 | 63d29c196f2dd0f54f2b61fc72ed27b1 |
|
BLAKE2b-256 | 7fd091906438aa717eb240e61bf4448a848057669af7b34de9f66e505e05a543 |