This commit is contained in:
Robohash 2012-06-28 15:48:22 -04:00
parent 7f8f8e0ef6
commit 04edaded67
2 changed files with 23 additions and 4 deletions

View File

@ -534,6 +534,26 @@ src="//static1.robohash.org/static/img/indented_star.png" width="27" height="25"
</div><!-- end of content section --> </div><!-- end of content section -->
<!-- start of content section -->
<div class="content_section">
<div class="section_title">Advanced classes in Robotry.</div>
<p>
For those inclined, there are several advanced techniques which have been added over time.
</p><p>
For Gravatar enthusiasts, you can ask Robohash to use a Gravatar if one is available.<br>
Put either the email, or the hashed version, in your image where the string normally goes -<br><br>
For example: http://robohash.org/colin@robohash.org?gravatar=yes<br> or http://robohash.org/620050a4db5104bae758cd75171d64ca?gravatar=hashed
</p><p>
<p>Both traditional and new Stealthy (https) robots are available.</p>
</p>
</div><!-- end of content section -->
<div class="hr"></div> <div class="hr"></div>
@ -553,14 +573,13 @@ src="//static1.robohash.org/static/img/indented_star.png" width="27" height="25"
<!-- start of footer container --> <!-- start of footer container -->
<div id="footer_container"> <div id="footer_container">
<!-- start of footer left --> <!-- start of footer left -->
<div id="footer_left"> <div id="footer_left" style="margin-top:60px;">
<p> <p>
Robohash contains robots created by Zikri Kader (set1), Hrvoje Novakovic (set2), and Julian Peter Arias (set3). Robohash contains robots created by Zikri Kader (set1), Hrvoje Novakovic (set2), and Julian Peter Arias (set3).
<br> <br>
<br>
<p> <p>
You are free to embed under the terms of the CC-BY license. <br> Example wording might be "Robots lovingly delivered by You are free to embed under the terms of the CC-BY license. <br> Example wording might be "Robots lovingly delivered by
Robohash.org or something. Robohash.org" or something.
</p> </p>
</div><!-- end of footer left --> </div><!-- end of footer left -->

View File

@ -278,7 +278,7 @@ class ImgHandler(tornado.web.RequestHandler):
string = urllib.quote(string) string = urllib.quote(string)
default = "404" default = "404"
# construct the url # construct the url
gravatar_url = "http://www.gravatar.com/avatar/" + string + "?" gravatar_url = self.request.protocol + "://www.gravatar.com/avatar/" + string + "?"
gravatar_url += urllib.urlencode({'default':default, 'size':str(sizey)}) gravatar_url += urllib.urlencode({'default':default, 'size':str(sizey)})
try: try:
f = urllib2.urlopen(urllib2.Request(gravatar_url)) f = urllib2.urlopen(urllib2.Request(gravatar_url))