"Jason R. Mastaler" <[EMAIL PROTECTED]> writes: > Tim Legant <[EMAIL PROTECTED]> writes: > > > This will clean up the firstmatch function > > Slowly but surely replacing all my FilterParser code <wink>. Looking > through FilterParser.py, firstmatch() is the last piece of code left > that I wrote. Admittedly though, it's a large and ugly beast that > could use some improvement. :-)
Well, when you wrote it, there were only a couple of rules - we didn't support the list rules nor any of the database rules. It was a small and manageable function. But as TMDA has gotten more powerful, firstmatch has gotten bigger and bigger and bigger! So I'm trying to figure out how to make the code smaller and how to share as much as possible, perhaps through an ancestor class. It sounds easy but there are a couple of snags. I laid out the basic structure yesterday, ran into a snag and went to bed. Today has been primarily support. Perhaps I'll get back to it tomorrow. Tim _________________________________________________ tmda-workers mailing list ([EMAIL PROTECTED]) http://tmda.net/lists/listinfo/tmda-workers
