Changeset 3907
- Timestamp:
- 06/26/08 12:33:06 (2 months ago)
- Files:
-
- fullblogplugin/0.11/tracfullblog/spamfilter.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
fullblogplugin/0.11/tracfullblog/spamfilter.py
r3112 r3907 39 39 40 40 field_names = set(fields).union(last_post_fields) 41 changes = [(to_unicode(last_post_fields.get(k, '')), 42 to_unicode(fields.get(k, '')))] 41 changes = [] 42 for field in field_names: 43 old = to_unicode(last_post_fields.get(field, '')) 44 new = to_unicode(fields.get(field, '')) 45 if new and old != new: 46 changes.append((old, new)) 43 47 author = fields.get('author', '') 44 48 FilterSystem(self.env).test(req, author, changes)
