Re: [pylons-devel] Help with testing Pyramid app composition done with config.include()

2020-12-03 Thread Karl O. Pinc
On Thu, 3 Dec 2020 23:41:04 -0600 Michael Merickel wrote: > The request.registry = ... is fine and supported. The alternative is > that you can just do everything with the threadlocal pushed and then > DummyRequest will pick up the registry automatically. > > with config: > request = DummyRe

Re: [pylons-devel] Help with testing Pyramid app composition done with config.include()

2020-12-03 Thread Karl O. Pinc
appealing and easy to do in testing code. If you'd like to comment on this I'd be interested but don't feel you have to reply. > [1] > https://docs.pylonsproject.org/projects/pyramid/en/latest/narr/introspector.html#using-the-introspector > > - Michael > > > On D

[pylons-devel] Help with testing Pyramid app composition done with config.include()

2020-12-03 Thread Karl O. Pinc
Hi, I've a Pyramid app that's composed of multiple python distributions (packages). I'm writing integration tests for the code that calls Configurator() and then uses the resulting config to do config.include() on the various components. The application uses URL dispatch. Mostly, the config.inc

[pylons-devel] Exploring issues with combining pyramid applications and plaster

2020-11-26 Thread Karl O. Pinc
Hello, I'm writing to explore an issue with the idea behind being able to use multiple file formats for settings, as is supported by plaster, and combining pyramid applications. Pyramid applications might be combined. Either through Configurator().include() or by a manual merging. If 2 pyramid

Re: [pylons-devel] PasteDeploy in the Pylons GitHub org?

2016-03-10 Thread Karl O. Pinc
On Wed, 9 Mar 2016 22:55:20 -0500 Jon Rosebaugh wrote: > On 3/9/16 12:29 PM, Karl O. Pinc wrote: > > On Wed, 9 Mar 2016 03:18:49 -0600 > > "Karl O. Pinc" wrote: > >> Raw python literal expressions parsed with ast.literal_eval(), > >> read from a

Re: [pylons-devel] PasteDeploy in the Pylons GitHub org?

2016-03-09 Thread Karl O. Pinc
On Wed, 9 Mar 2016 03:18:49 -0600 "Karl O. Pinc" wrote: > On Tue, 8 Mar 2016 20:26:36 -0800 > Mike Orr wrote: > > > On Tue, Mar 8, 2016 at 4:22 PM, Michael Merickel > > wrote: > > > > I think with the advent of montague by Joe Rosenbaugh a

Re: [pylons-devel] PasteDeploy in the Pylons GitHub org?

2016-03-09 Thread Karl O. Pinc
On Tue, 8 Mar 2016 20:26:36 -0800 Mike Orr wrote: > On Tue, Mar 8, 2016 at 4:22 PM, Michael Merickel > wrote: > > I think with the advent of montague by Joe Rosenbaugh as well as > > 12-factor app design I know, personally, that I'm ready to start > > having a conversation about what to do in t

Re: [pylons-devel] Best Practices with ORM use

2016-01-06 Thread Karl O. Pinc
On Wed, 6 Jan 2016 13:35:18 -0800 (PST) Danuel Williams wrote: > Currently I am developing an application where I initialize some > mapped tables from my DB via ORM (SqlAlchemy) within a module, and > then I import these tables into the views I need and then perform > operations on them within th

Re: [pylons-devel] Re: wsgi server of choice?

2015-10-20 Thread Karl O. Pinc
On Tue, 20 Oct 2015 18:29:38 +0100 Chris Withers wrote: > What do people use for their development process? (I guess the > equivalent of django's manage.py runserver). > > Sorry, I feel like I'm missing some docs somewhere, so please feel > free to point me their way... You may be missing the

Re: [pylons-devel] wsgi server of choice?

2015-09-24 Thread Karl O. Pinc
On Thu, 24 Sep 2015 09:25:14 -0700 (PDT) Chris Withers wrote: > What's the recommended wsgi server for Pyramid apps nowadays? FYI. I find the uwsgi documentation to be little more than a nightmareish collection of recipes. Painless, perhaps, if you find a recipe that meets your needs but awfu

Re: [pylons-devel] Begginer Advice

2014-11-25 Thread Karl .O Pinc
Hi, The approach I took was to go through the reference documentation, the book. The first chapter or 2 get you set up with a new project and then only the next couple of chapters are really necessary to produce something reasonably workable. The one exception might be authentication and authori

Re: [pylons-devel] static_url usage

2014-08-15 Thread Karl O. Pinc
Hello, On 08/15/2014 05:39:51 PM, davide moro wrote: > I've registered a static view > > >>> config.add_static_view('images', > 'p_started:webapp/app/images', > cache_max_age=3601) > So depending on > the > .ini settings my app will register webapp/app/images or > webapp/dist/images > (

Re: [pylons-devel] Making waitress log requests

2014-08-10 Thread Karl O. Pinc
Hi, On 08/10/2014 03:52:35 PM, Ram Rachum wrote: > I have a question. I'm using waitress on my development machine > (instead of > Django runserver). What I miss from runserver is having log entries > in > the > console for every request made. How can I have that with waitress? Use Paste's Tra

Re: [pylons-devel] Bugs in SessionAuthenticationPolicy

2014-08-06 Thread Karl O. Pinc
On 08/06/2014 10:16:18 AM, Michael Merickel wrote: > It sounds like you are not using the > `pyramid.security.remember(request, userid)` API to store the user in > the session. No, I'm not. The need for this is not mentioned anywhere in the (1.5.1) security chapter. Thanks for the help. Kar

[pylons-devel] Bugs in SessionAuthenticationPolicy

2014-08-06 Thread Karl O. Pinc
Hi, I'm using pyramid 1.5.1 and in trying to figure out SessionAuthenticationPolicy I found problems. I looked at HEAD (I think) on github and problems seem to exist there too. unauthenticated_userid is not documented. The callback function is never called. The debug output is: 2014-08-06 02: