allura.lib.spam

class allura.lib.spam.ChainedSpamFilter(methods_string, entry_points, config)
check(*a, **kw)

Return True if text is spam, else False.

class allura.lib.spam.SpamFilter(config)

Defines the spam checker interface and provides a default no-op impl.

check(text, artifact=None, user=None, content_type='comment', **kw)

Return True if text is spam, else False.

classmethod get(config, entry_points)

Return an instance of the SpamFilter impl specified in config. :rtype: SpamFilter