Did I find the right examples for you? yes no

All Samples(7)  |  Call(4)  |  Derive(0)  |  Import(3)

        def monospace_format(text):
    style="font-family:%s;" % MONOSPACE_FONTS
    return mark_safe('%s' % (style, text))
        


src/c/o/confine-controller-0.10.5/controller/apps/maintenance/admin.py   confine-controller(Download)
from controller.admin.utils import (get_admin_link, colored, admin_link, wrap_admin_view,
    action_to_view, display_timesince)
from controller.utils.html import monospace_format, MONOSPACE_FONTS
from nodes.admin import NodeAdmin
from nodes.models import Node
    def mono_stdout(self, instance):
        return monospace_format(instance.stdout)
    mono_stdout.short_description = 'stdout'
 
    def mono_stderr(self, instance):
        return monospace_format(instance.stderr)

src/c/o/confine-controller-0.10.5/controller/apps/nodes/admin.py   confine-controller(Download)
from controller.core.exceptions import InvalidMgmtAddress
from controller.models.utils import get_help_text
from controller.utils.html import monospace_format
from controller.utils.singletons.admin import SingletonModelAdmin
from permissions.admin import PermissionModelAdmin, PermissionTabularInline
            req_url = reverse('admin:nodes_node_request-cert', args=[node.pk])
            return mark_safe("<a href='%s'>Request certificate</a>" % req_url)
        return monospace_format(node.cert)
    display_cert.short_description = 'Certificate'
    display_cert.help_text = get_help_text(Node, 'cert')

src/c/o/confine-controller-0.10.5/controller/apps/firmware/admin.py   confine-controller(Download)
from controller.admin.utils import (get_modeladmin, get_admin_link, insertattr,
    colored, wrap_admin_view)
from controller.utils.html import monospace_format
from controller.utils.singletons.admin import SingletonModelAdmin
from nodes.models import Node
    def monospace_content(self, instance):
        return monospace_format(instance.content)
    monospace_content.short_description = 'Content'