Re: Clarification about Tweens

2013-05-28 Thread Jonathan Vanasco
Great- both of you clarified this a lot for me. My problem was that first bit of the docs' description , where the tween sits between the App and Server didn't make it sound like it wrapped the app/request ( which is what a decorator does). tween factory : run at startup, decides if tweens wi

Re: unicode error?

2013-05-28 Thread Jonathan Vanasco
mako has some render settings that are configurable in the .ini file http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/environment.html#mako-template-render-settings the encode/decode error is a complete pain in the ass. i've run into it many times. a helper function I've used w

Re: unicode error?

2013-05-28 Thread Craig Sabbey
I've done more searching and reading, and I seem to have 2 separate issues: 1. The data isn't being returned as utf-8 The x92 byte code I mentioned in my original post is for a 'smart apostrophe', and the Python strings are being created as CP1252 bytes instead of UTF-8. I've tried various setti

Re: Trouble storing Suds SOAP client in Configurator registry

2013-05-28 Thread Michael Merickel
FWIW, if you need a threadsafe connection pool and are already using SQLAlchemy for something else, the QueuePool is not db-api specific at all and can be reused for arbitrary connection pooling. On Tue, May 28, 2013 at 2:47 PM, ian marcinkowski wrote: > I know how difficult things are without

Re: Clarification about Tweens

2013-05-28 Thread Michael Merickel
Hopefully you also saw http://docs.pylonsproject.org/projects/pyramid/en/1.4-branch/narr/hooks.html#registering-tweens If you want to think in terms of WSGI middleware, the handler is the pyramid request router (or another tween) and the registry is your pyramid registry (same as request.registry

Re: Clarification about Tweens

2013-05-28 Thread Chris McDonough
On Tue, 2013-05-28 at 13:34 -0700, Jonathan Vanasco wrote: > I'm looking at the Pyramid docs about `tweens` > [http://docs.pylonsproject.org/projects/pyramid/en/latest/glossary.html#term-tween] > and it reads: > > > A bit of code that sits between the Pyramid router’s main request > handlin

Clarification about Tweens

2013-05-28 Thread Jonathan Vanasco
I'm looking at the Pyramid docs about `tweens` [http://docs.pylonsproject.org/projects/pyramid/en/latest/glossary.html#term-tween] and it reads: A bit of code that sits between the Pyramid router’s main request handling function and the upstream WSGI component that uses Pyramid as its ‘a

Re: Trouble storing Suds SOAP client in Configurator registry

2013-05-28 Thread ian marcinkowski
I know how difficult things are without the traceback; I was mostly looking for a suggestion exactly like yours in the hopes that it would push me in the right direction. I actually didn't even get a traceback, as my application crashed hard enough that it did not output an error. According to a

unicode error?

2013-05-28 Thread Craig Sabbey
Hello, I'm new to Pyramid, and I'm having a tough time getting the encodings all lined up. Here are my components: pyodbc mssql (I don't have a choice) mako sqlalchemy (declarative) Here's the end of the stack trace I'm seeing: File "c:\code\vision\bws\bws\templates/projects.mako", line 14, i

Re: Pyrmaid internal logging

2013-05-28 Thread appetito
see heredebug_notfound may be -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email

Pyrmaid internal logging

2013-05-28 Thread cropr
Is there logger defined for the internals of Pyramid (like it was in Pylons)? I want to check why a traversal or an add_view() did not work. -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving ema

Re: Namespace packages and scaffolds ?

2013-05-28 Thread Laurent DAVERIO
> When I run "pcreate -l", I get the following message: > >> Warning: could not load entry point foobar (ImportError: No module named >> bar.scaffolds) To be more precise : pcreate is looking for the scaffold in the main package (foo), not in the namespace package (foo.bar). It can be verified i