Re: [pylons-devel] Uncatchable InvalidRequestError within view depending on order of SQLAlchemy queries

2016-03-21 Thread Simon King
of out if. > > For autoflush, I tried putting manual flush lines between the commands > but the results were the same. > > About exception, it is entering the exception block (I tried putting > print 'exception' there) but it is not catching it. > > Zsolt > > On 21 Mar

Re: [pylons-devel] Uncatchable InvalidRequestError within view depending on order of SQLAlchemy queries

2016-03-21 Thread Simon King
On Sat, Mar 19, 2016 at 3:44 AM, Zsolt Ero wrote: > My project is based on standard SQLAlchemy scaffold, ZTE, using ORM. > Pyramid 1.5.8. > > I'm trying to catch an IntegrityError (unique key constraint), I've made a > very minimal example > >

Re: [pylons-devel] Why does Pyramid replace paster from PasteScript with pserve?

2014-12-09 Thread Simon King
On Tue, Dec 9, 2014 at 9:56 AM, Piotr Dobrogost p...@google-groups-2014.dobrogost.net wrote: Hi! Pyramid uses PasteDeploy to support running web application and web server configured in .ini file but it brings its own pserve command which replaces paster script from PasteScript package. I'm

Re: How can I manage arguments of view_config automatically?

2012-02-02 Thread Simon King
On Thu, Feb 2, 2012 at 2:03 PM, Cosmia Luna cosm...@gmail.com wrote: Since the 1.3-branch is in alpha status now, I have little confidence using it. I tried simply copying the code from 1.3a6 but it failed to work. It seems that I have to wait before 1.3-branch is stable. Thanks Cosmia I

Re: pyramid start example (4.1) does not run on my machine

2011-03-10 Thread Simon King
Do you perhaps have another python package called 'pyramid' somewhere on your path (such as a test app)? Try putting the following before the line that is generating the error: import pyramid print pyramid.__path__ Simon On 10 Mar 2011, at 12:46, Sebastian Zwack

Re: Confused about view lookup

2011-02-27 Thread Simon King
On Feb 25, 10:49 pm, Simon King si...@simonking.org.uk wrote: Hi, I'm using Pyramid 1.0 for a toy project, and I'm confused about the view lookup process. I've put a complete script showing my problem at http://pylonshq.com/pasties/45e916782bf3e2896b94ea2e7a0fc13d I'm using traversal

Confused about view lookup

2011-02-26 Thread Simon King
Hi, I'm using Pyramid 1.0 for a toy project, and I'm confused about the view lookup process. I've put a complete script showing my problem at http://pylonshq.com/pasties/45e916782bf3e2896b94ea2e7a0fc13d I'm using traversal, and I'd like to be able to ensure trailing slashes on certain resources.