def _list_lists(self, api): """ Lists all shopping lists of current user """ current_user = User.getUser(self.user_email) query = ShoppingList.all() query.ancestor(current_user) if api is not None: all_lists = query.run() self._api_list_lists_(all_lists) else: template = self.jinja2_env.get_template('ang-base.html') template_values = { 'user_email': self.user_email } self.response.out.write(template.render(template_values))