Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use POST/GET methods to Manipulate Storage, starting with web forms. Examples within #58

Closed
iontom opened this issue May 2, 2014 · 1 comment

Comments

@iontom
Copy link
Member

iontom commented May 2, 2014

Making myself an issue so I have a place to keep references

Using this lib as reference
https://github.com/srackham/bottle-mongodb-example

Craft a POST call similar to:
https://github.com/srackham/bottle-mongodb-example/blob/master/controllers.py
Line 34:
@post('/create')
def create():

Create form(s) that call the POST function
https://github.com/srackham/bottle-mongodb-example/blob/master/views/list.mako
<%def name="create_form()">

Use these post updates to make changes in the data. Editing a user profile might be the easiest first example.

Also, IMPORTANT, find ways to make routine POST calls occur at some interval without forms involved, possibly tied to AJAX calls. This is how we will store game state data (per each instance too) [I may need help on AJAX stuff]

@7yl4r
Copy link
Contributor

7yl4r commented Jul 11, 2014

I think @martinkronberg has this working now with user creation, right? I just created #73 specific to user-profile edits.

@7yl4r 7yl4r closed this as completed Jul 11, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants