import xmlrpc class LinkSleeveModerator(CommentModerator): """ CommentModerator extension to check comment validity at LinkSleeve. """ def moderate(self, comment, content_object): proxy = xmlrpclib.ServerProxy('http://www.linksleeve.org/slv.php') if proxy.slv(comment.comment) == 0: return True return False