Changes between Version 1 and Version 2 of Ticket #11200, comment 2


Ignore:
Timestamp:
Sep 13, 2016, 9:31:00 PM (8 years ago)
Author:
Ryan J Ollos
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #11200, comment 2

    v1 v2  
    11Creating a Adapter for NewHacks is easy. Simply call
    2 {{{
     2{{{#!python
    33FilterSystem(self.env).test(req, author, changes)
    44}}}
    55
    6 where "author" is an author name and changes a list of before/after strings. For NewHack the before is probably always None.
     6where `author` is an author name and changes a list of before/after strings. For NewHack the before is probably always None.
    77
    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.py
     8Examples here: trac:browser:plugins/1.0/spam-filter/tracspamfilter/adapters.py and here: trac:browser:plugins/1.0/spam-filter/tracspamfilter/accountadapter.py
    99
    1010See examples how to extract author name.