Ignore:
Timestamp:
Oct 28, 2010 4:26:11 PM (14 years ago)
Author:
mylan
Message:

#228: Remake filter utility to multiadapter, fix tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.plonegooglesitemaps/branches/blacklist/quintagroup/plonegooglesitemaps/interfaces.py

    r2909 r2939  
    2222    """Marker interface that defines browser layer for the package.""" 
    2323 
    24 class IBlackoutFilterUtility(Interface): 
    25     """Base interface for filter utility.""" 
     24class IBlackoutFilter(Interface): 
     25    """Base interface for filter adapter.""" 
    2626 
    27     def filterOut(fdata, fkey, **kwargs): 
     27    def filterOut(fdata, fargs): 
    2828        """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. 
     29            * fdata (list/tuple) - data for filtering 
     30              (list of catalog brains). 
     31            * fargs (string) - is key for filtering. 
    3232           Return list/tuple like object without filtered out items. 
    3333        """ 
Note: See TracChangeset for help on using the changeset viewer.