在线文档查看-易度云查看

在线文档查看最佳解决方案:百种文件支持,强劲转换;8种查看方式,跨终端浏览;按需扩展,运维便捷。易度云办公旗下产品。 ...

↑我也要推荐

Pyramid 1.1a2 发布

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

本文标签: 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
it.

- 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
                   try:
                       msg = why[0]
                   except:
                       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
(https://github.com/Pylons/pyramid/issues/199 ), 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
``request.environ['repoze.bfg.message']``.


A "What's New In Pyramid 1.1" document exists at
http://docs.pylonsproject.org/projects/pyramid/1.1/whatsnew-1.1.html  .

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 http://docs.pylonsproject.org/projects/pyramid/1.1/  .

You can install it via PyPI:

easy_install Pyramid==1.1a2

Enjoy, and please report any issues you find to the issue tracker at
https://github.com/Pylons/pyramid/issues

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

使用支付宝捐赠

Copyright© Python4cn(news, jobs) simple-is-better.com, 技术驱动:powered by web.py 空间主机:Webfaction

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

联系/投搞/留言: en.simple.is.better@gmail.com 向本站捐赠