Did I find the right examples for you? yes no

All Samples(29)  |  Call(20)  |  Derive(0)  |  Import(9)

src/d/j/django-wpadmin-1.6.1/wpadmin/menu/utils.py   django-wpadmin(Download)
from django.core.urlresolvers import reverse
 
from wpadmin.utils import (
    get_wpadmin_settings, get_admin_site, get_admin_site_name)
 
        """
        app_label = model._meta.app_label
        return reverse('%s:app_list' % get_admin_site_name(context),
                       args=(app_label,))
 
        """
        app_label = model._meta.app_label
        return reverse('%s:%s_%s_changelist' % (get_admin_site_name(context),
                                                app_label,
                                                model.__name__.lower()))
        """
        app_label = model._meta.app_label
        return reverse('%s:%s_%s_add' % (get_admin_site_name(context),
                                         app_label,
                                         model.__name__.lower()))

src/d/j/django-wpadmin-HEAD/wpadmin/menu/utils.py   django-wpadmin(Download)
from django.core.urlresolvers import reverse
 
from wpadmin.utils import (
    get_wpadmin_settings, get_admin_site, get_admin_site_name)
 
        """
        app_label = model._meta.app_label
        return reverse('%s:app_list' % get_admin_site_name(context),
                       args=(app_label,))
 
        """
        app_label = model._meta.app_label
        return reverse('%s:%s_%s_changelist' % (get_admin_site_name(context),
                                                app_label,
                                                model.__name__.lower()))
        """
        app_label = model._meta.app_label
        return reverse('%s:%s_%s_add' % (get_admin_site_name(context),
                                         app_label,
                                         model.__name__.lower()))

src/d/j/django-wpadmin-1.6.1/wpadmin/templatetags/wpadmin_tags.py   django-wpadmin(Download)
from django import template
from django.utils.translation import ugettext_lazy as _
 
from wpadmin.utils import (
    get_admin_site_name, get_wpadmin_settings, are_breadcrumbs_enabled)
    def render(self, context):
        context['wpadmin_are_breadcrumbs_enabled'] = are_breadcrumbs_enabled(
            get_admin_site_name(context))
        return ''
 

src/d/j/django-wpadmin-HEAD/wpadmin/templatetags/wpadmin_tags.py   django-wpadmin(Download)
from django import template
from django.utils.translation import ugettext_lazy as _
 
from wpadmin.utils import (
    get_admin_site_name, get_wpadmin_settings, are_breadcrumbs_enabled)
    def render(self, context):
        context['wpadmin_are_breadcrumbs_enabled'] = are_breadcrumbs_enabled(
            get_admin_site_name(context))
        return ''
 

src/d/j/django-wpadmin-1.6.1/wpadmin/templatetags/wpadmin_menu_tags.py   django-wpadmin(Download)
from django import template
 
from wpadmin.utils import get_admin_site_name
from wpadmin.menu.utils import get_menu
 
    def render(self, context):
        menu = get_menu(self.menu_name, get_admin_site_name(context))
        if menu and menu.is_user_allowed(context.get('request').user):
            enabled = True
        else:
def wpadmin_render_top_menu(context):
    menu = get_menu('top', get_admin_site_name(context))
    if not menu:
        from wpadmin.menu.menus import DefaultTopMenu
        menu = DefaultTopMenu()
def wpadmin_render_left_menu(context):
    menu = get_menu('left', get_admin_site_name(context))
    if menu:
        menu.init_with_context(context)
        context.update({

src/d/j/django-wpadmin-HEAD/wpadmin/templatetags/wpadmin_menu_tags.py   django-wpadmin(Download)
from django import template
 
from wpadmin.utils import get_admin_site_name
from wpadmin.menu.utils import get_menu
 
    def render(self, context):
        menu = get_menu(self.menu_name, get_admin_site_name(context))
        if menu and menu.is_user_allowed(context.get('request').user):
            enabled = True
        else:
def wpadmin_render_top_menu(context):
    menu = get_menu('top', get_admin_site_name(context))
    if not menu:
        from wpadmin.menu.menus import DefaultTopMenu
        menu = DefaultTopMenu()
def wpadmin_render_left_menu(context):
    menu = get_menu('left', get_admin_site_name(context))
    if menu:
        menu.init_with_context(context)
        context.update({

src/d/j/django-wpadmin-1.6.1/wpadmin/menu/menus.py   django-wpadmin(Download)
from django.utils.translation import ugettext_lazy as _
from django.core.urlresolvers import reverse
from django.conf import settings
 
from wpadmin.utils import get_admin_site_name
    def init_with_context(self, context):
 
        admin_site_name = get_admin_site_name(context)
 
        if 'django.contrib.sites' in settings.INSTALLED_APPS:
    def init_with_context(self, context):
 
        if self.is_user_allowed(context.get('request').user):
 
            admin_site_name = get_admin_site_name(context)

src/d/j/django-wpadmin-HEAD/wpadmin/menu/menus.py   django-wpadmin(Download)
from django.utils.translation import ugettext_lazy as _
from django.core.urlresolvers import reverse
from django.conf import settings
 
from wpadmin.utils import get_admin_site_name
    def init_with_context(self, context):
 
        admin_site_name = get_admin_site_name(context)
 
        if 'django.contrib.sites' in settings.INSTALLED_APPS:
    def init_with_context(self, context):
 
        if self.is_user_allowed(context.get('request').user):
 
            admin_site_name = get_admin_site_name(context)

src/d/j/django-wpadmin-HEAD/test_project/test_project/wp.py   django-wpadmin(Download)
from django.utils.translation import ugettext_lazy as _
from django.core.urlresolvers import reverse
from django.conf import settings
 
from wpadmin.utils import get_admin_site_name
    def init_with_context(self, context):
 
        admin_site_name = get_admin_site_name(context)
 
        if 'django.contrib.sites' in settings.INSTALLED_APPS:
    def init_with_context(self, context):
 
        if self.is_user_allowed(context.get('request').user):
 
            admin_site_name = get_admin_site_name(context)