LEFT | RIGHT |
1 # | 1 # |
2 # ElementTree | 2 # ElementTree |
3 # $Id: ElementInclude.py 3265 2007-09-06 20:42:00Z fredrik $ | 3 # $Id: ElementInclude.py 3375 2008-02-13 08:05:08Z fredrik $ |
4 # | 4 # |
5 # limited xinclude support for element trees | 5 # limited xinclude support for element trees |
6 # | 6 # |
7 # history: | 7 # history: |
8 # 2003-08-15 fl created | 8 # 2003-08-15 fl created |
9 # 2003-11-14 fl fixed default loader | 9 # 2003-11-14 fl fixed default loader |
10 # | 10 # |
11 # Copyright (c) 2003-2004 by Fredrik Lundh. All rights reserved. | 11 # Copyright (c) 2003-2004 by Fredrik Lundh. All rights reserved. |
12 # | 12 # |
13 # fredrik@pythonware.com | 13 # fredrik@pythonware.com |
14 # http://www.pythonware.com | 14 # http://www.pythonware.com |
15 # | 15 # |
16 # -------------------------------------------------------------------- | 16 # -------------------------------------------------------------------- |
17 # The ElementTree toolkit is | 17 # The ElementTree toolkit is |
18 # | 18 # |
19 # Copyright (c) 1999-2007 by Fredrik Lundh | 19 # Copyright (c) 1999-2008 by Fredrik Lundh |
20 # | 20 # |
21 # By obtaining, using, and/or copying this software and/or its | 21 # By obtaining, using, and/or copying this software and/or its |
22 # associated documentation, you agree that you have read, understood, | 22 # associated documentation, you agree that you have read, understood, |
23 # and will comply with the following terms and conditions: | 23 # and will comply with the following terms and conditions: |
24 # | 24 # |
25 # Permission to use, copy, modify, and distribute this software and | 25 # Permission to use, copy, modify, and distribute this software and |
26 # its associated documentation for any purpose and without fee is | 26 # its associated documentation for any purpose and without fee is |
27 # hereby granted, provided that the above copyright notice appears in | 27 # hereby granted, provided that the above copyright notice appears in |
28 # all copies, and that both that copyright notice and this permission | 28 # all copies, and that both that copyright notice and this permission |
29 # notice appear in supporting documentation, and that the name of | 29 # notice appear in supporting documentation, and that the name of |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 raise FatalIncludeError( | 134 raise FatalIncludeError( |
135 "unknown parse type in xi:include tag (%r)" % parse | 135 "unknown parse type in xi:include tag (%r)" % parse |
136 ) | 136 ) |
137 elif e.tag == XINCLUDE_FALLBACK: | 137 elif e.tag == XINCLUDE_FALLBACK: |
138 raise FatalIncludeError( | 138 raise FatalIncludeError( |
139 "xi:fallback tag must be child of xi:include (%r)" % e.tag | 139 "xi:fallback tag must be child of xi:include (%r)" % e.tag |
140 ) | 140 ) |
141 else: | 141 else: |
142 include(e, loader) | 142 include(e, loader) |
143 i = i + 1 | 143 i = i + 1 |
LEFT | RIGHT |