Mercurial > hg > bitsyblog
comparison bitsyblog/bitsyblog.py @ 102:bc08a00a7d93
make user creation work again, wip
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Sun, 23 Feb 2014 16:50:06 -0800 |
parents | 83ec14fca36c |
children | 67e01fc5e360 |
comparison
equal
deleted
inserted
replaced
101:83ec14fca36c | 102:bc08a00a7d93 |
---|---|
27 from StringIO import StringIO | 27 from StringIO import StringIO |
28 from urlparse import urlparse | 28 from urlparse import urlparse |
29 from webob import Request, Response, exc | 29 from webob import Request, Response, exc |
30 | 30 |
31 | 31 |
32 ### exceptions | |
33 | |
34 class BlogPathException(Exception): | 32 class BlogPathException(Exception): |
35 """exception when trying to retrieve the blog""" | 33 """exception when trying to retrieve the blog""" |
36 | 34 |
37 | |
38 ### the main course | |
39 | 35 |
40 class BitsyBlog(object): | 36 class BitsyBlog(object): |
41 """a very tiny blog""" | 37 """a very tiny blog""" |
42 | 38 |
43 ### class level variables | 39 ### class level variables |
844 if hasattr(self, 'help'): | 840 if hasattr(self, 'help'): |
845 links.append((self.link(request, 'help'), 'about')) | 841 links.append((self.link(request, 'help'), 'about')) |
846 | 842 |
847 | 843 |
848 request.environ['data']['links'] = links | 844 request.environ['data']['links'] = links |
849 |