Ticket #3090: template.patch
File template.patch, 1.4 KB (added by , 18 years ago) |
---|
-
__init__.py
247 247 var_node = self.create_variable_node(filter_expression) 248 248 self.extend_nodelist(nodelist, var_node,token) 249 249 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 terminated252 self.prepend_token(token)253 return nodelist250 # 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 254 254 try: 255 255 command = token.contents.split()[0] 256 256 except IndexError: 257 257 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 258 264 # execute callback function for this tag and append resulting node 259 265 self.enter_command(command, token) 260 266 try: