#NEWLINE# def get( self ) : #NEWLINE# #INDENT# form = PermissionRequestsForm ( self . request . arguments ) #NEWLINE# form . status . choices = ( [ ( '' , '' ) ] + [ ( k , k ) for k in REQUEST_STATUS_CHOICES ] ) #NEWLINE# if ( not form . validate ( ) ) : #NEWLINE# #INDENT# alerts = self . get_form_alerts ( form . errors ) #NEWLINE# request_tuple = None #NEWLINE# total = 0 #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# alerts = [ ] #NEWLINE# ( request_tuple , total ) = permissions . get_requests_by_owner ( self . session , self . current_user , status = form . status . data , limit = form . limit . data , offset = form . offset . data ) #NEWLINE# #UNINDENT# return self . render ( 'permission-requests.html' , form = form , request_tuple = request_tuple , alerts = alerts , total = total , statuses = REQUEST_STATUS_CHOICES )