Re: Pyramid web-app and accounting, tracking/limit user navigation on the website

2013-02-27 Thread Fabio Dive
Thank you! On Tue, 26 Feb 2013 08:49:42 -0800 (PST) Jonathan Vanasco jonat...@findmeon.com wrote: With digital media you can run a companion ajax call to 'ping' the server every n seconds - but that isn't very secure. that method is largely used for performance and audience analytics. if

Re: Pyramid web-app and accounting, tracking/limit user navigation on the website

2013-02-26 Thread Fabio Dive
On Mon, 25 Feb 2013 13:53:27 -0800 (PST) Jonathan Vanasco jonat...@findmeon.com wrote: - Stash a session_start timestamp in the session - At the start of every request, run a function to check the session_start timestamp against `now`. if your criteria is met, you can invalidate the session,

Pyramid web-app and accounting, tracking/limit user navigation on the website

2013-02-25 Thread Fabio Dive
Hello all! Is there any way to do accounting with pyramid python? I would like to develop a web application where the users navigation time is tracked. When the preconfigured usage time is passed, the session get invalidated and the user get logged out. I already have all the code for

Re: dogpile.cache 0.1.0 released

2012-04-09 Thread Fabio Dive
this project is awesome but could be nice to have some other database backends to store the keys, for example an extension for redis or mongodb. Thank you for your work, I run to try this first relase. regards, f. On Mon, Apr 9, 2012 at 15:28, Michael Bayer mike...@zzzcomputing.com wrote: Hello

Re: anyone have an idea to discern if we're operating as https or not ?

2012-03-10 Thread Fabio Dive
dear Jonathan, I write here my setup: I have a frontend nginx server with SSL, on the backend pyramid. I use beaker session and session.secure = true, this way I limit the cookies to HTTPS. If somebody try to use HTTP it will redirected to HTTPS and the a new session will generated if not exist.

PYRAMID: autotranslation based on HTTP Header

2012-02-21 Thread Fabio Dive
Hello all! Is there a way for pyramid to automatically switch language depending on the request.headers['Accept-Language']? I was studying the documentation and I didn't find the way to do it. Actually automatic language translation is working for me if I put request.locale_name = en in a new

Re: PYRAMID: autotranslation based on HTTP Header

2012-02-21 Thread Fabio Dive
On Tue, Feb 21, 2012 at 22:22, Damien Baty damien.b...@gmail.com wrote:        Hello, Le 21/02/12 23:11, Fabio Dive a écrit : Is there a way for pyramid to automatically switch language depending on the request.headers['Accept-Language']? You need to define a locale negotiator

Re: Limited traversal

2012-02-19 Thread Fabio Dive
Great Job Michael, this simplify a lot the concept and the design I use with my applications with user data. Do you think I can write a class to retrieve data from the beaker session if it is loaded instead of dbconn? In case of None I can proceed with dbconn..is this the best approach to

creating an abstraction layer class to manage resources

2012-02-18 Thread Fabio Dive
Hello all, I am not a pyramid expert and I am doing my best to develop further skills. Maybe my idea was already solved in a more elegant and more convenient way, so please, if you know that, answer me, it will be very appreciated. I am developing a project with SQLAlchemy and Beaker Session,

Re: creating an abstraction layer class to manage resources

2012-02-18 Thread Fabio Dive
On Sat, Feb 18, 2012 at 18:14, Jonathan Vanasco jonat...@findmeon.comwrote: i tend to structure applications - python, php, whatever - like this: - I use multiple Database Handles. This is always at least a reader and a writer. On the database level, the reader is privileged to only select

Re: Static Assets Question

2012-02-17 Thread Fabio Dive
On 02/17/12 05:32, Bruce Coble wrote: Hi all, I am attempting to use some tw2 Toscawidgets in a Pyramid application, and when those widgets need to inject their own js/css required files into my code, they use http://127.0.0.1:6543/resources; as an alias for my virtual pythons site-packages

Re: pyramid_mailer and sendmail

2012-02-17 Thread Fabio Dive
Hello, currently i am using pyramid_mailer interfaced with postfix on a FreeBSD machine...at the moment it is working fine, I like also the debug mode. f. On Fri, Feb 17, 2012 at 21:36, Jonathan Vanasco jonat...@findmeon.comwrote: has anyone built something similar to pyramid_mailer that is