Re: svn commit: r290569 - /httpd/mod_python/trunk/lib/python/mod_python/SQLiteSession.
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache Mod-Python > Re: svn commit: r290569 - /httpd/mod_python/trunk/lib/python/mod_python/SQLiteSession.




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Re: svn commit: r290569 - /httpd/mod_python/trunk/lib/python/mod_python/SQLiteSession.  
Jim Gallacher


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-23-05 01:47 AM

Gregory (Grisha) Trubetskoy wrote:
>
> OK, my next question would be - is MySQL, PostgreSQL, Informix, Oracle,
> etc next,

Yes. ;)

> and is this the path we want to take, or is there something
> about sqlite that makes it unique?
>

I don't know if it is that path we *want* to take, but I think there is
a certain inevitability that it's the path we *will* take. I'm
personally thinking about a mysql backend, not because I need it but
because I'm curious to compare the performance with FileSession.

The best approach might be to refactor Session.py to easily accommodate
subclasses for other persistent stores. Any new session subclasses get
their own file eg.

mod_python/sessions/sqlite.py
mod_python/sessions/mysql.py

That way there are no dependency problems in Session.py. If some code
imports sessions.sqlite and sqlite is not installed then let it raise an
exception as it should.

The current Session.py could stay as is, or we could split FileSession,
DbmSession and MemorySession into their own files and just have a stub
in Session.py for backward compatability. This reorganization may also
make it easier for users to create their own session subclasses.Related
to this, the current code for Session.Session only allows one of the
standard session classes to be specified by "PythonOption session". It
would be nice if it there was a way to make this more dynamic and the
refactoring might assist in this.

On another note, if we are starting to roll with new features for 3.3 I
would suggest we need to immediately create a new svn branch for 3.2
bugfixes.

Regards,
Jim


> On Thu, 22 Sep 2005, Robert Sanderson wrote:
> 
>







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 04:40 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register