Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(3)  |  Derive(0)  |  Import(3)

src/i/n/indextank-service-HEAD/storefront/templatetags/mixpanel.py   indextank-service(Download)
from django.utils import simplejson
 
from templatetags.utils import is_internal_ip, disable_html, get_identity, get_required_setting
 
 
 
        html = TRACKING_CODE % {'token': self.token, 'commands': " ".join(commands)}
        if is_internal_ip(context, 'MIXPANEL'):
            html = disable_html(html, 'Mixpanel')
        return html

src/i/n/indextank-service-HEAD/storefront/templatetags/clicky.py   indextank-service(Download)
from django.utils import simplejson
 
from templatetags.utils import get_identity, is_internal_ip, disable_html, \
        get_required_setting
 
        html = TRACKING_CODE % {'site_id': self.site_id,
                'custom': simplejson.dumps(custom)}
        if is_internal_ip(context, 'CLICKY'):
            html = disable_html(html, 'Clicky')
        return html

src/i/n/indextank-service-HEAD/storefront/templatetags/google_analytics.py   indextank-service(Download)
from django.template import Library, Node, TemplateSyntaxError
 
from templatetags.utils import is_internal_ip, disable_html, get_required_setting
 
SCOPE_VISITOR = 1
    def render(self, context):
        commands = self._get_custom_var_commands(context)
        html = SETUP_CODE % {'property_id': self.property_id,
                'commands': " ".join(commands)}
        if is_internal_ip(context, 'GOOGLE_ANALYTICS'):