我的代码
class PointHandlerDynamic(BaseHandler):
model = Points
fields = ('Point_ID', 'X_Coor', 'Y_Coor', 'Seat_ID_ID')
def Seat_ID_ID(self, instance):
return instance.Sear_ID.ID
def read(self, name=None):
cursor = connection.cursor()
//page=1, offset 4000
cursor.execute("select Point_ID,Seat_ID,X_Coor,Y_Coor,Seats.Color,Seats.Caption,Seats.Tier,Seats.Area,Seats.Booked,Prices.Price from Points,Seats,Prices where Seat_ID = Seats.ID and Seats.Color = Prices.Color")
transaction.commit_unless_managed()
row = cursor.fetchall()
return row
我想当ajax调用handler.py时,ajax会增加'page'。