def _create_me(self): user = users.get_current_user() if user: deck = Deck(name=request.params.get('deck_name', ''), created_by = user, last_edited_by = user) deck.put() deck.id_base30 = h.make_identifier(deck.key().id()) deck.put() redirect_to(h.url_for(controller='Deck', action='view', deck_id=deck.id_base30)) else: raise 'not logged in'