gaexperiment.py
def template_to_serve(self, original_template):
        """
        Returns the template to be served, based on the whitelist provided.
        If an invalid version is provided, the original page is served. This
        code is here to avoid having a change in the version GET variable and
        throwing an error on the browser.
        """
        if self.is_original_version:
            return original_template

        exp_param = self.get_vars[self.VARIATION_PARAM]
        if exp_param in self.whitelist:
            base, ext = original_template.split('.', 1)
            return '%s_%s.%s' % (base, exp_param, ext)

        return original_template

        Returns the template to be served, based on the whitelist provided.
        If an invalid version is provided, the original page is served. This
        code is here to avoid having a change in the version GET variable and
        throwing an error on the browser.
        
Returns the template to be served, based on the whitelist provided.
If an invalid version is provided, the original page is served. This
code is here to avoid having a change in the version GET variable and
throwing an error on the browser.
Returns the template to be served based on the whitelist provided . If an invalid version is provided the original page is served . This code is here to avoid having a change in the version GET variable and throwing an error on the browser .
def template_to_serve(self, original_template):
        if self.is_original_version:
            return original_template
        exp_param = self.get_vars[self.VARIATION_PARAM]
        if exp_param in self.whitelist:
            base, ext = original_template.split('.', 1)
            return '%s_%s.%s' % (base, exp_param, ext)
        return original_template
def template_to_serve ( self , original_template ) : if self . is_original_version : return original_template exp_param = self . get_vars [ self . VARIATION_PARAM ] if exp_param in self . whitelist : base , ext = original_template . split ( '.' , 1 ) return '%s_%s.%s' % ( base , exp_param , ext ) return original_template
Returns the template to be served, based on the whitelist provided.
Returns the template to be served based on the whitelist provided .
"""
        Returns the template to be served, based on the whitelist provided.
        If an invalid version is provided, the original page is served. This
        code is here to avoid having a change in the version GET variable and
        throwing an error on the browser.
        """
self
original_template