Yes, you can procedurally do stuff with the database API.  For
example, I have done it to add test users to a dummy database.  Create
a database object using web.database() and then query, insert, etc.

On Jun 8, 6:30 pm, dbstraight <[email protected]> wrote:
>
> Like, instead of of if __name__ == "__main__": app.run().... if
> __name__ == "__main__": db.insert('users'....)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to