I have badwords.py working.

I want to use as a badwords filter for username,
so (lower case, no spaces), just as google accounts do. 

Just a couple questions:
*
Q1*- I placed this code in db.py  - Is that where it is suppose to go?

*Q2*- I thought the python *.match* would work the way I want, but you 
see...
This works:
 ('assbad', 'We do not take S**t')
This fails:
('badass', None)

Note: I will allow  "ass" in username,
          since it could easily part of a user's name, 
          i.e.  billybrass., but the main badwords, racial slurs - I want 
to exclude.
*Q3:*
Also, if I just want my own list, without encoding, decoding, HOW do I do 
that, I tried all of these-
none worked:
BADWORDS=('ass', 'jerk')
BADWORDS = 'ass' 
BADWORDS = ['ass', 'jerk']

Thanks for help.
~ Rob

-- 



Reply via email to