Commit graph

88 commits

Author SHA1 Message Date
Christopher Ramírez
c2275e4725 Escape final rendered xml 2016-04-12 12:26:40 -06:00
Christopher Ramírez
8ab2083558 Escape ' in Renderer._compile_escape_expressions. 2016-04-12 12:06:30 -06:00
Christopher Ramírez
cccd87e2da Escape ' in Renderer._compile_escape_expressions. 2016-04-12 12:05:46 -06:00
Christopher Ramírez
7244e8778e Fix regex in Renderer._compile_escape_expressions. 2016-04-12 12:00:40 -06:00
Christopher Ramírez
eee5e43549 Simplifies ascii encoding of rendered xml. 2016-04-12 11:59:58 -06:00
Christopher
83561e94d5 _is_jinja_tag and _is_block_tag were returning the result of RE.findall instead of a boolean. 2015-12-27 08:59:47 -06:00
Christopher
4a3ecebeb8 _census_tags instead of using _is_block_tag, it was using old code to determinate if a tag was a block tag. 2015-12-27 08:57:54 -06:00
Christopher
2a7128c9ab Update Renderer docstring. 2015-12-21 12:03:54 -06:00
Christopher
641f0dc05c Update module docstring. 2015-12-21 11:54:06 -06:00
Christopher
6035736c32 Update license. 2015-12-21 11:51:22 -06:00
Christopher
3a2b4b9c3b Reimplement _unescape_entities routine.
</?text:s.*?> entities are not longer escaped.
This functionallity was used when secretary handled plain text
jinja instructions. This now is no longer supported since the
official method to add instructions is through input fields.
2015-12-21 11:29:41 -06:00
Christopher Ramírez
5daa1a2c2b Secretary now handles custom jinja tags ending and starting strings. 2015-12-17 16:15:12 -06:00
Christopher
036d339e70 Refactor _prepare_template_tags routine. 2015-12-16 22:19:24 -06:00
Christopher Ramírez
1e77732d5a Fix #25 2015-12-04 09:03:25 -06:00
Christopher Ramírez
2896491e79 Fix critical issues in regexs used by _unescape_entities function. 2015-05-13 10:27:46 -06:00
Christopher Ramírez
ea2cc534a2 Fix wrong regexp used to unscape xml entities inside jinja tags. 2015-05-11 13:53:06 -06:00
Christopher Ramírez
0f6c0eb172 Fix #20. 2015-05-08 12:30:17 -06:00
Christopher Ramírez
7fd4bdbc26 Fix reading 'major' property on Python 2.6. 2015-05-08 12:25:26 -06:00
Anton Kochnev
1825995c4d fixed xrange issue in py3 2015-05-07 16:02:37 +08:00
Christopher Ramírez
ca59592ff7 Fixs #16. 2015-04-29 16:31:15 -06:00
Christopher Ramírez
d6abc37ccb Make ajustments in PR #15. For now leaving #16 open. This fixes #14, and closes #15. 2015-04-29 11:54:35 -06:00
Dieter Buys
1cffe9f224 Text style tags are now properly stripped from template elements 2015-04-27 17:45:18 -07:00
Dieter Buys
d84266182a Fix for mishandled " and & characters 2015-04-27 16:29:26 -07:00
Christopher Ramírez
cb60f1ee0b Fix UnicodeEncodeError bug. 2015-04-13 11:50:40 -06:00
Christopher Ramírez
088b93e77e Fix issue #12 2015-02-03 16:18:44 -06:00
Christopher Ramírez
24e4cb0ad3 merge with changes in master 2014-10-10 15:50:53 -06:00
Christopher Ramírez
2a0f00c2d5 fs_loader now accepts a file object as a possible value o media. 2014-10-10 14:16:36 -06:00
Christopher Ramírez
d285ef7390 First draft for image support. 2014-09-07 15:24:48 -06:00
Christopher Ramírez
75015dd248 image_filter now support args and kwargs. 2014-09-07 11:14:10 -06:00
Christopher Ramírez
6b6717a309 Change key names of images variables and dict name where they are stored. 2014-09-07 10:51:49 -06:00
Christopher Ramírez
c185b050f8 Fix image filter declaration. 2014-09-06 19:19:05 -06:00
Christopher Ramírez
27b63b24d7 Add image filter. 2014-09-06 19:12:22 -06:00
Christopher Ramírez
0a1d0cc43b Convert documentation of _prepare_template_tags to docstring. 2014-09-06 19:02:50 -06:00
Christopher Ramírez
d76c1d1360 This fix #8. 2014-08-17 19:32:33 -06:00
Christopher Ramírez
8f1bde4035 Revert "Sorting escape rules to ensure an apply order."
This reverts commit 4067b17a59.
2014-07-20 17:00:54 -06:00
Christopher Ramírez
a10a4b0af4 Revert "Fix import error in pyhton 2.6."
This reverts commit f6a78cb4b2.
2014-07-20 17:00:34 -06:00
Christopher Ramírez
574b23f1ef Avoid RE replace escape space chars outside of <text:*> nodes. 2014-07-20 16:59:24 -06:00
Christopher Ramírez
aa1bc46ab1 Remove not used SUPPORTED_FIELD_REFERECES variable. 2014-07-20 15:58:18 -06:00
Christopher Ramírez
f6a78cb4b2 Fix import error in pyhton 2.6. 2014-07-20 13:14:11 -06:00
Christopher Ramírez
4067b17a59 Sorting escape rules to ensure an apply order. 2014-07-20 13:11:12 -06:00
Christopher Ramírez
278f09f080 Fix __future__ import. 2014-07-19 22:05:46 -06:00
Christopher Ramírez
44aac5f362 basestring normailization for python3. 2014-07-19 22:04:23 -06:00
Christopher Ramírez
9561666355 Fix regexs to be compatible with Python2.6. 2014-07-19 21:59:47 -06:00
Christopher Ramírez
42d48731f2 Fix iteritems() call in python3. 2014-07-19 21:43:54 -06:00
Christopher Ramírez
d898ddea52 Fix "local variable 'template_string' referenced before assignment" 2014-07-19 20:03:20 -06:00
Christopher Ramírez
e555efe69c Fix sintax error for python3. 2014-07-19 19:58:57 -06:00
Christopher Ramírez
f1a7a4cf02 Fix indentation error. 2014-07-19 19:54:34 -06:00
Christopher Ramírez
fe28417809 Fix AttributeError: ZipFile instance has no attribute '__exit__' in Python 2.6.x 2014-07-19 19:52:40 -06:00
Christopher Ramírez
8b16eea65b Fix find regex in _encode_escape_chars. 2014-07-19 19:40:21 -06:00
Christopher Ramírez
ca7d500e5a Escape <text:s> if found within template tags in _unescape_entities. 2014-07-19 18:46:54 -06:00