Any chance you could add populate to svn?

On Nov 22, 9:19 am, mdipierro <[email protected]> wrote:
> With random data or with your own data?
>
> 1) With random data:
>
> from gluon.contrib.populate import populate
> populate(db.table,1000) # will fill db.table with 1000 records
>
> 2) With your own data
> I depends on where the data is. You can create a controller action
> that loops and
>    db.table.insert(field='value',...)
>
> On Nov 22, 3:47 am, harshit agrawal <[email protected]>
> wrote:
>
> > sir,
> > I am populating my database by filling forms. But I don't want to fill
> > long forms again and again. Is there a way to populate the database in
> > one shot . If Yes, please explain...
>
> > Thank You
> > waiting for response
> > harshit
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" 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/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to