Did I find the right examples for you? yes no

All Samples(38)  |  Call(17)  |  Derive(0)  |  Import(21)
truncates a string to a number of letters, similar to truncate_words

            @wraps(func)
    def wrapper(*args, **kwargs):
        for arg in list(args) + list(six.itervalues(kwargs)):
            if isinstance(arg, Promise):
                break
        else:
            return func(*args, **kwargs)
        return lazy(func, *resultclasses)(*args, **kwargs)
        


src/r/o/rolf-HEAD/ve/lib/python2.7/site-packages/django_extensions/templatetags/truncate_letters.py   rolf(Download)
    Argument: Number of letters to truncate after
    """
    from django_extensions.utils.text import truncate_letters
    try:
        length = int(arg)
    except ValueError:  # invalid literal for int()
        return value  # Fail silently
    return truncate_letters(value, length)

src/a/n/antisocial-HEAD/ve/lib/python2.7/site-packages/django_extensions/templatetags/truncate_letters.py   antisocial(Download)
    Argument: Number of letters to truncate after
    """
    from django_extensions.utils.text import truncate_letters
    try:
        length = int(arg)
    except ValueError:  # invalid literal for int()
        return value  # Fail silently
    return truncate_letters(value, length)

src/h/u/hue-HEAD/desktop/core/ext-py/django-extensions-0.5/django_extensions/templatetags/truncate_letters.py   hue(Download)
    Argument: Number of letters to truncate after
    """
    from django_extensions.utils.text import truncate_letters
    try:
        length = int(arg)
    except ValueError: # invalid literal for int()
        return value # Fail silently
    return truncate_letters(value, length)

src/h/o/hortonworks-sandbox-HEAD/desktop/core/ext-py/django-extensions-0.5/django_extensions/templatetags/truncate_letters.py   hortonworks-sandbox(Download)
    Argument: Number of letters to truncate after
    """
    from django_extensions.utils.text import truncate_letters
    try:
        length = int(arg)
    except ValueError: # invalid literal for int()
        return value # Fail silently
    return truncate_letters(value, length)

src/o/h/oh-mainline-HEAD/vendor/packages/django-extensions/django_extensions/templatetags/truncate_letters.py   oh-mainline(Download)
    Argument: Number of letters to truncate after
    """
    from django_extensions.utils.text import truncate_letters
    try:
        length = int(arg)
    except ValueError:  # invalid literal for int()
        return value  # Fail silently
    return truncate_letters(value, length)

src/c/y/cyder-HEAD/vendor-local/src/django-extensions/django_extensions/templatetags/truncate_letters.py   cyder(Download)
    Argument: Number of letters to truncate after
    """
    from django_extensions.utils.text import truncate_letters
    try:
        length = int(arg)
    except ValueError:  # invalid literal for int()
        return value  # Fail silently
    return truncate_letters(value, length)

src/p/o/popcorn_maker-HEAD/vendor-local/lib/python/django_extensions/templatetags/truncate_letters.py   popcorn_maker(Download)
    Argument: Number of letters to truncate after
    """
    from django_extensions.utils.text import truncate_letters
    try:
        length = int(arg)
    except ValueError:  # invalid literal for int()
        return value  # Fail silently
    return truncate_letters(value, length)

src/i/n/inventory-HEAD/vendor-local/src/django-extensions/django_extensions/templatetags/truncate_letters.py   inventory(Download)
    Argument: Number of letters to truncate after
    """
    from django_extensions.utils.text import truncate_letters
    try:
        length = int(arg)
    except ValueError:  # invalid literal for int()
        return value  # Fail silently
    return truncate_letters(value, length)

src/m/o/mozilla_inventory-HEAD/vendor-local/src/django-extensions/django_extensions/templatetags/truncate_letters.py   mozilla_inventory(Download)
    Argument: Number of letters to truncate after
    """
    from django_extensions.utils.text import truncate_letters
    try:
        length = int(arg)
    except ValueError:  # invalid literal for int()
        return value  # Fail silently
    return truncate_letters(value, length)

src/d/j/django-gheat-HEAD/external/django-extensions/django_extensions/templatetags/truncate_letters.py   django-gheat(Download)
    Argument: Number of letters to truncate after
    """
    from django_extensions.utils.text import truncate_letters
    try:
        length = int(arg)
    except ValueError: # invalid literal for int()
        return value # Fail silently
    return truncate_letters(value, length)

  1 | 2 | 3  Next