def post(self): try: BaseHandler.initFromRequest(self, self.request) itemUpdates = self.getParam('interactions').split(',') for update in itemUpdates: itemWithUpdate = update.split(':') itemId = int(itemWithUpdate[0]) statType = int(itemWithUpdate[1]) spot = int(itemWithUpdate[2]) BaseHandler.updateItem(self, self.getParam('publisherUrl'), itemId=itemId, statType=statType, spot=spot) except Exception: BaseHandler.logException(self) BaseHandler.writeResponse(self)