Last change
on this file since 1190 was
1,
checked in by myroslav, 19 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 | ## |
---|
9 | from zLOG import LOG |
---|
10 | res = context.portal_catalog(portal_type='TrackBack', review_state='pending',sort_on='Date') |
---|
11 | trbacks = [r.getObject() for r in res] |
---|
12 | blacklisted =[] |
---|
13 | trackspam = context.portal_trackspam |
---|
14 | for trback in trbacks: |
---|
15 | if not trackspam.checkURL(trback.getUrl()): |
---|
16 | blacklisted.append(trback.UID()) |
---|
17 | return state.set(status = 'success', blacklisted = blacklisted) |
---|
Note: See
TracBrowser
for help on using the repository browser.