Started working on documentation.

So far just the stable parts :)
This commit is contained in:
Armin Ronacher 2010-04-06 16:02:14 +02:00
parent b15ad39427
commit 4ec7d2a0d8
9 changed files with 641 additions and 9 deletions

View file

@ -57,7 +57,7 @@ def format_datetime(timestamp):
def gravatar_url(email, size=80):
"""Return the gravatar image for the given email address"""
return 'http://www.gravatar.com/avatar/%s?d=identicon&s=%d' % \
(md5(email.lower().encode('utf-8')).hexdigest(), size)
(md5(email.strip().lower().encode('utf-8')).hexdigest(), size)
@app.request_init