On Friday, October 18, 2013 7:50:43 AM UTC-7, ranjith wrote: > > Thanks. But those callbacks are for insertion and deletion of records in a > table. I want a *callback for the creation of a table.* > > How often is a table created? Your original message in this thread referred to the auth table, which pretty much is just created once, right?
If this is the case, could you use the web2py shell, or even the database engines shell? For out-of-the-box web2py, that's the sqlite command line tool, which I use quite a bit for ad hoc queries on the data I'm logging with my web2py app. The admin page of the app's site also allows you to add new entries to a table, and you could turn your site on only for localhost, add the entries, and then make the site visible to your audience. But if "bulk loading" means you've got a lot of entries, than a script run from the shell seems like the easy way to do this. (sqlite's version of backing up is essentially a way to generate such a script which would then be used to rereate the DB and repopulate it) /dps > > On Fri, Oct 18, 2013 at 6:36 PM, 黄祥 <steve.van...@gmail.com > <javascript:>>wrote: > >> yes, can, please do with before insert or after insert and please read >> the book on dal chapter in before and after callback sub chapter >> >> ref: >> >> http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#before-and-after-callbacks >> >> and for the example you can see in this forum >> https://groups.google.com/forum/#!msg/web2py/M4_5THMHzH0/r9aXH-k8eJQJ >> >> best regards, >> stifan >> -- >> Resources: >> - http://web2py.com >> - http://web2py.com/book (Documentation) >> - http://github.com/web2py/web2py (Source code) >> - https://code.google.com/p/web2py/issues/list (Report Issues) >> --- >> You received this message because you are subscribed to a topic in the >> Google Groups "web2py-users" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/web2py/_gvWtKM7NPY/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> web2py+un...@googlegroups.com <javascript:>. >> For more options, visit https://groups.google.com/groups/opt_out. >> > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.