Make study listings async

This is a first attempt start at making things async. As an example, this makes the creation of the study listings async so the loading is non-blocking or other pages.
Huh, okay. Thanks :)
On Oct 24, 2014 4:20 PM, "Joshua Shorenstein" <notifications@github.com>
wrote:

> In qiita_pet/handlers/study_handlers.py:
>
> >      def get(self):
> >          self.write(self.render_string('waiting.html'))
> >          self.flush()
> >          u = User(self.current_user)
> > -        user_studies = [Study(s_id) for s_id in u.private_studies]
> > -        share_dict = {s.id: s.shared_with for s in user_studies}
> > -        shared_studies = [Study(s_id) for s_id in u.shared_studies]
> > +        user_studies, shared_studies = yield Task(self._get_private_shared, u)
> > +        share_dict = yield Task(self._get_shared_with, user_studies)
> >          self.render('private_studies.html', user=self.current_user,
> >                      user_studies=user_studies, shared_studies=shared_studies,
> >                      share_dict=share_dict)
> >
>
> Apparently nope. I added it to the end of the function and it yelled about
> calling finish twice.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/biocore/qiita/pull/496/files#r19340864>.
>