Changeset 2909 in products


Ignore:
Timestamp:
Oct 21, 2010 1:34:22 PM (14 years ago)
Author:
mylan
Message:

#228: Added IBlackoutFilterUtility interface with skeleton of id and path utilities with appropriate tests.

Location:
quintagroup.plonegooglesitemaps/branches/blacklist/quintagroup/plonegooglesitemaps
Files:
2 added
3 edited

Legend:

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

    r2841 r2909  
    3333except ImportError: 
    3434    SUPPORT_BLAYER = False 
     35 
     36BLACKOUT_PREFIX = "seoptimzier.blackoutfilter." 
  • quintagroup.plonegooglesitemaps/branches/blacklist/quintagroup/plonegooglesitemaps/configure.zcml

    r2746 r2909  
    2929        /> 
    3030 
     31    <!-- Register utilities --> 
     32    <utility factory=".utilities.IdBlackoutFilterUtility" 
     33             name="seoptimzier.blackoutfilter.id" 
     34             permission="zope.Public" /> 
     35 
     36    <utility factory=".utilities.PathBlackoutFilterUtility" 
     37             name="seoptimzier.blackoutfilter.path" 
     38             permission="zope.Public" /> 
     39 
     40 
    3141</configure> 
  • quintagroup.plonegooglesitemaps/branches/blacklist/quintagroup/plonegooglesitemaps/interfaces.py

    r2841 r2909  
    2121class IGoogleSitemapsLayer(ILocalBrowserLayerType): 
    2222    """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 TracChangeset for help on using the changeset viewer.