def process_view(self, request, view_func, view_args, view_kwargs):
<EOL>view_keys = list(VIEW_METHOD_DATA.keys())<EOL>for key in view_keys:<EOL><INDENT>del VIEW_METHOD_DATA[key]<EOL><DEDENT>self.view_data = {}<EOL>try:<EOL><INDENT>cbv = view_func.view_class<EOL><DEDENT>except AttributeError:<EOL><INDENT>cbv = False<EOL><DEDENT>if cbv:<EOL><INDENT>self.view_data['<STR_LIT>'] = True<EOL>klass = view_func.view_class<EOL>self.view_data['<STR_LIT>'] = [base.__name__ for base in inspect.getmro(klass)]<EOL>for member in inspect.getmembers(view_func.view_class):<EOL><INDENT>if member[<NUM_LIT:0>] in VIEW_METHOD_WHITEIST and member[<NUM_LIT:0>] not in PATCHED_METHODS[klass]:<EOL><INDENT>decorate_method(klass, member[<NUM_LIT:0>])<EOL>PATCHED_METHODS[klass].append(member[<NUM_LIT:0>])<EOL><DEDENT><DEDENT><DEDENT>
Collect data on Class-Based Views