Created
October 19, 2013 20:34
-
-
Save jrm2k6/7061188 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -> post = Post(form.title.data, form.content.data, datetime.now(), form.category.data, form.author.data) | |
| (Pdb) form.content.data | |
| u"<pre class=prettify>\r\n@app.route('/delete/<model_name>/<int:_id>', methods=['POST'])\r\n@requires_auth\r\ndef delete_resource(model_name, _id):\r\n</pre>" | |
| (Pdb) c | |
| result = | |
| @app.route('/delete//', methods=['POST']) | |
| @requires_auth | |
| def delete_resource(model_name, _id): |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment