      # that is, the node object returned from {% cycle a b c as name %} and the
      # one returned from {% cycle name %} are the exact same object.  This
      # shouldn't cause problems (heh), but if it does, now you know.
      #
      # Ugly hack warning: this stuffs the named template dict into parser so
      # that names are only unique within each template (as opposed to using
      # a global variable, which would make cycle names have to be unique across
      # *all* templates.
  
      args = token.split_contents()
 
</s> remove     # one returned from {% cycle name %} are the exact same object.  This
 </s> add     # one returned from {% cycle name %} are the exact same object. This </s> remove             raise TemplateSyntaxError("No named cycles in template."
                                      " '%s' is not defined" % name)
 </s> add             raise TemplateSyntaxError("No named cycles in template. '%s' is not defined" % name) </s> remove     You can use any number of values, seperated by spaces. Commas can also
 </s> add     You can use any number of values, separated by spaces. Commas can also </s> remove         value = self.cycle_iter.next()
        value = Variable(value).resolve(context)
 </s> add         value = self.cycle_iter.next().resolve(context) </s> remove         self.cycle_iter = itertools_cycle(cyclevars)
 </s> add         self.cycle_iter = itertools_cycle([Variable(v) for v in cyclevars])
    # Ugly hack warning: This stuffs the named template dict into parser so
      # that is, the node object returned from {% cycle a b c as name %} and the
      # one returned from {% cycle name %} are the exact same object.  This
      # shouldn't cause problems (heh), but if it does, now you know.
      #
    # Ugly hack warning: This stuffs the named template dict into parser so
      # that names are only unique within each template (as opposed to using
      # a global variable, which would make cycle names have to be unique across
      # *all* templates.
  
      args = token.split_contents()
keep keep keep keep replace keep keep keep keep keep
 Optimized {% cycle %} template tag so that it creates the Variable objects in CycleNode.__init__() rather than each time render() is called

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