iLanguage/iField — pull request #259 by cesine (2012-07-03 00:02:44+00:00)
Title: Pouch is now relativized per corpus, it is also successfully using cookies to insert into the user's couchdb

What's new in this pull request:

* fixes #204
* We now have the default catchall pouch of "idb://db"
* When we create new Datum, Session, DataList or anything else we want to be saved in the corpusdb, we need to relativize its pouch to be the proper corpus' couch. There are helper functions which take a corpus as an argument and can do this.
* we get some 401 (Unauthorized) responses to our Pouch's PUT, but it is using the couch permissions and the cookie.

Whats next:
* set up EC2 with couch and mongodb so we can start playing with our own corpora.
* implement the quick authentication view and use when the user clicks the replicate button if their cookie has worn out (ie if pouch fails...?)
* think about what we want to do with users, where do we store them? do we store simple info about them in the corpus's couch so their readonly info is availible to other corpus contributors/collaborators? Do we set up a nodejs api to get their details and build the models (seperate from teh replicate/sync functionality)...