Changes between Version 1 and Version 2 of Ticket #11200, comment 2
- Timestamp:
- Sep 13, 2016, 9:31:00 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #11200, comment 2
v1 v2 1 1 Creating a Adapter for NewHacks is easy. Simply call 2 {{{ 2 {{{#!python 3 3 FilterSystem(self.env).test(req, author, changes) 4 4 }}} 5 5 6 where "author"is an author name and changes a list of before/after strings. For NewHack the before is probably always None.6 where `author` is an author name and changes a list of before/after strings. For NewHack the before is probably always None. 7 7 8 Examples here: http://trac.edgewall.org/browser/plugins/1.0/spam-filter/tracspamfilter/adapters.py and here: http://trac.edgewall.org/browser/plugins/1.0/spam-filter/tracspamfilter/accountadapter.py8 Examples here: trac:browser:plugins/1.0/spam-filter/tracspamfilter/adapters.py and here: trac:browser:plugins/1.0/spam-filter/tracspamfilter/accountadapter.py 9 9 10 10 See examples how to extract author name.