mikadosoftware/annotate — pull request #9 by ishanm (2013-07-24 06:56:38+00:00)
Title: Hasher

Hey Paul,

Dug out the basic bookmarklet + wsgi app I had written and added a webtest for the app. To run it use the bookmarklet.js to create a bookmarklet, run the wsgi app by using the command 'paster serve minimal.ini --reload' in the directory with the minimal.ini file. On activating the bookmarklet, if you highlight a bunch of text on a page, it should spit out the annotation index, ask you for an annotation, and on typing it out it should store it in a file with the md5 name (and the annotation as the content) in the /tmp/annotate directory. On sending a get request to 'http://127.0.0.1:6543/annotate?file=' it should return the contents of the file. I haven't cleaned up the code so it might be a little messy, but thought I'd send a pull request to get the ball rolling. Let me know what you think. Thanks!