def get(self,request,*args,**kwargs):
try:<EOL><INDENT>year = int(self.kwargs.get('<STR_LIT>'))<EOL><DEDENT>except (ValueError, TypeError):<EOL><INDENT>year = getIntFromGet(request,'<STR_LIT>')<EOL><DEDENT>if self.kwargs.get('<STR_LIT>'):<EOL><INDENT>try:<EOL><INDENT>month = int(self.kwargs.get('<STR_LIT>'))<EOL><DEDENT>except (ValueError, TypeError):<EOL><INDENT>try:<EOL><INDENT>month = list(month_name).index(self.kwargs.get('<STR_LIT>').title())<EOL><DEDENT>except (ValueError, TypeError):<EOL><INDENT>month = None<EOL><DEDENT><DEDENT><DEDENT>else:<EOL><INDENT>month = getIntFromGet(request, '<STR_LIT>')<EOL><DEDENT>try:<EOL><INDENT>event_id = int(self.kwargs.get('<STR_LIT>'))<EOL><DEDENT>except (ValueError, TypeError):<EOL><INDENT>event_id = getIntFromGet(request, '<STR_LIT>')<EOL><DEDENT>event = None<EOL>if event_id:<EOL><INDENT>try:<EOL><INDENT>event = Event.objects.get(id=event_id)<EOL><DEDENT>except ObjectDoesNotExist:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>kwargs.update({<EOL>'<STR_LIT>': year,<EOL>'<STR_LIT>': month,<EOL>'<STR_LIT>': getDateTimeFromGet(request,'<STR_LIT>'),<EOL>'<STR_LIT>': getDateTimeFromGet(request,'<STR_LIT>'),<EOL>'<STR_LIT>': request.GET.get('<STR_LIT>'),<EOL>'<STR_LIT>': event,<EOL>})<EOL>if kwargs.get('<STR_LIT>') not in EXPENSE_BASES.keys():<EOL><INDENT>kwargs['<STR_LIT>'] = '<STR_LIT>'<EOL><DEDENT>context = self.get_context_data(**kwargs)<EOL>return self.render_to_response(context)<EOL>
Pass any permissable GET data.  URL parameters override GET parameters