Last change
on this file since 2996 was
2939,
checked in by mylan, 14 years ago
|
#228: Remake filter utility to multiadapter, fix tests
|
-
Property svn:eol-style set to
native
|
File size:
1.1 KB
|
Line | |
---|
1 | from zope import schema |
---|
2 | from zope.interface import Interface |
---|
3 | |
---|
4 | from zope.app.container.constraints import contains |
---|
5 | from zope.app.container.constraints import containers |
---|
6 | |
---|
7 | from Products.DCWorkflow.interfaces import IAfterTransitionEvent |
---|
8 | from plone.browserlayer.interfaces import ILocalBrowserLayerType |
---|
9 | |
---|
10 | from quintagroup.plonegooglesitemaps import qPloneGoogleSitemapsMessageFactory as _ |
---|
11 | |
---|
12 | # -*- extra stuff goes here -*- |
---|
13 | |
---|
14 | class ISitemap(Interface): |
---|
15 | """Search engine Sitemap content type.""" |
---|
16 | |
---|
17 | class INewsSitemapProvider(Interface): |
---|
18 | """Marker interface for News sitemap provider.""" |
---|
19 | |
---|
20 | |
---|
21 | class IGoogleSitemapsLayer(ILocalBrowserLayerType): |
---|
22 | """Marker interface that defines browser layer for the package.""" |
---|
23 | |
---|
24 | class 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.