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

Last change on this file since 2925 was 2909, checked in by mylan, 14 years ago

#228: Added IBlackoutFilterUtility interface with skeleton of id and path utilities with appropriate 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 IBlackoutFilterUtility(Interface):
25    """Base interface for filter utility."""
26
27    def filterOut(fdata, fkey, **kwargs):
28        """Filter out fdata by passed arguments in kwargs.
29            * fdata (list/tuple) - is data to filtering.
30            * fkey (string) - is key for filtering.
31            * **kwargs - contains additional data, needed for filtering.
32           Return list/tuple like object without filtered out items.
33        """
34
Note: See TracBrowser for help on using the repository browser.