lsantos2000 / feedjack

Automatically exported from code.google.com/p/feedjack
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Add positive and negative filters for posts in a site #4

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
It has been requested that Feedjack should have filters both positive and
negative for posts to appear in a site.

A positive filter means that only posts that meet a certain criteria should
appear in a site.

A negative filter means that if a post meets a certain criteria, it should
not appear in the site.

These filters should exist both at the site and at the subscriber level.

It has been suggested in
http://code.google.com/p/feedjack/issues/detail?id=3  to use regular
expressions. Filters could be done this way and/or with hooks written in
python.

Original issue reported on code.google.com by gpicon on 4 Aug 2006 at 4:46

GoogleCodeExporter commented 8 years ago
In the clone I have created I have implemented this by means of a new model 
called
Filter. It is basically a regexp applied to a feed and a field combination. 
Right now
it only works to exclude posts (since this was the use-case I wanted) but I 
will add
a positive/negative criteria.

Original comment by roder...@gmail.com on 16 Feb 2010 at 2:38

GoogleCodeExporter commented 8 years ago
Am I seeing this the wrong way or can this not be achieved by simply inverting 
the
evaluation of the regexp using a boolean NOT?

Original comment by roder...@gmail.com on 16 Feb 2010 at 2:46