Changeset 262
- Timestamp:
- 08/25/08 18:14:07 (3 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/threadedtopics/templatetags/threadedtopicstags.py
r206 r262 122 122 get_dict = self.get_dict.resolve(context) 123 123 get_param_name = self.get_param_name.resolve(context) 124 topic_id_strings = get_dict.getlist(get_param_name) 124 125 # validate topic IDs: only integers and 'add' allowed 126 topic_id_strings = [s for s in get_dict.getlist(get_param_name) 127 if s.isdigit() or s == 'add'] 128 125 129 context[self.add_open_varname] = 'add' in topic_id_strings 126 130 topic_ids = [int(s) for s in topic_id_strings if s and s != 'add']
