Example #1
0
 def getRestaurantFromID(self,id):
      rm = RestaurantModel()
      for r in RestaurantModel.all() :
          if r.key().id() == id :
              rm = r
      
      return rm
Example #2
0
            def getRestaurants(self):
             out = {}
             r = RestaurantModel()
 
             for r in RestaurantModel.all() :
                     if r.active :
                         out[r.key().id()] = r.name
                     
             return out
Example #3
0
            def getLatestRestaurants(self):
             out = {}
             #r = RestaurantModel()
 
             for r in RestaurantModel.all() :
                     if r.active :
                         details = r.city + ' , ' + r.state
                         out[r.name.title()] = details.title()
                     
             return out