我对任务问题有疑问..
这是我的taskqueue的代码:
taskqueue.add(url='/taskaddroom', params={'code': self.request.get('code'),
'room_type': self.request.get('room_type'),
'start_date': self.request.get('start_date'),
'end_date': self.request.get('end_date'),
'net_price': self.request.get('net_price'),
'num_person': self.request.get('num_person'),
'max_adult': self.request.get('max_adult'),
'max_children': self.request.get('room_type'),
'num_slots': self.request.get('num_slots')})
这是我的处理程序的代码:
class TaskAddRoom(webapp2.RequestHandler):
def post(self):
code = self.request.get('code'),
room_type = self.request.get('room_type'),
start_date = self.request.get('start_date'),
end_date = self.request.get('end_date'),
net_price = self.request.get('net_price'),
num_person = self.request.get('num_person'),
max_adult = self.request.get('max_adult'),
max_children = self.request.get('max_children')
slots = self.request.get('num_slots')
for a in slots:
add = AddRooms(code, room_type, start_date, end_date, net_price, num_person, max_adult, max_children)
result = add.addrooms()
我的问题是TaskAddRooms类它不会工作..并且没有给我任何错误的迹象......
谢谢..