comparison bitsyblog/settings.py @ 28:e54a6405a496

display errors for preferences form
author k0s <k0scist@gmail.com>
date Sat, 31 Oct 2009 23:04:20 -0400
parents e3823be6a423
children 6bdf817a9e34
comparison
equal deleted inserted replaced
27:4101fdb16ab2 28:e54a6405a496
1 """user settings / preferences""" 1 """user settings / preferences"""
2 2
3 import parser # dateutils.parser with mods to retain strftime format 3 import parser # bitsyblog dateutils.parser with mods to retain strftime format
4 import urllib2 4 import urllib2
5 import utils 5 import utils
6 6
7 class InvalidSettingError(Exception): 7 class InvalidSettingError(Exception):
8 """error when trying to validate a setting""" 8 """error when trying to validate a setting"""