Pylons 的预用模板 ...


Pyramid 1.1a2 发布

发布时间:2011-06-25 07:02:34, 关注:+5633, 赞美:+7, 不爽:+7

本文标签: pyramid

The second alpha of Pyramid 1.1 (1.1a2) has been released.

Here are the changes:

Bug Fixes

- 1.1a1 broke Akhet by not providing a backwards compatibility import
shim for ``pyramid.paster.PyramidTemplate``.  Now one has been
added, although a deprecation warning is emitted when Akhet imports

- If multiple specs were provided in a single call to
``config.add_translation_dirs``, the directories were inserted into
the beginning of the directory list in the wrong order: they were
inserted in the reverse of the order they were provided in the
``*specs`` list (items later in the list were added before ones
earlier in the list).  This is now fixed.

Backwards Incompatibilities

- The pyramid Router attempted to set a value into the key
``environ['repoze.bfg.message']`` when it caught a view-related
exception for backwards compatibility with applications written for
``repoze.bfg`` during error handling.  It did this by using code
that looked like so::

                   # "why" is an exception object
                       msg = why[0]
                       msg = ''

                   environ['repoze.bfg.message'] = msg

Use of the value ``environ['repoze.bfg.message']`` was
docs-deprecated in Pyramid 1.0.  Our standing policy is to not
remove features after a deprecation for two full major releases, so
this code was originally slated to be removed in Pyramid 1.2.
However, computing the ``repoze.bfg.message`` value was the source
of at least one bug found in the wild
( ), and there isn't a
foolproof way to both preserve backwards compatibility and to fix
the bug.  Therefore, the code which sets the value has been removed
in this release.  Code in exception views which relies on this
value's presence in the environment should now use the ``exception``
attribute of the request (e.g. ``request.exception[0]``) to retrieve
the message instead of relying on

A "What's New In Pyramid 1.1" document exists at  .

You will be able to see the 1.1 release documentation (across all
alphas and betas, as well as when it eventually gets to final release)
at  .

You can install it via PyPI:

easy_install Pyramid==1.1a2

Enjoy, and please report any issues you find to the issue tracker at

如果你觉得本站对你有帮助,欢迎向本站赞助 :P


Copyright© Python4cn(news, jobs), 技术驱动:powered by 空间主机:Webfaction

版权申明:文章转载已注明出处,如有疑问请来信咨询。本站为 python 语言推广公益网站,与 python 官方没有任何关系。

联系/投搞/留言: 向本站捐赠