Exemplo n.º 1
0
def get(id):
  try:
    return str(Foo.get(id))
  except Exception, e:
    print e
Exemplo n.º 2
0
def create():
  try:
    new_foo = Foo.create(random.randrange(0,100))
    return "Created successfully! \n" + str(new_foo)
  except Exception, e:
    print e