def post(self, gene): gene = Gene.gql("WHERE name = :1", gene).get() comment = Comment() comment.gene = gene.key() comment.body = self.request.get("comment") comment.user = UserData.current().user_id #users.get_current_user() comment.date = datetime.now() comment.put() self.out(gene=gene)