from django import template

register = template.Library()

register.filter('zip',lambda x, y: zip(x,y))

@register.filter(name='format')
def format_filter(value,arg):
  try:
    return unicode(arg).format(value)
  except (ValueError, TypeError):
    return u""

@register.filter()
def fmul(value, arg):
  """Multiplies the float in arg with the value."""
  try:
    return float(value) * float(arg)
  except (ValueError, TypeError):
    return ''

6382affc2242c8befcd20442d80f7195d2dd8b13
<mask token>


@register.filter(name='format')
def format_filter(value, arg):
    try:
        return unicode(arg).format(value)
    except (ValueError, TypeError):
        return u''


@register.filter()
def fmul(value, arg):
    """Multiplies the float in arg with the value."""
    try:
        return float(value) * float(arg)
    except (ValueError, TypeError):
        return ''

<mask token>
register.filter('zip', lambda x, y: zip(x, y))


@register.filter(name='format')
def format_filter(value, arg):
    try:
        return unicode(arg).format(value)
    except (ValueError, TypeError):
        return u''


@register.filter()
def fmul(value, arg):
    """Multiplies the float in arg with the value."""
    try:
        return float(value) * float(arg)
    except (ValueError, TypeError):
        return ''

<mask token>
register = template.Library()
register.filter('zip', lambda x, y: zip(x, y))


@register.filter(name='format')
def format_filter(value, arg):
    try:
        return unicode(arg).format(value)
    except (ValueError, TypeError):
        return u''


@register.filter()
def fmul(value, arg):
    """Multiplies the float in arg with the value."""
    try:
        return float(value) * float(arg)
    except (ValueError, TypeError):
        return ''

from django import template
register = template.Library()
register.filter('zip', lambda x, y: zip(x, y))


@register.filter(name='format')
def format_filter(value, arg):
    try:
        return unicode(arg).format(value)
    except (ValueError, TypeError):
        return u''


@register.filter()
def fmul(value, arg):
    """Multiplies the float in arg with the value."""
    try:
        return float(value) * float(arg)
    except (ValueError, TypeError):
        return ''

from django import template

register = template.Library()

register.filter('zip',lambda x, y: zip(x,y))

@register.filter(name='format')
def format_filter(value,arg):
  try:
    return unicode(arg).format(value)
  except (ValueError, TypeError):
    return u""

@register.filter()
def fmul(value, arg):
  """Multiplies the float in arg with the value."""
  try:
    return float(value) * float(arg)
  except (ValueError, TypeError):
    return ''
