149 Commits

Author SHA1 Message Date
Robohash
3e5d4bd3d2 package test 2013-12-04 16:15:01 -05:00
Robohash
2b880a9353 Changed "import Image"->"from PIL import Image"
This is the preferred/more modern syntax, per the Pillow docs.
I had meant to commit this the other day, along with the requirements.txt change.
2013-10-29 02:33:44 -04:00
Robohash
38210d1aa3 swap to more modern lib 2013-10-25 16:05:22 -04:00
Robohash
a1ca07ddf8 Move additional logic into RH obj 2013-08-28 18:08:26 -04:00
Robohash
78759d8aa5 The main purpose of the change was to port Robohash to Python3.
I took the opportunity to go back and fix a few things that I should have done better the first time.

+ Port to work with both Python2 and Python3
+ Port to run with newest Tornado-
+ Dynamically read in list of sets from filedir (this won't be slow, since we run out of a ramdisk in prod)
+ Break Robohash object out into it's own class, so we can call it from other programs without going through HTTP
+ Allow /set_set3/ style parameters anywhere in the URL
+ DataURI as PNG instead of jpg - I'll make this configurable in a future version.
2013-08-28 02:32:29 -04:00
Robohash
1c90774ffd Avoid a XSS issue 2013-08-16 12:32:25 -04:00
Robohash
3ed19f4271 remove static 2013-03-30 05:40:08 +00:00
Robohash
77f369489d fixes #7 2013-01-30 13:50:14 -05:00
Robohash
5e3baf6916 Emergency fix because I'm stupid 2012-11-09 14:04:08 -05:00
Robohash
b40f5cd42e Cleaned up directoryparam support 2012-11-06 17:43:09 -05:00
Robohash
adfa4f02f4 Cleaned up directoryparam support 2012-11-06 17:42:26 -05:00
Robohash
9df3e5c027 Cleaned up directoryparam support 2012-11-06 17:37:39 -05:00
Robohash
ab353e655c Merge pull request #7 from SamSaffron/master
Gravatar hates query strings, it nukes them, so support a second way of passing options
2012-11-06 13:58:25 -08:00
Sam Saffron
62a7a7e187 gravatar hates query strings, support passing in options via the path,
optionally [?&] are replaced with / and = is replaced with _
2012-11-07 08:42:32 +11:00
Robohash
04d89e8b49 Add requirements.txt via @sprintly 2012-09-24 08:51:42 -04:00
Robohash
9fe41b9980 https 2012-09-23 02:56:07 +00:00
Robohash
d8f7139b90 Crossdomain.xml 2012-09-16 22:19:19 -04:00
Robohash
0ced037cc7 add crossdomain.xml for Flash users 2012-09-16 19:54:14 -04:00
Robohash
16900fc533 oops 2012-07-27 13:26:14 -04:00
Robohash
896afd02b8 remove tag 2012-07-26 05:16:07 -04:00
Robohash
b2f1fa936e datauri 2012-07-26 04:56:31 -04:00
Robohash
88e1c0b8e3 template 2012-06-28 19:59:16 +00:00
Robohash
04edaded67 https 2012-06-28 15:48:22 -04:00
Robohash
7f8f8e0ef6 Merge branch 'master' of https://github.com/e1ven/Robohash 2012-06-28 19:16:30 +00:00
Robohash
12017fabe8 fromsite 2012-06-28 19:16:13 +00:00
Robohash
1a2ad39d99 License 2012-04-11 18:14:54 -04:00
Robohash
fd9db99f7c sort backgrounds 2012-04-03 12:45:23 -04:00
Robohash
7cd765811b Agnostic URL 2012-04-02 20:15:41 +00:00
Robohash
e78ea45617 change some urls 2012-02-03 15:41:38 -05:00
Robohash
baf21a7443 Merge branch 'master' of github.com:e1ven/Robohash 2012-01-03 15:14:08 -05:00
Robohash
0d5d9270e1 include blue5 2012-01-03 15:13:56 -05:00
Robohash
99f2e359c3 Include License 2012-01-03 15:12:36 -05:00
Robohash
ad35d281ff Gravatar change 2011-12-11 02:00:56 +00:00
Robohash
32a63c3726 saftey 2011-08-30 23:04:30 -04:00
Robohash
62f659c8f3 Added Hashed Gravatar 2011-08-30 22:47:50 -04:00
Robohash
0aef05b699 Gravatar support 2011-08-30 21:57:51 -04:00
Robohash
cd2ea07062 Remove unsupported exts 2011-08-30 18:39:55 -04:00
Robohash
5e08944f63 fix typo. Thanks jayferd 2011-08-30 18:22:23 -04:00
Robohash
6c79ff8617 wording 2011-08-30 17:29:20 -04:00
Robohash
900e6e34f9 swap ignoreext to be default 2011-08-30 16:35:59 -04:00
Robohash
223b349de2 root 2011-08-19 16:17:01 -04:00
Robohash
c3637d7a9b Edited README via GitHub 2011-08-16 18:27:18 -03:00
Robohash
a89865fde5 Cleanup 2011-08-08 20:19:14 +00:00
Robohash
74edc9fd2b Cleanup 2011-08-08 20:19:08 +00:00
Robohash
6b1110a4d3 This commit has a large rename of files.
Let me explain-

When RH.org fired up, it wasn't sorting the filenames.
Now, that gives us a problem.. It was relying on the ext order of the bits.
Oops. Sorry, I didn't think about that, I released in a hurry.

Anyway, to keep compatibility, I've ensured that the fileorder from RH.org
is now reflected in the files themselves. This was done by naming each one with up to
two sets of numbers

0001#01Body/01.png

What the 0001# before the pound sign means does is ensure the
code is sorted with that gif first, when assigning them.

Anyway, this makes the code messier, but it will be the same everywhere now.
I'll clean up the filenames later, if anyone cares.
Or, you're welcome to!

Renaming them to drop the numbers in the basefilename should be perfectly OK.
Try it ;)
-CPD
2011-08-08 16:10:57 -04:00
Robohash
54efa3db28 Merge branch 'rename' of github.com:e1ven/Robohash 2011-08-08 16:08:24 -04:00
Robohash
1ca2107ef1 FileOrderFix 2011-08-08 20:02:33 +00:00
Robohash
c3b752b93d dircurse.sh 2011-08-06 05:51:06 +00:00
Robohash
1c80fc8ca6 fix bug 2011-07-18 21:47:54 +00:00
Robohash
c5857592a0 ABCD 2011-07-16 05:01:26 +00:00