Exemple #1
0
  def post(self):
    """Store a new gift transaction in the datastore based on the POST data."""
    if not self._isValidSignature():
      return

    giftTransaction = GiftTransaction()
    giftTransaction.sender_id = self.request.get('sender_id')
    giftTransaction.receiver_id = self.request.get('receiver_id')
    giftTransaction.gift = Gift.get(self.request.get('gift_key')).key()
    giftTransaction.put()
    def post(self):
        """Store a new gift transaction in the datastore based on the POST data."""
        if not self._isValidSignature():
            return

        giftTransaction = GiftTransaction()
        giftTransaction.sender_id = self.request.get('sender_id')
        giftTransaction.receiver_id = self.request.get('receiver_id')
        giftTransaction.gift = Gift.get(self.request.get('gift_key')).key()
        giftTransaction.put()