14
0
forked from pool/python-Mako

61 Commits

Author SHA256 Message Date
Todd R
89254936e2 Accepting request 241522 from home:TheBlackCat:branches:devel:languages:python
Update to version 1.0.0

OBS-URL: https://build.opensuse.org/request/show/241522
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=28
2014-07-18 14:51:13 +00:00
Sascha Peilicke
d92400249b - Only suggest Beaker, it's an extra requirement and not really needed
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=26
2014-03-06 14:28:59 +00:00
Denisart Benjamin
a60621e763 Accepting request 213703 from Cloud:OpenStack:Master
- update to 0.9.1:
  - [bug] Fixed bug in Babel plugin where translator comments
    would be lost if intervening text nodes were encountered.
    Fix courtesy Ned Batchelder.  [ticket:225]
  
  - [bug] Fixed TGPlugin.render method to support unicode template
    names in Py2K - courtesy Vladimir Magamedov.
  
  - [bug] Fixed an AST issue that was preventing correct operation
    under alpha versions of Python 3.4.  Pullreq courtesy Zer0-.
  
  - [bug] Changed the format of the "source encoding" header output
    by the code generator to use the format ``# -*- coding:%s -*-``
    instead of ``# -*- encoding:%s -*-``; the former is more common
    and compatible with emacs.  Courtesy Martin Geisler.
  
  - [bug] Fixed issue where an old lexer rule prevented a template line
    which looked like "#*" from being correctly parsed.  [ticket:224]

OBS-URL: https://build.opensuse.org/request/show/213703
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=24
2014-01-13 17:21:04 +00:00
Sascha Peilicke
80e03fb436 Accepting request 197228 from home:dirkmueller:branches:devel:languages:python
- update to 0.9.0:
  - [bug] The Context.locals_() method becomes a private underscored
    method, as this method has a specific internal use. The purpose
    of Context.kwargs has been clarified, in that it only delivers
    top level keyword arguments originally passed to template.render().
    [ticket:219]
  
  - [bug] Fixed the babel plugin to properly interpret ${} sections
    inside of a "call" tag, i.e. <%self:some_tag attr="${_('foo')}"/>.
    Code that's subject to babel escapes in here needs to be
    specified as a Python expression, not a literal.  This change
    is backwards incompatible vs. code that is relying upon a _('')
    translation to be working within a call tag.
  
  - [bug] The Babel plugin has been repaired to work on Python 3.
    [ticket:187]
  
  - [bug] Using <%namespace import="*" module="somemodule"/> now
    skips over module elements that are not explcitly callable,
    avoiding TypeError when trying to produce partials.
    [ticket:207]
  
  - [bug] Fixed Py3K bug where a "lambda" expression was not
    interpreted correctly within a template tag; also
    fixed in Py2.4.  [ticket:190]

OBS-URL: https://build.opensuse.org/request/show/197228
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=22
2013-09-03 08:34:06 +00:00
Sascha Peilicke
75d7ea8c25 Accepting request 180867 from home:dirkmueller:branches:devel:languages:python
- update to 0.8.1:
 - [bug] Changed setup.py to skip installing markupsafe
   if Python version is < 2.6 or is between 3.0 and
   less than 3.3, as Markupsafe now only supports 2.6->2.X,
   3.3->3.X. [ticket:216]
 
 - [bug] Fixed regression where "entity" filter wasn't
   converted for py3k properly (added tests.)
   [ticket:214]
 
 - [bug] Fixed bug where mako-render script wasn't
   compatible with Py3k.  [ticket:212]
 
 - [bug] Cleaned up all the various deprecation/
   file warnings when running the tests under
   various Pythons with warnings turned on.
   [ticket:213]
 
 - [feature] Performance improvement to the
   "legacy" HTML escape feature, used for XML
   escaping and when markupsafe isn't present,
   courtesy George Xie.
 
 - [bug] Fixed bug whereby an exception in Python 3
   against a module compiled to the filesystem would
   fail trying to produce a RichTraceback due to the
   content being in bytes. [ticket:209]
 
 - [bug] Change default for compile()->reserved_names
   from tuple to frozenset, as this is expected to be

OBS-URL: https://build.opensuse.org/request/show/180867
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=20
2013-06-25 12:20:38 +00:00
Sascha Peilicke
2d738fe88e - Update to version 0.7.3:
+ [bug] legacy_html_escape function, used when
    Markupsafe isn't installed, was using an inline-compiled
    regexp which causes major slowdowns on Python 3.3;
    is now precompiled.
  + [bug] AST supporting now supports tuple-packed
    function arguments inside pure-python def
    or lambda expressions.
  + [bug] Fixed Py3K bug in the Babel extension.
  + [bug] Fixed the "filter" attribute of the
    <%text> tag so that it pulls locally specified
    identifiers from the context the same
    way as that of <%block> and <%filter>.
  + [bug] Fixed bug in plugin loader to correctly
    raise exception when non-existent plugin
    is specified.
- Changes from version 0.7.2:
  + [bug] Fixed regression in 0.7.1 where AST
    parsing for Py2.4 was broken.
- Changes from version 0.7.1:
  + [feature] Control lines with no bodies will
    now succeed, as "pass" is added for these
    when no statements are otherwise present.
  + [bug] Fixed some long-broken scoping behavior
    involving variables declared in defs and such,
    which only became apparent when
    the strict_undefined flag was turned on.
  + [bug] Can now use strict_undefined at the
    same time args passed to def() are used
    by other elements of the <%def> tag.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=12
2012-11-22 14:57:43 +00:00
Todd R
fa442c1036 Accepting request 122354 from home:TheBlackCat:branches:devel:languages:python
Resubmit with improved changelog

Switching over to update-alternatives for python 3 would be a huge undertaking and require substantial changes to a large number of packages.  I think that is something we can consider for the next openSUSE release, but I think the focus of openSUSE 12.2 should stay on python 2.

OBS-URL: https://build.opensuse.org/request/show/122354
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=9
2012-05-25 11:25:01 +00:00
Todd R
9dc0d41d08 Accepting request 121845 from home:HighwayStar:branches:devel:languages:python
update to 0.7.0 version, python3 package added

OBS-URL: https://build.opensuse.org/request/show/121845
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=7
2012-05-23 07:13:31 +00:00
Sascha Peilicke
0d63d35623 - Update to version 0.5.0:
* A Template is explicitly disallowed from having a url that
    normalizes to relative outside of the root. [ticket:174]

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=4
2011-11-10 10:54:38 +00:00
Sascha Peilicke
52b4b6e362 - Added python-nose BuildRequires for testsuite and packages make-render
binary

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=2
2011-09-01 14:11:57 +00:00
Sascha Peilicke
721384684b - Update to version 0.4.2:
* Fixed bug regarding <%call>/def calls w/ content whereby the identity
    of the "caller" callable inside the <%def> would be corrupted by the
    presence of another <%call> in the same block. [ticket:170]
  * Fixed the babel plugin to accommodate <%block> [ticket:169]
- Simpler spec file

- Update to 0.3.4
  - Now using MarkupSafe for HTML escaping,
    i.e. in place of cgi.escape().  Faster
    C-based implementation and also escapes
    single quotes for additional security.
    Supports the __html__ attribute for
    the given expression as well.
    When using "disable_unicode" mode,
    a pure Python HTML escaper function
    is used which also quotes single quotes.
    Note that Pylons by default doesn't
    use Mako's filter - check your
    environment.py file.
  - Fixed call to "unicode.strip" in
    exceptions.text_error_template which
    is not Py3k compatible.  [ticket:137]

- Update to 0.2.5
  - Added a "decorator" kw argument to <%def>, allows custom decoration
    functions to wrap rendering callables.  Mainly intended for custom caching
    algorithms, not sure what other uses there may be (but there may be).
    Examples are in the "filtering" docs.
  - When Mako creates subdirectories in which to store templates, it uses the

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=1
2011-09-01 14:06:20 +00:00