Commits

Show all
Author Commit Message Labels Comments Date
Simon Cross
Remove unnecessary call to iter around stream passed into filters -- filters should do the right thing with the stream they're given.
Branches
experimental-performance-improvement-exploration
Simon Cross
Move push and pop outside the loop in the ForDirective since it's equivalent to just pushing and popping on the edges.
Branches
experimental-performance-improvement-exploration
Simon Cross
Be more careful about what is passed into streams as events and remove many uses of _ensure as a result. An ATTRS event is added for handling Attributes returned by gensh.path.select().
Branches
experimental-performance-improvement-exploration
Simon Cross
Simplify _assignment and add fast-path.
Branches
experimental-performance-improvement-exploration
Simon Cross
Start performance-improvement-exploration
Branches
experimental-performance-improvement-exploration
Simon Cross
Remove invalid file mode in template loader. Fixes #485.
Branches
trunk
Simon Cross
Make --with-speedups the default for Pythons other than PyPy.
Branches
trunk
Simon Cross
Handle multiple events between or an either side of start and end tags in translated messages -- fixes #404 (bug no longer found).
Branches
trunk
Simon Cross
Revert accidental small docstring change from r1174.
Branches
trunk
Simon Cross
Improve sanitizing of CSS in style attributes (note that the Genshi documentation already warns users that enabling the style attribute is dangerous -- now it is slightly less dangerous). Fixes #455. Patch taken from jomae's Trac commit trac:r10788 and modified for Genshi -- thanks!
Branches
trunk
Simon Cross
Add .copy() function to Context objects. Fixes #249.
Branches
trunk
Simon Cross
Fix out-by-one error introduced in r1097 that led to match templates missing the last event from the stream they were processing.
Branches
trunk
Simon Cross
Fix bug in _speedups where it differed from behaviour of Python implementation and add a test for this case (fixes #439). Fix and test contributed by cboos.
Branches
trunk
Simon Cross
Fix bug in ASTTransformer's cloning that overwrote AST nodes name attribute instead of copy the attributes listed in ASTNode._attributes.
Branches
trunk
Simon Cross
Fix genshi.core.Attrs.__contains__ so that it returns False instead of None if an attribute is not found (CPython translates this to False automatically but PyPy does not).
Branches
trunk
Simon Cross
Don't cache (TEXT, Markup) events in serializers. This is not needed and since Markup instances compare equal to the same non-Markup string this can lead to incorrect cached output being retrieved. Fixes #429. This is patch t429-fix.2.patch from that ticket. It includes an additional unrelated test to check that the WhitespaceFilter actually removes ignorable whitespace.
Branches
trunk
Simon Cross
Refactor string cache creation to remove repeated code in preparation for fixing issue #429. This is patch t429-refactor-r1038.2.patch from ticket (from cboos).
Branches
trunk
Simon Cross
Update upgrade documentation to refer to the development version and not the py3k branch.
Branches
trunk
Simon Cross
Merge r1144 from py3k: Add documentation on upgrading to the Genshi py3k branch.
Branches
trunk
Simon Cross
Merge r1143 from py3k: add support for python 3 to remaining genshi.template components: * minor changes to track encoding=None API change in core genshi modules. * genshi/template/directives: * slightly odd syntax changes to make the 2to3 .next() fixer pick up *stream.next() * minor test fix for change in behaviour of division (/) in Python 3. * genshi/template/loader: * add 'b' to file modes to ensure it'…
Branches
trunk
Simon Cross
Merge r1142 from py3k: add support for python 3 to genshi.template expression evaluator: * add support for python 3 AST: * AST for raise has changed in Python 3. * Python 3 adds AST nodes for individual arguments and Bytes. * use genshi.compat functions for dealing with code objects. * do not coerce byte strings to unicode in Python 3 ASTTransformer. * replace doctests that reply on exception names with uglie…
Branches
trunk
Simon Cross
Merge r1141 from py3k: add support for python 3 to genshi.filters: * minor changes to track encoding=None API change in core genshi modules. * renamed genshi/filters/tests/html.py to test_html.py to avoid clashes with Python 3 top-level html module when running tests subset. * did not rename genshi/filters/html.py. * i18n filters: * ugettext and friends are gone in Python 3 (and only gettext and friends exist an…
Branches
trunk
Simon Cross
Merge r1140 from py3k: add support for python 3 to core genshi components (genshi.core, genshi.input and genshi.output): * default input and output encodings changed from UTF-8 to None (i.e. unicode strings) * Namespace and QName objects do not call stringrepr in __repr__ in Python 3 since repr() returns a unicode string there. * track changes to expat parser in Python 3 (mostly it accepts bytes instead of strings)
Branches
trunk
Simon Cross
Merge r1139 from py3k: add compatibility functions for dealing with python 3; factor existing compatibility functions out from genshi utils.
Branches
trunk
Simon Cross
Merge r1138 from py3k: add python 3 support to _speedups C extension
Branches
trunk
Simon Cross
Merge r1137 from py3k: add 2to3 build infrastructure to setup.py (this pulls the tests into the source distribution so that tests can be run after building with 2to3)
Branches
trunk
Jeroen Ruigrok van der Werven
Pull up r1147 to trunk. Correct reference to i18n namespace in documentation.
Branches
trunk
Jeroen Ruigrok van der Werven
Pull up r1146 to trunk. Addresses #399
Branches
trunk
Jeroen Ruigrok van der Werven
Pull up r1145 to trunk. Addresses #413.
Branches
trunk
cmlenz
Fix handling of checkboxes and radio buttons with an empty value attribute in `HTMLFormFiller`. Thanks to Benoit Hirbec for pointing out the problem and providing a patch.
Branches
trunk
  1. Prev
  2. Next