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

All Samples(8)  |  Call(4)  |  Derive(0)  |  Import(4)

src/d/j/django-oscar-HEAD/oscar/templatetags/display_tags.py   django-oscar(Download)
from django import template
from oscar.core.loading import feature_hidden
 
register = template.Library()
 
    def render(self, context):
        if not feature_hidden(self.feature_name):
            output = self.nodelist.render(context)
            return output
        else:

src/d/j/django-oscar-HEAD/oscar/core/application.py   django-oscar(Download)
import six
 
from oscar.core.loading import feature_hidden
from oscar.views.decorators import permissions_required
 
        # Test if this the URLs in the Application instance should be
        # available.  If the feature is hidden then we don't include the URLs.
        if feature_hidden(self.hidable_feature_name):
            return []
 

src/d/j/django-oscar-0.7/oscar/templatetags/display_tags.py   django-oscar(Download)
from django import template
from oscar.core.loading import feature_hidden
 
register = template.Library()
 
    def render(self, context):
        if not feature_hidden(self.feature_name):
            output = self.nodelist.render(context)
            return output
        else:

src/d/j/django-oscar-0.7/oscar/core/application.py   django-oscar(Download)
import six
 
from django.conf.urls import patterns
 
from oscar.core.loading import feature_hidden
        # Test if this the URLs in the Application instance should be
        # available.  If the feature is hidden then we don't include the URLs.
        if feature_hidden(self.hidable_feature_name):
            return patterns('')