              return reverse(self.view_name, args=args, kwargs=kwargs)
          except NoReverseMatch:
              try:
                  project_name = settings.SETTINGS_MODULE.split('.')[0]
                  return reverse(project_name + '.' + self.view_name, args=args, kwargs=kwargs)
              except NoReverseMatch:
                  return ''
  
  class WidthRatioNode(Node):
      def __init__(self, val_expr, max_expr, max_width):
 
</s> remove         kwargs = dict([(smart_str(k,'ascii'), v.resolve(context)) for k, v in self.kwargs.items()])
 </s> add         kwargs = dict([(smart_str(k,'ascii'), v.resolve(context))
                       for k, v in self.kwargs.items()]) </s> remove     "Replaces ampersands with ``&amp;`` entities"
 </s> add     """Replaces ampersands with ``&amp;`` entities.""" </s> remove     "Capitalizes the first character of the value"
 </s> add     """Capitalizes the first character of the value.""" </s> remove     # Find the maximum width of the line count, for use with zero padding string format command
 </s> add     # Find the maximum width of the line count, for use with zero padding
    # string format command. </s> remove     except ValueError: # invalid literal for int()
 </s> add     except ValueError: # Invalid literal for int().
                return reverse(project_name + '.' + self.view_name,
                               args=args, kwargs=kwargs)
              return reverse(self.view_name, args=args, kwargs=kwargs)
          except NoReverseMatch:
              try:
                  project_name = settings.SETTINGS_MODULE.split('.')[0]
                return reverse(project_name + '.' + self.view_name,
                               args=args, kwargs=kwargs)
              except NoReverseMatch:
                  return ''
  
  class WidthRatioNode(Node):
      def __init__(self, val_expr, max_expr, max_width):
keep keep keep keep replace keep keep keep keep keep
 Style and import fixes.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@6641 bcc190cf-cafb-0310-a4f2-bffc1f526a37 
django/template/defaulttags.py