Add prep sample template

:+1: except for @josenavas's comment
On Nov 22, 2014 10:32 AM, "josenavas" <notifications@github.com> wrote:

> In qiita_db/metadata_template.py:
>
> > +
> > +        try:
> > +            fpp_id = insert_filepaths([(filepath, fp_id)], None, "templates",
> > +                                      "filepath", conn_handler,
> > +                                      move_files=False)[0]
> > +            values = (self._id, fpp_id)
> > +            conn_handler.execute(
> > +                "INSERT INTO qiita.{0} ({1}, filepath_id) "
> > +                "VALUES (%s, %s)".format(table, column), values)
> > +        except Exception as e:
> > +            LogEntry.create('Runtime', str(e),
> > +                            info={self.__class__.__name__: self.id})
> > +            raise e
> > +
> > +    def get_filepaths(self, conn_handler=None):
> > +        r"""Retrives the filepath ids """
>
> The docstring needs to be updated: the function is returning a list of
> tuples of (id, filepath)
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/biocore/qiita/pull/674/files#r20758503>.
>