summaryrefslogtreecommitdiff
path: root/src/lxml/ElementInclude.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix false detection of recursive include (GH-286)RainerHausdorf2019-08-181-2/+1
| | | | | | | | | Fix false detection of recursive include. In some cases ElementInclude does raise FatalIncludeError because of recursive include detection. This is the case if the same file gets included multiple times, but not recursive. This is a fix for https://bugs.launchpad.net/lxml/+bug/1835708
* Add a `max_depth` argument to ElementInclude to prevent content explosion. ↵Stefan Behnel2019-04-141-4/+30
| | | | Limit it to 6 by default.
* Add comment.Stefan Behnel2018-02-171-0/+2
|
* Remove unused imports.Chris Gavin2017-04-241-1/+0
|
* Extract magic string in ElementInclude._include()hayfield2017-04-201-1/+2
| | | | | ElementInclude defines several constants to refer to the relevant namespace - `XINCLUDE`, `XINCLUDE_INCLUDE` and `XINCLUDE_FALLBACK`. These constants are then used within `_include()`. This change takes a remaining magic use of the namespace within `_include()` and extracts it to become a constant with the others. Doing this makes it possible to utilise an alternative namespace without having to modify `_include()`.
* remove conditional imports of the set moduleJakub Wilk2017-03-171-6/+0
| | | | These were needed for Python 2.3, which is no longer supported.
* [svn r3880] r4596@delle: sbehnel | 2008-07-09 14:36:17 +0200scoder2008-07-091-4/+6
| | | | | | | unicode fix --HG-- branch : trunk
* [svn r3859] r4557@delle: sbehnel | 2008-06-25 09:25:08 +0200scoder2008-06-251-3/+3
| | | | | | | applied and refactored schema/xinclude resolvers patch by Michael Ballback --HG-- branch : trunk
* [svn r3831] r4511@delle: sbehnel | 2008-06-19 10:46:05 +0200scoder2008-06-191-2/+8
| | | | | | | fixes for Py3k stdlib restructuring --HG-- branch : trunk
* [svn r3685] r4231@delle: sbehnel | 2008-05-19 23:46:38 +0200scoder2008-05-201-1/+2
| | | | | | | Py3 fixes --HG-- branch : trunk
* [svn r3285] r3470@delle: sbehnel | 2008-02-13 20:12:19 +0100scoder2008-02-131-3/+8
| | | | | | | loads of docstrings --HG-- branch : trunk
* [svn r2494] open any URL by default in ElementInclude, small optimisationscoder2007-06-211-8/+17
| | | | | --HG-- branch : trunk
* [svn r2492] ElementInclude didn't honour base URL of source documentscoder2007-06-211-6/+9
| | | | | | --HG-- branch : trunk rename : src/lxml/tests/test_xinclude.xml => src/lxml/tests/include/test_xinclude.xml
* [svn r2158] use relative imports for (lxml.)etreescoder2007-02-251-2/+1
| | | | | --HG-- branch : trunk
* [svn r2086] small fix to actually check if xi:fallback tag is misplaced ↵scoder2006-12-041-3/+5
| | | | | | | before complaining --HG-- branch : trunk
* [svn r2085] integrated a modified ElementInclude.py: reuse the parser of the ↵scoder2006-12-021-0/+196
original document, recursive includes, based on Element.getiterator() --HG-- branch : trunk