changeset 1047:cc66571d6a76

gravatar optional, default False
author Luis Henrique Fagundes <lhfagundes@gmail.com>
date Tue, 01 Nov 2011 16:20:19 -0200
parents 72d6fa1184e3
children 8aa994ca316b
files MoinMoin/config/default.py MoinMoin/user.py
diffstat 2 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/config/default.py	Sun Oct 30 20:20:16 2011 -0200
+++ b/MoinMoin/config/default.py	Tue Nov 01 16:20:19 2011 -0200
@@ -548,6 +548,7 @@
 
       ('homewiki', u'Self',
        "interwiki name of the wiki where the user home pages are located [Unicode] - useful if you have ''many'' users. You could even link to nonwiki \"user pages\" if the wiki username is in the target URL."),
+      ('use_gravatar', False, "if True, gravatar.com will be used to find User's avatar")
     )),
 
     'mail': ('Mail settings',
--- a/MoinMoin/user.py	Sun Oct 30 20:20:16 2011 -0200
+++ b/MoinMoin/user.py	Tue Nov 01 16:20:19 2011 -0200
@@ -263,6 +263,8 @@
 
     @property
     def avatar(self, size=30):
+        if not app.cfg.user_use_gravatar:
+            return ''
         param = {}
         if not self.email:
             return '/_themes/%s/%s' % (theme.info['identifier'],