Ticket #3090: template.patch

File template.patch, 1.4 KB (added by limodou@…, 17 years ago)
  • __init__.py

     
    247247                var_node = self.create_variable_node(filter_expression)
    248248                self.extend_nodelist(nodelist, var_node,token)
    249249            elif token.token_type == TOKEN_BLOCK:
    250                 if token.contents in parse_until:
    251                     # put token back on token list so calling code knows why it terminated
    252                     self.prepend_token(token)
    253                     return nodelist
     250#                if token.contents in parse_until:
     251#                    # put token back on token list so calling code knows why it terminated
     252#                    self.prepend_token(token)
     253#                    return nodelist
    254254                try:
    255255                    command = token.contents.split()[0]
    256256                except IndexError:
    257257                    self.empty_block_tag(token)
     258                #add by limodou
     259                if command in parse_until:
     260                    # put token back on token list so calling code knows why it terminated
     261                    self.prepend_token(token)
     262                    return nodelist
     263                #end add
    258264                # execute callback function for this tag and append resulting node
    259265                self.enter_command(command, token)
    260266                try:
Back to Top