Ignore:
Timestamp:
Oct 22, 2010 8:59:25 AM (14 years ago)
Author:
mylan
Message:

#228: Added default id and path blackout filters

File:
1 edited

Legend:

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

    r2909 r2912  
    99    def filterOut(self, fdata, fkey, **kwargs): 
    1010        """Filter-out fdata list by id in fkey.""" 
    11         return fdata 
     11        return [b for b in fdata if (b.getId or b.id) != fkey] 
    1212 
    1313 
     
    1919    def filterOut(self, fdata, fkey, **kwargs): 
    2020        """Filter-out fdata list by path in fkey.""" 
    21         return fdata 
     21        return [b for b in fdata if b.getPath() != fkey] 
Note: See TracChangeset for help on using the changeset viewer.