'Store the Template in the database and return its ID.'

def store(self, context):

    rt = {'template': self.t, 'files_id': self.files.store(context), 'environment': self.env.env_as_dict()}
    if (self.id is None):
        new_rt = template_object.RawTemplate.create(context, rt)
        self.id = new_rt.id
    else:
        template_object.RawTemplate.update_by_id(context, self.id, rt)
    return self.id
