[WIP] New ebi submit [WIP]

Almost there, but I thought I'd get this in now so that people can begin reviewing, it's kind of big.

Needs:
- [ ] Logging
- [ ] Test code
- [ ] Script file (this is the library code)
- [ ] Final step that calls ASCP on the XML files generated
ya, I think that makes sense, or just not sort? These won't be massive
insane sized dicts AFAIK...


On Mon, Jun 9, 2014 at 10:50 AM, adamrp <notifications@github.com> wrote:

> In python_code/ebi.py:
>
> > +        """Format alias using ``self.study_id``"""
> > +        safe_study_id = escape(clean_whitespace(str(self.study_id)))
> > +        return 'qiime_submission_' + safe_study_id
> > +
> > +    def _get_library_name(self, sample_name, row_number):
> > +        """Format alias using `sample_name`, `row_number`
> > +
> > +        `row_number` comes from the index of the prep in the sample's prep
> > +        list.
> > +        """
> > +        return '%s:%d' % (escape(clean_whitespace(sample_name)), row_number)
> > +
> > +    def _add_dict_as_tags_and_values(self, parent_node, attribute_element_name,
> > +                                     data_dict):
> > +        """Format key/value data using a common EBI XML motif"""
> > +        for attr, val in sorted(data_dict.iteritems()):
>
> Yeah, I think it will -- should I just used items instead?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/qiime/qiime_web_app/pull/704/files#r13550916>.
>