Many thanks Chris, the problem is solved in 1.0a6

Jerry

On Dec 16, 4:16 am, Chris McDonough <chr...@plope.com> wrote:
> On Wed, 2010-12-15 at 12:54 -0500, Chris McDonough wrote:
> > On Wed, 2010-12-15 at 09:50 -0800, Jerry wrote:
> > > Hi Chris,
>
> > > Upon upgrade, and after updating all "from pyramid.config import
> > > Configurator", I receive many DeprecationWarning on packages that are
> > > never imported in my project (full output
> > >http://pylonshq.com/pasties/2bc1675b1f3718399910845448bfd0a8) --
>
> > > /usr/lib/python2.6/inspect.py:252: DeprecationWarning: get_template:
> > > (pyramid.chameleon_text.get_template is deprecated as of Pyramid 1.0;
> > > instead use pyramid.renderers.get_renderer().implementation())
> > >   value = getattr(object, key)
> > > /usr/lib/python2.6/inspect.py:252: DeprecationWarning:
> > > ConfigurationError: pyramid.configuration.ConfigurationError is
> > > deprecated as of Pyramid 1.0.  Use
> > > ``pyramid.config.ConfigurationError`` instead.
> > >   value = getattr(object, key)
>
> > > On one hand, they don't seem to affect any functionality, on the
> > > other, they are too numerous to be annoying.
>
> > How are you running your tests?
>
> Hi Jerry.  I suspect this is almost certainly due to a bug added in
> 1.0a5 (see alsohttps://github.com/Pylons/pyramid/issues/#issue/68).
>
> The temporary fix (before 1.0a6, which I'll release soon) would be to
> specify the package you're trying to scan in the call to
> "config.scan()", e.g.:
>
>    config.scan('mypackage')
>
> instead of:
>
>    config.scan()
>
> Or if you don't use a package at all:
>
>    config.scan('__main__')
>
> - C

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-devel" group.
To post to this group, send email to pylons-de...@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-devel?hl=en.

Reply via email to