source: products/qTrackSpam/trunk/skins/qtrackspam/prefs_check_trackbacks.cpy @ 1

Last change on this file since 1 was 1, checked in by myroslav, 18 years ago

Building directory structure

  • Property svn:eol-style set to native
File size: 528 bytes
Line 
1##bind container=container
2##bind context=context
3##bind namespace=
4##bind script=script
5##bind subpath=traverse_subpath
6##parameters=
7##title=
8##
9from zLOG import LOG
10res = context.portal_catalog(portal_type='TrackBack', review_state='pending',sort_on='Date')
11trbacks = [r.getObject() for r in res]
12blacklisted =[]
13trackspam = context.portal_trackspam
14for trback in trbacks:
15    if not trackspam.checkURL(trback.getUrl()):
16        blacklisted.append(trback.UID())
17return state.set(status = 'success', blacklisted = blacklisted)
Note: See TracBrowser for help on using the repository browser.