b64e4f03d56888fb8098d517a55d082e38d6820b,django/comicsite/middleware/project.py,ProjectMiddleware,process_request,#ProjectMiddleware#Any#,11
Before Change
if resolution.kwargs.has_key("site_short_name"):
projectname = resolution.kwargs["site_short_name"]
elif resolution.kwargs.has_key("project_name"):
projectname = resolution.kwargs["project_name"]
else:
projectname = settings.MAIN_PROJECT_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
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
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: acoular/acoular
Commit Name: 8665969f51679c3795063f142f135a29e3c9661f
Time: 2017-08-10
Author: adam.kujawski@campus.tu-berlin.de
File Name: acoular/h5cache.py
Class Name: H5cache_class
Method Name: get_cache
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