Wed Oct 12 13:09:48 2011 UTC ()
Update to 0.5.0

Changelog:
0.5
- A Template is explicitly disallowed
  from having a url that normalizes to relative outside
  of the root.   That is, if the Lookup is based
  at /home/mytemplates, an include that would place
  the ultimate template at
  /home/mytemplates/../some_other_directory,
  i.e. outside of /home/mytemplates,
  is disallowed.   This usage was never intended
  despite the lack of an explicit check.
  The main issue this causes
  is that module files can be written outside
  of the module root (or raise an error, if file perms aren't
  set up), and can also lead to the same template being
  cached in the lookup under multiple, relative roots.
  TemplateLookup instead has always supported multiple
  file roots for this purpose.
  [ticket:174]

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]

0.4.1
- New tag: <%block>.  A variant on <%def> that
  evaluates its contents in-place.
  Can be named or anonymous,
  the named version is intended for inheritance
  layouts where any given section can be
  surrounded by the <%block> tag in order for
  it to become overrideable by inheriting
  templates, without the need to specify a
  top-level <%def> plus explicit call.
  Modified scoping and argument rules as well as a
  more strictly enforced usage scheme make it ideal
  for this purpose without at all replacing most
  other things that defs are still good for.
  Lots of new docs. [ticket:164]

- a slight adjustment to the "highlight" logic
  for generating template bound stacktraces.
  Will stick to known template source lines
  without any extra guessing. [ticket:165]

0.4.0
- A 20% speedup for a basic two-page
  inheritance setup rendering
  a table of escaped data
  (see http://techspot.zzzeek.org/2010/11/19/quick-mako-vs.-jinja-speed-test/).
  A few configurational changes which
  affect those in the I-don't-do-unicode
  camp should be noted below.

- The FastEncodingBuffer is now used
  by default instead of cStringIO or StringIO,
  regardless of whether output_encoding
  is set to None or not.  FEB is faster than
  both.  Only StringIO allows bytestrings
  of unknown encoding to pass right
  through, however - while it is of course
  not recommended to send bytestrings of unknown
  encoding to the output stream, this
  mode of usage can be re-enabled by
  setting the flag bytestring_passthrough
  to True.

- disable_unicode mode requires that
  output_encoding be set to None - it also
  forces the bytestring_passthrough flag
  to True.

- the <%namespace> tag raises an error
  if the 'template' and 'module' attributes
  are specified at the same time in
  one tag.  A different class is used
  for each case which allows a reduction in
  runtime conditional logic and function
  call overhead. [ticket:156]

- the keys() in the Context, as well as
  it's internal _data dictionary, now
  include just what was specified to
  render() as well as Mako builtins
  'caller', 'capture'.  The contents
  of __builtin__ are no longer copied.
  Thanks to Daniel Lopez for pointing
  this out. [ticket:159]


(ryoon)
diff -r1.1.1.1 -r1.2 pkgsrc/devel/py-mako/Makefile
diff -r1.1.1.1 -r1.2 pkgsrc/devel/py-mako/distinfo

cvs diff -r1.1.1.1 -r1.2 pkgsrc/devel/py-mako/Makefile (expand / switch to unified diff)

--- pkgsrc/devel/py-mako/Makefile 2011/02/11 08:24:02 1.1.1.1
+++ pkgsrc/devel/py-mako/Makefile 2011/10/12 13:09:48 1.2
@@ -1,18 +1,19 @@ @@ -1,18 +1,19 @@
1# $NetBSD: Makefile,v 1.1.1.1 2011/02/11 08:24:02 adam Exp $ 1# $NetBSD: Makefile,v 1.2 2011/10/12 13:09:48 ryoon Exp $
2 2
3DISTNAME= Mako-0.3.6 3DISTNAME= Mako-0.5.0
4PKGNAME= ${PYPKGPREFIX}-${DISTNAME:tl} 4PKGNAME= ${PYPKGPREFIX}-${DISTNAME:tl}
5CATEGORIES= devel python 5CATEGORIES= devel python
6MASTER_SITES= http://www.makotemplates.org/downloads/ 6MASTER_SITES= http://pypi.python.org/packages/source/M/Mako/ \
 7 http://www.makotemplates.org/downloads/
7 8
8MAINTAINER= pkgsrc-users@NetBSD.org 9MAINTAINER= pkgsrc-users@NetBSD.org
9HOMEPAGE= http://www.makotemplates.org/ 10HOMEPAGE= http://www.makotemplates.org/
10COMMENT= Hyperfast and lightweight templating for the Python platform 11COMMENT= Hyperfast and lightweight templating for the Python platform
11LICENSE= mit 12LICENSE= mit
12 13
13PKG_DESTDIR_SUPPORT= user-destdir 14PKG_DESTDIR_SUPPORT= user-destdir
14 15
15USE_LANGUAGES= # none 16USE_LANGUAGES= # none
16 17
17.include "../../lang/python/egg.mk" 18.include "../../lang/python/egg.mk"
18.include "../../mk/bsd.pkg.mk" 19.include "../../mk/bsd.pkg.mk"

cvs diff -r1.1.1.1 -r1.2 pkgsrc/devel/py-mako/distinfo (expand / switch to unified diff)

--- pkgsrc/devel/py-mako/distinfo 2011/02/11 08:24:02 1.1.1.1
+++ pkgsrc/devel/py-mako/distinfo 2011/10/12 13:09:48 1.2
@@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
1$NetBSD: distinfo,v 1.1.1.1 2011/02/11 08:24:02 adam Exp $ 1$NetBSD: distinfo,v 1.2 2011/10/12 13:09:48 ryoon Exp $
2 2
3SHA1 (Mako-0.3.6.tar.gz) = ea0df17702107e6498853248ecbe227ead18eb76 3SHA1 (Mako-0.5.0.tar.gz) = ab03d880c383bf31f7a6f10420ba71b58217573c
4RMD160 (Mako-0.3.6.tar.gz) = 2d25a12f40db69fccc39f2543290032aabd10c2e 4RMD160 (Mako-0.5.0.tar.gz) = f6726d1167d19d08ad2320724ac0025f5a004617
5Size (Mako-0.3.6.tar.gz) = 297721 bytes 5Size (Mako-0.5.0.tar.gz) = 318717 bytes