diff genshi/template/text.py @ 629:cae74e2637c6

Revert second part of [726] (error on includes when no loader specified), which broke I18n extraction via the Babel plugin.
author cmlenz
date Tue, 04 Sep 2007 11:51:58 +0000
parents 6a37018199fd
children 1cf5fdfe7214 fa8a55fe2d57 3a4f2fd6f5e2
line wrap: on
line diff
--- a/genshi/template/text.py
+++ b/genshi/template/text.py
@@ -187,10 +187,6 @@
             command, value = mo.group(2, 3)
 
             if command == 'include':
-                if self._include not in self.filters:
-                    raise TemplateSyntaxError('Include found but no template '
-                                              'loader specified', self.filepath,
-                                              lineno)
                 pos = (self.filename, lineno, 0)
                 stream.append((INCLUDE, (value.strip(), None, []), pos))
 
@@ -311,10 +307,6 @@
                     stream[start_offset:] = [(SUB, ([directive], substream),
                                               (self.filepath, lineno, 0))]
             elif command == 'include':
-                if self._include not in self.filters:
-                    raise TemplateSyntaxError('Include found but no template '
-                                              'loader specified', self.filepath,
-                                              lineno)
                 pos = (self.filename, lineno, 0)
                 stream.append((INCLUDE, (value.strip(), None, []), pos))
             elif command != '#':
Copyright (C) 2012-2017 Edgewall Software