heh.. of course.. replace 'stck' with 'myKind'.. but I'm sure you could figure that out.
On Sat, Mar 6, 2010 at 12:18 AM, Eli Jones <[email protected]> wrote: > I'm not clear on what problems you had with exporting to csv.. (you can > also do a bulkloader --dump to just dump everything.. but that's really a > backup that can just be --restore(d) to another app or to your same app) > > to export one of my kinds to .csv.. I just create a py file containing > this: > > # myKindExporter.py > from google.appengine.ext import db > from google.appengine.tools import bulkloader > > class myKind(db.Model): > ID = IntegerProperty() > step = IntegerProperty() > thing = FloatProperty() > > class myKindExporter(bulkloader.Exporter): > def __init__(self): > bulkloader.Exporter.__init__(self, 'stck', > [('__key__',str,None), > ('ID',int, None), > ('step',int,None), > ('thing',float,None) > ]) > exporters = [myKindExporter] > > Then I run this command (myApp folder must be where your app.yaml is): > > appcfg.py download_data path/to/myApp --filename=myKind.csv > --config_file=path/to/myKind.py --kind=myKind > > If you want more exploration on Bulk Exporting, go here (always read Nick > Johnson's blog for AppEngine illumination): > > > http://blog.notdot.net/search?cref=http://blog.notdot.net/cse.xml&cof=FORID:11&ie=UTF-8&q=Advanced+Bulk+Loading&sa.x=0&sa.y=0&sa=Search&siteurl=blog.notdot.net/ > > There are fancier things you can do... but the above is your starting > point. > > > On Fri, Mar 5, 2010 at 7:03 PM, pkhoosh <[email protected]> wrote: > >> Thanks Robert! >> Ultimately, though, I think the best solution is for me to write a >> data exporter to get a dump of a data store as a CSV. I'm a bit >> relucant because I was not successful with a data upload loader and >> the Google Group didn't provide that much support and advice. >> >> On Mar 5, 1:47 pm, Robert Kluin <[email protected]> wrote: >> > I know you can by adding "&limit=50" to the URL, I think it works up >> > to 200. I have not found a button or field to enter the limit. >> > >> > Robert >> > >> > On Fri, Mar 5, 2010 at 2:43 PM, pkhoosh <[email protected]> wrote: >> > > Is it possible to view more than 20 items at a time in the DataStore >> > > Viewer on the Dashboard? >> > >> > > thanks, >> > > pete >> > >> > > -- >> > > You received this message because you are subscribed to the Google >> Groups "Google App Engine" group. >> > > To post to this group, send email to >> [email protected]. >> > > To unsubscribe from this group, send email to >> [email protected]<google-appengine%[email protected]> >> . >> > > For more options, visit this group athttp:// >> groups.google.com/group/google-appengine?hl=en. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Google App Engine" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]<google-appengine%[email protected]> >> . >> For more options, visit this group at >> http://groups.google.com/group/google-appengine?hl=en. >> >> > -- You received this message because you are subscribed to the Google Groups "Google App Engine" 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/google-appengine?hl=en.
