@ -92,6 +92,10 @@ class BuyableItemHandler(BaseHandler):
amount=getInt(request.data,'amount',1)
ifamount<1:
returnrc.BAD_REQUEST
ifamount>30:
ret=rc.BAD_REQUEST
ret.write("\nYou are trying to buy more than 30 items at once. This is not permitted. If you think it should, mail the admins / fix this in the handlers.py\n");
@ -145,6 +149,11 @@ class BuyableItemHandler(BaseHandler):
ret.write("\nThe items/deposists parameter have to be a list.\n")
returnret
iflen(itemList)>30:
ret=rc.BAD_REQUEST
ret.write("\nYou are trying to buy more than 30 items at once. This is not permitted. If you think it should, mail the admins / fix this in the handlers.py\n");
returnret
iflen(itemList)==0:
ret=rc.BAD_REQUEST
ret.write("\nYour request contains no items/deposits.\n")
@ -251,9 +260,9 @@ class TransactionTransactHandler(BaseHandler):