<s> from grouper . fe . util import GrouperHandler <EOL> from grouper . model_soup import Request <EOL> class UserRequests ( GrouperHandler ) : <EOL> """<STR_LIT>""" <EOL> def get ( self ) : <EOL> offset = int ( self . get_argument ( "<STR_LIT>" , <NUM_LIT:0> ) ) <EOL> limit = int ( self . get_argument ( "<STR_LIT>" , <NUM_LIT:100> ) ) <EOL> if limit > <NUM_LIT> : <EOL> limit = <NUM_LIT> <EOL> requests = self . current_user . my_requests_aggregate ( ) . order_by ( Request . requested_at . desc ( ) ) <EOL> total = requests . count ( ) <EOL> requests = requests . offset ( offset ) . limit ( limit ) <EOL> self . render ( "<STR_LIT>" , requests = requests , offset = offset , limit = limit , <EOL> total = total ) </s>
