3ff4adb429f8eaae4e96187851ed74758eec6559,django/comicsite/middleware/project.py,ProjectMiddleware,process_request,#ProjectMiddleware#Any#,11

Before Change


    
        
                    
        resolution = resolve(request.path)
                
        request = self.add_project_pk(request)
        
        if resolution.kwargs.has_key("site_short_name"):

After Change


                
        
         
        try:           
            request = self.add_project_name(request)                        
        except Resolver404:            
            request.projectname = settings.MAIN_PROJECT_NAME
        
        try:
            request = self.add_project_pk(request)
        except Resolver404:
            request.project_pk = -1
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: comic/grand-challenge.org
Commit Name: 3ff4adb429f8eaae4e96187851ed74758eec6559
Time: 2014-02-03
Author: w.s.kerkstra@gmail.com
File Name: django/comicsite/middleware/project.py
Class Name: ProjectMiddleware
Method Name: process_request


Project Name: comic/grand-challenge.org
Commit Name: b64e4f03d56888fb8098d517a55d082e38d6820b
Time: 2014-02-03
Author: w.s.kerkstra@gmail.com
File Name: django/comicsite/middleware/project.py
Class Name: ProjectMiddleware
Method Name: process_request


Project Name: pantsbuild/pants
Commit Name: 0a6edd21b9ab29a1f733b90ff15092e7a03f665d
Time: 2014-01-15
Author: jsirois@twitter.com
File Name: src/python/twitter/pants/targets/python_target.py
Class Name: PythonTarget
Method Name: __init__