for i in range(1, 300):
try:
ent = context.get_entry(i)
for com in ent.trackback_list():
if com.title.startswith ("texas") o com.title.startswith ("online"):
ent.deleteTrackback(int(com.id))
print "deleted %s's comment" % com.title
except:
pass
print "Done."
return printedBeing Eibar.org a community of coreblogs we placed that at the root like www.eibar.org/scriptPLACEDhere and our main blog's evil trackbacks were deleted (as far as you have less than 300 entries...), but it also worked with any blog placed below, without copying the script, like www.eibar.org/blogak/teknosexua/scriptPLACEDhere or www.eibar.org/blogak/sarasua/scriptPLACEDhere
scriptPLACEDhere is just a dummy name. We used another ID for the script.
Luistxo Fernandez [EMAIL PROTECTED] - 675 706 553
CodeSyntax - http://www.codesyntax.com/ Azitaingo Industrialdea 3K E-20600 EIBAR Tel: (+34) 943 82 17 80
_______________________________________________ COREblog-en mailing list [email protected] http://postaria.com/cgi-bin/mailman/listinfo/coreblog-en Unsubscription writing to [EMAIL PROTECTED]
