Mercurial > public > sg101
comparison gpp/antispam/utils.py @ 316:767cedc7d12a
Fixing #144; integrate with new Django logging support. Also added unit tests for Donations app.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 30 Jan 2011 20:02:32 +0000 |
parents | 8c1832b9d815 |
children | 98b373ca09f3 |
comparison
equal
deleted
inserted
replaced
315:36373d995611 | 316:767cedc7d12a |
---|---|
59 user.save() | 59 user.save() |
60 profile = user.get_profile() | 60 profile = user.get_profile() |
61 profile.status = STA_SUSPENDED | 61 profile.status = STA_SUSPENDED |
62 profile.status_date = datetime.datetime.now() | 62 profile.status_date = datetime.datetime.now() |
63 profile.save() | 63 profile.save() |
64 | 64 |
65 | 65 |
66 def _get_spam_phrases(): | 66 def _get_spam_phrases(): |
67 """This function returns the current list of spam phrase strings. | 67 """This function returns the current list of spam phrase strings. |
68 The strings are cached to avoid hitting the database. | 68 The strings are cached to avoid hitting the database. |
69 """ | 69 """ |