Mercurial > hg > bitsyblog
diff bitsyblog/bitsyblog.py @ 28:e54a6405a496
display errors for preferences form
author | k0s <k0scist@gmail.com> |
---|---|
date | Sat, 31 Oct 2009 23:04:20 -0400 |
parents | 4101fdb16ab2 |
children | 6a1c85adc671 |
line wrap: on
line diff
--- a/bitsyblog/bitsyblog.py Sat Oct 31 01:36:25 2009 -0400 +++ b/bitsyblog/bitsyblog.py Sat Oct 31 23:04:20 2009 -0400 @@ -13,8 +13,7 @@ ### imports -import dateutil.parser # XXX separate, for now -import parser # bitsyblog dateutil parser +import dateutil.parser import cgi import datetime @@ -818,6 +817,7 @@ data['users'] = [ i for i in list(self.users.users()) if i != user ] data['message'] = message + data['errors'] = errors or {} # render the template template = self.loader.load('preferences.html')