Example #1
0
def delete_all_dems():
    while 1:
        print 'Deleting another 500'
        try:
            db.delete(DEMDataFile.all().fetch(500))
        except:
            print 'Caught error, continuing...'
Example #2
0
def do_all_copy_and_delete_dem(count):
    earray = DEMDataFile.all().fetch(count)
    if len(earray)==0:
        return
    for e in earray:
        copy_and_delete_dem(e)