On Thu, Jan 02, 2003 at 02:19:09PM -0500, Tom Jenkins wrote: > For example, one thing i really like in Zope is the getUser() call. > This will load the user info from the db into a user instance. we use > exUserFolder and store our users in postgresql. Now where or how > would i do that in quixote. I'm guessing you want sessions. When you have sessions working then you probably want get_user(). You can import it directly from the Quixote package (eg. "from quixote import get_user"). It's a trivial function that basically returns request.session.user. We are trying to put together an open source library for building application on top of Quixote using ZODB as the database. The persistent session and user management code could be useful to study but I have no idea when it will be released. There is a little demo in the Quixote distribution that implements persistent sessions using pickle and the filesystem. I'm not sure how useful that would be to you. > What about persistent database connections? What's the best way to > manage this? I'm not sure I understand your question. We use mod_scgi to connect Apache to our application server. There are typically between 1 and 5 instances of the server running. Each process opens a database connection when it starts and keeps it open while handling requests. The only time connections are closed is when the server is shutdown. Neil