def post(self): disease_slugs = self.request.get_all("disease_slug") for slug in disease_slugs: pubs = Author.get_for_disease(slug, keys_only=True) for pub in pubs: pub.delete() self.redirect("/admin")
def get_authors(self, disease_slug): authors = Author.get_for_disease(disease_slug) for author in authors: author.publication_ids = [pub.pubmed_id for pub in author.publications] return authors