Revision 1308
Added by Aaron Marcuse-Kubitza almost 13 years ago
lib/xml_func.py | ||
---|---|---|
185 | 185 |
items = conv_items(str, items) # get *once* from iter and check types |
186 | 186 |
try: str_ = dict(items)['date'] |
187 | 187 |
except KeyError: |
188 |
items = dict(filter(lambda (k, v): v != 0, conv_items(int, items)))
|
|
188 |
items = dict(conv_items(int, items))
|
|
189 | 189 |
try: items['year'] # year is required |
190 | 190 |
except KeyError, e: raise SyntaxException(e) |
191 | 191 |
items.setdefault('month', 1) |
Also available in: Unified diff
xml_func.py: _date: Removed mapping year/month/day of 0 to NULL because that is now handled on a case-by-case basis in the mappings