Re: Integration of Sphinx (files) into a Pyramid application

2012-11-06 Thread Eldav
Hi Andreas, I recently had to solve a similar problem, and I chose to export my Sphinx document in pickle format (initially I wanted to develop a Sphinx Bootstrap theme, but I found the pickle approach much simpler). In this format, each page of your document is generated as a pickled

Re: [pylons-discuss] set i18n default language

2021-06-22 Thread Eldav
Hi Estartu, As far as I know, extractors only extract messages to .pot files (PO Templates), as their name implies, nothing more. POT files are not associated to a language, they just list messages IDs found in the source code, with the corresponding translations left empty. So, I have doubts

Re: [pylons-discuss] Re: using pyramid without an ORM ?

2022-08-20 Thread Eldav
Hi everybody, I just about crack a gear every time I see raw SQL used in JS or some other > language ecosystem. We have a space ship right here, right now. Why are > people strapping cardboard to their arms? I've done it before myself many > years ago and all I really learned was that it

[pylons-discuss] Re: using pyramid without an ORM ?

2022-08-11 Thread Eldav
sorry, database *abstraction* (stupid typo) Le jeudi 11 août 2022 à 18:22:07 UTC+2, Eldav a écrit : > Hello, > > afaik, nothing forces you to use SQLAlchemy with Pyramid (after all, you > could decide to use a non-relational database such as the ZODB or MongoDB). > > If you

[pylons-discuss] Re: using pyramid without an ORM ?

2022-08-11 Thread Eldav
Hello, afaik, nothing forces you to use SQLAlchemy with Pyramid (after all, you could decide to use a non-relational database such as the ZODB or MongoDB). If you are sure that you won't need database attraction later, you can talk to psycopg2/3 directly. By doing so, you will also lose the

Re: [pylons-discuss] Problems when using Gunicorn and Postgresql together

2023-11-18 Thread Eldav
Thank you Theron, I'm not using "--preload", actually not doing anything special, since I'm trying to use Gunicorn as a drop-in replacement for Waitress, like I always did, BUT I'm realizing that I was using `psycopg2` in the past, whereas I`m using `psycopg` (i.e. version 3) now, and version

Re: [pylons-discuss] Problems when using Gunicorn and Postgresql together

2023-11-21 Thread Eldav
Thank you Jonathan, after asking my question, I did more googling and found this : https://docs.sqlalchemy.org/en/20/core/pooling.html#pooling-multiprocessing It does mention Engine.dispose :) I tried their solution #4, which seemed to be the one which fit best in my code. But somehow I feel

Re: [pylons-discuss] Problems when using Gunicorn and Postgresql together

2023-11-21 Thread Eldav
This should not happen. Do you know which cookiecutter you used, and when? This should not happen in the most recent cookiecutter. As far as I remember, I used the official cookiecutter, but that was a few years ago (around the time when Pyramid 2.0 was released, and I felt the need to