[pylons-discuss] Problems with debug toolbar when running via uwsgi

2016-01-21 Thread Achim Domma
Hi, we have a problem with the debug toolbar. It is working fine, when the application is run via pserve on local development machines. When running the application using uwsgi, the debug toolbar fails quite often. Or one could also say, it works "sometimes", which of course makes it hard to

[pylons-discuss] How to replace configured authentication policy?

2015-09-23 Thread Achim Domma
Hi, for testing purposes I want to replace my authentication policy. My app has some setup(conf) method, which expects a Configurator and configures the app. This method also configures the authentication and authorization. In my test code, I set up a Configurator, pass it to my setup method

[pylons-discuss] How to manage configuration for multiple app instances of single code base?

2015-07-29 Thread Achim Domma
Hi, we have a single code base which is run as multiple instances for multiple customers. We have settings which are specific to a single instance (database connection), to a group of instances (some flag turned on or off) and global settings. Currently we manage the settings in a json file

[pylons-discuss] Pyramid + authentication via Facebook, Twitter, ...

2015-04-15 Thread Achim Domma
Hi, I'm starting a small just-for-fun app, where I require users to login. I don't want to implement user management on my own, so I would like to allow only authentication via Facebook, Twitter, ... or any OAuth provider. I looked around, but it's hard to get a clear picture what's the way to

[pylons-discuss] Re: random 404 error when using debug toolbar

2014-09-26 Thread Achim Domma
The server did not restart, but you pointed me in the right direction: The toolbar was running on a system running multiple workers via uwsgi. Obviously that was the problem. Thanks for the help. On Wednesday, September 24, 2014 5:19:05 PM UTC+2, Jonathan Vanasco wrote: the toolbar will 404

[pylons-discuss] random 404 error when using debug toolbar

2014-09-24 Thread Achim Domma
Hi, we are using the debug toolbar, including one custom tab developed by us. Everything worked quite stable for a long time, but recently we encounter some strange 404s when opening the debug infos. As it is not happening on all machines and rather randomly, it's hard for me to provide more

[pylons-discuss] get_current_request() for debug output / logging?

2014-07-20 Thread Achim Domma
Hi, the documentation is quite clear about the Don't do that!!! regarding usage of get_current_request(). But however I approach my problem, I end up with get_current_request being the best solution, so I thought I should ask for permission. ;-) Here is my scenario: I have some service

Re: [pylons-discuss] ZCA version used in Pyramid - matching documentation?

2014-07-12 Thread Achim Domma
mentioned in the change log of zope.interface, I hope it can be seen as a part of Pyramid. cheers, Achim On Thursday, July 10, 2014 7:09:58 PM UTC+2, Chris McDonough wrote: On 07/10/2014 08:46 AM, Achim Domma wrote: Hi, I'm making more and more use of ZCA in my web app. Looking at http

[pylons-discuss] ZCA version used in Pyramid - matching documentation?

2014-07-10 Thread Achim Domma
Hi, I'm making more and more use of ZCA in my web app. Looking at http://docs.zope.org/zope.component/ I see documentation for ZCA and Zope 3 Component Architekture. They are similar from a conceptual point of view, but seem to differ in some API details. To me it looks like the upper version

[pylons-discuss] Modify the way view callables are called.

2014-06-25 Thread Achim Domma
Hi, I would like to modify the way, how my views are called. The idea would be, to inject some code, which maps the request and context objects to a set of different arguments, which are then passed to the view. To make it more concrete: At the moment I do something like this: def

[pylons-discuss] Workaround for forward slashes in URL

2014-05-08 Thread Achim Domma
Hi, I have the following two routes in my application: /{base_id}/{sub_id}/{some_text} /{base_id}/{sub_id} Obviously I assume that none of these parts contains a slash, which has just proven to be wrong. ;-) I have control over some_text, so I can make sure, that it will not contain a slash,

[pylons-discuss] Development workflow for Pyramid/Cornice REST Service + AngularJS GUI

2014-04-22 Thread Achim Domma
Hi, I want to develop a REST service using Pyramid + Cornice. The UI should be implemented in AngularJS. I'm quite happy with my normal Pyramid/Python workflow using virtualenvs, pserve for local development, ... The tool of choice in the Javascript world seems to be http://yeoman.io/ The

[pylons-discuss] Re: Pyramid + Video Games = ❤

2014-03-16 Thread Achim Domma
To me this is quite exciting and I would be very interested in every detail you would be allowed to share. I would be very curious how you build the backend to sync access to a real time world engine which is shared by many users. cheers, Achim Am Donnerstag, 13. März 2014 01:16:16 UTC+1

[pylons-discuss] Using the ZCA in a Pyramid web application

2014-03-16 Thread Achim Domma
Hi, I have a growing web application which implements sophisticated search and reporting functionality. To decouple some of our components, I would like to use the ZCA, but I'm not perfectly sure how to do it. The first question would be, how to access the registry in the correct way during

[pylons-discuss] Hidden exception behind AttributeError: 'NoneType' object has no attribute 'split'?

2014-02-11 Thread Achim Domma
Hi, I have a small Pyramid app which worked fine until yesterday. In one certain view I get the following stack trace: Traceback (most recent call last): File /usr/lib/python2.7/wsgiref/handlers.py, line 86, in run self.finish_response() File /usr/lib/python2.7/wsgiref/handlers.py, line

[pylons-discuss] Testing: ComponentLookupError in handle_request

2013-11-27 Thread Achim Domma
Hi, I'm still struggeling with finding the best way to write higher level tests for my app. My ideal scenario would be: - Start with request data. For the time being just having GET requests would be ok, so I'll start with an URL. - I would like to generate a request instance from that URL,