Did I find the right examples for you? yes no

All Samples(36)  |  Call(18)  |  Derive(0)  |  Import(18)

        def color_style():
    style = color.color_style()
    if color.supports_color():
        style.INFO = termcolors.make_style(fg='green')
        style.WARN = termcolors.make_style(fg='yellow')
        style.BOLD = termcolors.make_style(opts=('bold',))
        style.URL = termcolors.make_style(fg='green', opts=('bold',))
        style.MODULE = termcolors.make_style(fg='yellow')
        style.MODULE_NAME = termcolors.make_style(opts=('bold',))
        style.URL_NAME = termcolors.make_style(fg='red')
    return style
        


src/d/j/django-gheat-HEAD/external/django-extensions/django_extensions/management/commands/show_urls.py   django-gheat(Download)
    from django.contrib.admin.views.doc import extract_views_from_urlpatterns, simplify_regex
 
from django_extensions.management.color import color_style
 
class Command(BaseCommand):
    def handle(self, *args, **options):
        if args:
            appname, = args
 
        style = color_style()

src/h/u/hue-HEAD/desktop/core/ext-py/django-extensions-0.5/django_extensions/management/commands/show_urls.py   hue(Download)
    from django.contrib.admin.views.doc import simplify_regex
 
from django_extensions.management.color import color_style
 
def extract_views_from_urlpatterns(urlpatterns, base=''):
    def handle(self, *args, **options):
        if args:
            appname, = args
 
        style = color_style()

src/h/o/hortonworks-sandbox-HEAD/desktop/core/ext-py/django-extensions-0.5/django_extensions/management/commands/show_urls.py   hortonworks-sandbox(Download)
    from django.contrib.admin.views.doc import simplify_regex
 
from django_extensions.management.color import color_style
 
def extract_views_from_urlpatterns(urlpatterns, base=''):
    def handle(self, *args, **options):
        if args:
            appname, = args
 
        style = color_style()

src/r/o/rolf-HEAD/ve/lib/python2.7/site-packages/django_extensions/management/commands/show_urls.py   rolf(Download)
import re
 
from django_extensions.management.color import color_style
 
 
    def handle(self, *args, **options):
        if args:
            appname, = args
 
        style = color_style()

src/a/n/antisocial-HEAD/ve/lib/python2.7/site-packages/django_extensions/management/commands/show_urls.py   antisocial(Download)
import re
 
from django_extensions.management.color import color_style
 
 
    def handle(self, *args, **options):
        if args:
            appname, = args
 
        style = color_style()

src/o/h/oh-mainline-HEAD/vendor/packages/django-extensions/django_extensions/management/commands/show_urls.py   oh-mainline(Download)
import re
 
from django_extensions.management.color import color_style
 
 
    def handle(self, *args, **options):
        if args:
            appname, = args
 
        style = color_style()

src/c/y/cyder-HEAD/vendor-local/src/django-extensions/django_extensions/management/commands/show_urls.py   cyder(Download)
import re
 
from django_extensions.management.color import color_style
 
 
    def handle(self, *args, **options):
        if args:
            appname, = args
 
        style = color_style()

src/p/o/popcorn_maker-HEAD/vendor-local/lib/python/django_extensions/management/commands/show_urls.py   popcorn_maker(Download)
import re
 
from django_extensions.management.color import color_style
 
 
    def handle(self, *args, **options):
        if args:
            appname, = args
 
        style = color_style()

src/i/n/inventory-HEAD/vendor-local/src/django-extensions/django_extensions/management/commands/show_urls.py   inventory(Download)
import re
 
from django_extensions.management.color import color_style
 
 
    def handle(self, *args, **options):
        if args:
            appname, = args
 
        style = color_style()

src/m/o/mozilla_inventory-HEAD/vendor-local/src/django-extensions/django_extensions/management/commands/show_urls.py   mozilla_inventory(Download)
import re
 
from django_extensions.management.color import color_style
 
 
    def handle(self, *args, **options):
        if args:
            appname, = args
 
        style = color_style()

  1 | 2  Next