a22bb5bbab5ee930f757d32924aa79989765def6,django/comicsite/templatetags/template_tags.py,InsertFileNode,render,#InsertFileNode#Any#,340

Before Change


        
        filename_or_var = self.args["file"]
        if context["request"].GET.has_key(filename_or_var):  // filename_or_var was given as url param so it was a var
            filename = context["request"].GET[filename_or_var] // use url param value as the file to load 
        else:
            filename = filename_or_var  
                        

After Change


        // context["request"].GET contains a queryDict of all url parameters.
        
        filename_raw = self.args["file"]        
        filename_clean = self.substitute(filename_raw,context["request"].GET.items())
                 
        project_name = context.page.comicsite.short_name
        filename = path.join(settings.DROPBOX_ROOT,project_name,filename_clean)                    
        
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: comic/grand-challenge.org
Commit Name: a22bb5bbab5ee930f757d32924aa79989765def6
Time: 2013-01-14
Author: w.s.kerkstra@gmail.com
File Name: django/comicsite/templatetags/template_tags.py
Class Name: InsertFileNode
Method Name: render


Project Name: comic/grand-challenge.org
Commit Name: e34dbfeaca83d9a4da09428f6c70fdc51b080916
Time: 2013-01-14
Author: w.s.kerkstra@gmail.com
File Name: django/comicsite/templatetags/template_tags.py
Class Name: InsertFileNode
Method Name: render


Project Name: aliyun/aliyun-odps-python-sdk
Commit Name: 98f7bac81b00256bc31e66aab2d7752bc320e67c
Time: 2017-08-03
Author: xuye.qin@alibaba-inc.com
File Name: odps/df/backends/optimize/utils.py
Class Name:
Method Name: copy_sequence


Project Name: aliyun/aliyun-odps-python-sdk
Commit Name: 98f7bac81b00256bc31e66aab2d7752bc320e67c
Time: 2017-08-03
Author: xuye.qin@alibaba-inc.com
File Name: odps/df/backends/optimize/utils.py
Class Name:
Method Name: change_input