Did I find the right examples for you? yes no

All Samples(188)  |  Call(112)  |  Derive(0)  |  Import(76)

        def format_html_join(sep, format_string, args_generator):
    """
    A wrapper of format_html, for the common case of a group of arguments that
    need to be formatted using the same format string, and then joined using
    'sep'. 'sep' is also passed through conditional_escape.

    'args_generator' should be an iterator that returns the sequence of 'args'
    that will be passed to format_html.

    Example:

      format_html_join('\n', "
  • {0} {1}
  • ", ((u.first_name, u.last_name) for u in users)) """ return mark_safe(conditional_escape(sep).join( format_html(format_string, *tuple(args)) for args in args_generator))


    src/a/p/appscale-HEAD/AppServer/lib/django-1.5/django/forms/util.py   appscale(Download)
    from __future__ import unicode_literals
     
    from django.conf import settings
    from django.utils.html import format_html, format_html_join
    from django.utils.encoding import force_text, python_2_unicode_compatible
    
        The result is passed through 'mark_safe'.
        """
        return format_html_join('', ' {0}="{1}"', sorted(attrs.items()))
     
    @python_2_unicode_compatible
    
        def as_ul(self):
            if not self: return ''
            return format_html('<ul class="errorlist">{0}</ul>',
                               format_html_join('', '<li>{0}{1}</li>',
                                                ((k, force_text(v))
    
        def as_ul(self):
            if not self: return ''
            return format_html('<ul class="errorlist">{0}</ul>',
                               format_html_join('', '<li>{0}</li>',
                                                ((force_text(e),) for e in self)
    

    src/s/o/socorro-HEAD/webapp-django/vendor/lib/python/django/forms/util.py   socorro(Download)
    from __future__ import unicode_literals
     
    from django.conf import settings
    from django.utils.html import format_html, format_html_join
    from django.utils.encoding import force_text, python_2_unicode_compatible
    
        The result is passed through 'mark_safe'.
        """
        return format_html_join('', ' {0}="{1}"', sorted(attrs.items()))
     
    @python_2_unicode_compatible
    
        def as_ul(self):
            if not self: return ''
            return format_html('<ul class="errorlist">{0}</ul>',
                               format_html_join('', '<li>{0}{1}</li>',
                                                ((k, force_text(v))
    
        def as_ul(self):
            if not self: return ''
            return format_html('<ul class="errorlist">{0}</ul>',
                               format_html_join('', '<li>{0}</li>',
                                                ((force_text(e),) for e in self)
    

    src/a/n/antisocial-HEAD/ve/lib/python2.7/site-packages/django/forms/util.py   antisocial(Download)
    from __future__ import unicode_literals
     
    from django.conf import settings
    from django.utils.html import format_html, format_html_join
    from django.utils.encoding import force_text, python_2_unicode_compatible
    
        The result is passed through 'mark_safe'.
        """
        return format_html_join('', ' {0}="{1}"', sorted(attrs.items()))
     
    @python_2_unicode_compatible
    
        def as_ul(self):
            if not self: return ''
            return format_html('<ul class="errorlist">{0}</ul>',
                               format_html_join('', '<li>{0}{1}</li>',
                                                ((k, force_text(v))
    
        def as_ul(self):
            if not self: return ''
            return format_html('<ul class="errorlist">{0}</ul>',
                               format_html_join('', '<li>{0}</li>',
                                                ((force_text(e),) for e in self)
    

    src/r/o/rolf-HEAD/ve/lib/python2.7/site-packages/django/forms/util.py   rolf(Download)
    from __future__ import unicode_literals
     
    from django.conf import settings
    from django.utils.html import format_html, format_html_join
    from django.utils.encoding import force_text, python_2_unicode_compatible
    
        The result is passed through 'mark_safe'.
        """
        return format_html_join('', ' {0}="{1}"', sorted(attrs.items()))
     
    @python_2_unicode_compatible
    
        def as_ul(self):
            if not self: return ''
            return format_html('<ul class="errorlist">{0}</ul>',
                               format_html_join('', '<li>{0}{1}</li>',
                                                ((k, force_text(v))
    
        def as_ul(self):
            if not self: return ''
            return format_html('<ul class="errorlist">{0}</ul>',
                               format_html_join('', '<li>{0}</li>',
                                                ((force_text(e),) for e in self)
    

    src/g/o/google-app-engine-HEAD/lib/django-1.5/django/forms/util.py   google-app-engine(Download)
    from __future__ import unicode_literals
     
    from django.conf import settings
    from django.utils.html import format_html, format_html_join
    from django.utils.encoding import force_text, python_2_unicode_compatible
    
        The result is passed through 'mark_safe'.
        """
        return format_html_join('', ' {0}="{1}"', sorted(attrs.items()))
     
    @python_2_unicode_compatible
    
        def as_ul(self):
            if not self: return ''
            return format_html('<ul class="errorlist">{0}</ul>',
                               format_html_join('', '<li>{0}{1}</li>',
                                                ((k, force_text(v))
    
        def as_ul(self):
            if not self: return ''
            return format_html('<ul class="errorlist">{0}</ul>',
                               format_html_join('', '<li>{0}</li>',
                                                ((force_text(e),) for e in self)
    

    src/c/a/captain-HEAD/vendor/lib/python/django/forms/util.py   captain(Download)
    from __future__ import unicode_literals
     
    from django.conf import settings
    from django.utils.html import format_html, format_html_join
    from django.utils.encoding import force_text, python_2_unicode_compatible
    
        The result is passed through 'mark_safe'.
        """
        return format_html_join('', ' {0}="{1}"', sorted(attrs.items()))
     
    @python_2_unicode_compatible
    
        def as_ul(self):
            if not self: return ''
            return format_html('<ul class="errorlist">{0}</ul>',
                               format_html_join('', '<li>{0}{1}</li>',
                                                ((k, force_text(v))
    
        def as_ul(self):
            if not self: return ''
            return format_html('<ul class="errorlist">{0}</ul>',
                               format_html_join('', '<li>{0}</li>',
                                                ((force_text(e),) for e in self)
    

    src/p/l/playdoh-lib-HEAD/lib/python/django/forms/util.py   playdoh-lib(Download)
    from __future__ import unicode_literals
     
    from django.conf import settings
    from django.utils.html import format_html, format_html_join
    from django.utils.encoding import force_text, python_2_unicode_compatible
    
        The result is passed through 'mark_safe'.
        """
        return format_html_join('', ' {0}="{1}"', sorted(attrs.items()))
     
    @python_2_unicode_compatible
    
        def as_ul(self):
            if not self: return ''
            return format_html('<ul class="errorlist">{0}</ul>',
                               format_html_join('', '<li>{0}{1}</li>',
                                                ((k, force_text(v))
    
        def as_ul(self):
            if not self: return ''
            return format_html('<ul class="errorlist">{0}</ul>',
                               format_html_join('', '<li>{0}</li>',
                                                ((force_text(e),) for e in self)
    

    src/t/r/triaquae-HEAD/TriAquae/models/django/forms/util.py   triaquae(Download)
    from __future__ import unicode_literals
     
    from django.conf import settings
    from django.utils.html import format_html, format_html_join
    from django.utils.encoding import force_text, python_2_unicode_compatible
    
        The result is passed through 'mark_safe'.
        """
        return format_html_join('', ' {0}="{1}"', sorted(attrs.items()))
     
    @python_2_unicode_compatible
    
        def as_ul(self):
            if not self: return ''
            return format_html('<ul class="errorlist">{0}</ul>',
                               format_html_join('', '<li>{0}{1}</li>',
                                                ((k, force_text(v))
    
        def as_ul(self):
            if not self: return ''
            return format_html('<ul class="errorlist">{0}</ul>',
                               format_html_join('', '<li>{0}</li>',
                                                ((force_text(e),) for e in self)
    

    src/s/p/splunk-webframework-HEAD/contrib/django/django/forms/util.py   splunk-webframework(Download)
    from __future__ import unicode_literals
     
    from django.conf import settings
    from django.utils.html import format_html, format_html_join
    from django.utils.encoding import force_text, python_2_unicode_compatible
    
        The result is passed through 'mark_safe'.
        """
        return format_html_join('', ' {0}="{1}"', sorted(attrs.items()))
     
    @python_2_unicode_compatible
    
        def as_ul(self):
            if not self: return ''
            return format_html('<ul class="errorlist">{0}</ul>',
                               format_html_join('', '<li>{0}{1}</li>',
                                                ((k, force_text(v))
    
        def as_ul(self):
            if not self: return ''
            return format_html('<ul class="errorlist">{0}</ul>',
                               format_html_join('', '<li>{0}</li>',
                                                ((force_text(e),) for e in self)
    

    src/p/o/pourover-HEAD/buster/lib/django/forms/util.py   pourover(Download)
     
    from django.conf import settings
    from django.utils.html import format_html, format_html_join
    from django.utils.encoding import force_text, python_2_unicode_compatible
    from django.utils import timezone
    
                DeprecationWarning
            )
        return format_html_join('', ' {0}="{1}"', sorted(attrs.items()))
     
    @python_2_unicode_compatible
    
        def as_ul(self):
            if not self: return ''
            return format_html('<ul class="errorlist">{0}</ul>',
                               format_html_join('', '<li>{0}{1}</li>',
                                                ((k, force_text(v))
    
        def as_ul(self):
            if not self: return ''
            return format_html('<ul class="errorlist">{0}</ul>',
                               format_html_join('', '<li>{0}</li>',
                                                ((force_text(e),) for e in self)
    

      1 | 2 | 3 | 4 | 5 | 6 | 7 | 8  Next