Ejemplo n.º 1
0
  def post(self):

    form = AddLotForm(self.request.POST)

    if not form.validate():
      return self.response.write("Please enter all fields")


    newlot = lot.LOT(name = form.name.data)
    newlot.playerWins = { } #empty dictionary
    newlot.put()
    lot.lotAddedOrRemoved()

    self.redirect('/')
Ejemplo n.º 2
0
 def post(self):
     form = AddLotForm(self.request.POST)
     
     if not form.validate():
         return self.response.write("Please enter all fields")
     
     newlot = lot.LOT(name = form.name.data)
     newlot.playerRating = { } #empty dictionary
     newlot.playerMean = { } #empty dictionary
     newlot.playerStandardDeviation = { } #empty dictionary
     newlot.customProperties = { } #empty dictionary
     newlot.put()
     lot.lotAddedOrRemoved()
     
     self.redirect('/')