Adam gensurvey

- titles for groups
- questions and responses

Missing:

- personal prompts
- triggering of supplementals
- final closing free text field (see #175)
- storing responses in db
Isn't hooked up yet to db strucfure
On Oct 4, 2014 11:25 AM, "adamrp" <notifications@github.com> wrote:

> In amgut/lib/util.py:
>
> > @@ -85,6 +87,54 @@ def tearDown(self):
> >      return class_modifier
> >
> >
> > +def store_survey(human_survey_id):
> > +    """Store the survey"""
> > +    class response_director(object):
> > +        def __init__(self):
> > +            self._single = {}
> > +            self._multiple = {}
> > +            self._text = {}
> > +
> > +            self._setters = {'SINGLE': self._single_store,
> > +                             'MULTIPLE': self._multiple_store,
> > +                             'TEXT': self._text_store}
> > +
> > +        def __setitem__(self, key, value):
> > +            self._setters[question_type[key]](key, value)
>
> Where is the question_type coming from?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/biocore/american-gut-web/pull/193/files#r18430477>.
>