Beispiel #1
0
# it will create a Customer Kind, and add one entity

#from google.appengine.ext import db
from model_people import Customer

customer1 = Customer(last_name="Wolber",first_name="David", city = "San Francisco")
customer1.put()

Beispiel #2
0
from model_people import Customer

cs = Customer()

print 'Content-Type: text/html'
for c in cs.all():
    print str(c.key()) + '<br>'
    print c.last_name + '<br><br>'

print c.all().count()