source: products/quintagroup.plonegooglesitemaps/branches/blacklist/quintagroup/plonegooglesitemaps/interfaces.py

Last change on this file was 2939, checked in by mylan, 13 years ago

#228: Remake filter utility to multiadapter, fix tests

  • Property svn:eol-style set to native
File size: 1.1 KB
Line 
1from zope import schema
2from zope.interface import Interface
3
4from zope.app.container.constraints import contains
5from zope.app.container.constraints import containers
6
7from Products.DCWorkflow.interfaces import IAfterTransitionEvent
8from plone.browserlayer.interfaces import ILocalBrowserLayerType
9
10from quintagroup.plonegooglesitemaps import qPloneGoogleSitemapsMessageFactory as _
11
12# -*- extra stuff goes here -*-
13
14class ISitemap(Interface):
15    """Search engine Sitemap content type."""
16
17class INewsSitemapProvider(Interface):
18    """Marker interface for News sitemap provider."""
19
20
21class IGoogleSitemapsLayer(ILocalBrowserLayerType):
22    """Marker interface that defines browser layer for the package."""
23
24class IBlackoutFilter(Interface):
25    """Base interface for filter adapter."""
26
27    def filterOut(fdata, fargs):
28        """Filter out fdata by passed arguments in kwargs.
29            * fdata (list/tuple) - data for filtering
30              (list of catalog brains).
31            * fargs (string) - is key for filtering.
32           Return list/tuple like object without filtered out items.
33        """
34
Note: See TracBrowser for help on using the repository browser.