Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

inserts gravatar images

Project description

Detailed Documentation

Gravatar widget for toscawidget and turbogears

This Widget allow for the insertion of gravatar’s image

http://www.gravatar.com/

A common use in lib/helpers.py

from tw.gravatar import Gravatar
gravatar=Gravatar(size=32, rating="G", default="wavatar")

anywhere in templates:

${h.gravatar(email='your.name@domain.com')}

parameters you can use:

params = {
      "email": "email adress associated to a gravatar",
      "size": "size in pixels of the expected image",
      "rating": "a string chosen from 'G', 'PG' 'R' or 'X'",
      "default": "identicon, monsterid, mm, wavatar"
      }

Contributors

Main developpers

  • Nicolas Laurance <nicolas[dot]laurance[at]gmail[dot]com>

Change history

New in 0.1

First Release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for tw.gravatar, version 0.1a0dev-20100727
Filename, size File type Python version Upload date Hashes
Filename, size tw.gravatar-0.1a0dev-20100727.tar.gz (10.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page