> On Mar 18, 2015, at 5:17 AM, humbed...@apache.org wrote: > > + valid_types = > ['yna','stv1','stv2','stv3','stv4','stv5','stv6','stv7','stv8','stv9'] > + if not form.getvalue('type') in valid_types:
The variable valid_types is a constant and so it should be a tuple. Since users of this code would be interested in what the library considers the list of valid types, it would be nice if VALID_TYPES, all caps, would be a module level variable defined at the top that clients could inspect. Regards, Alan