Re: Regex based publisher proposal

2006-09-10 Thread Graham Dumpleton
On 10/09/2006, at 12:28 PM, Sébastien Arnaud wrote: I love the wiki you put together, lots of great stuff in there! I am going to go back to the drawing board here due to all the new things you presented available in mod_python 3.3 which I did not know about. It looks like a fixuphandler

Re: Regex based publisher proposal

2006-09-09 Thread Sébastien Arnaud
Hi Dan, I use the Queue class to perform DB pooling, and use 3 different types of templating system in various mod_python applications. So yes, mod_python makes all those customization very easy and it is why I love it as well. The only downside I have found is that after developing

Re: Regex based publisher proposal

2006-09-08 Thread Dan Eloff
* DB connection pooling Got that. It's actually very simple. Just derive from the Queue class, it's already synchronized. Override pop with the logic for handing out connections. Simply use put to return it when you're done. I recommend putting the db information in a config file like rails

Re: Regex based publisher proposal

2006-09-07 Thread Sébastien Arnaud
Thank you all for taking the time to read my code, I apologize for not including a better description of what I intended to do, but I was reluctant to post a very very long message to the list to start with, so I am going to blame my poor editing skills and the late hour I sent this email

Re: Regex based publisher proposal

2006-09-07 Thread Graham Dumpleton
On 08/09/2006, at 2:53 PM, Sébastien Arnaud wrote: In short, Nicolas did read my mind correctly in regards to what I am attempting to do here. I have searched and searched like many python developers for a proper web framework and I have settled for mod_python about 2 years ago. I tried

Re: Regex based publisher proposal

2006-09-07 Thread Graham Dumpleton
On 07/09/2006, at 2:59 PM, Sébastien Arnaud wrote: Anyway, please share your comments and feedback to make sure I am headed in the right direction by keeping in mind that my first goal is to be able to publish using a defined regex url grammar a callable class within a module. I believe

Re: Regex based publisher proposal

2006-09-07 Thread Jorey Bump
Sébastien Arnaud wrote: Directory /mypath/mydir/ AddHandler mod_python .py .html PythonHandler mod_python.pubre PythonOption pubregex (?Pcontroller[\w]+)?(\.(?Pextension[\w]+))?(/(?Paction[^/]+))?(\?$)? /Directory I know that not all grammars will work with the current version

Re: Regex based publisher proposal

2006-09-07 Thread Nicolas Lehuen
What Sébastien proposes is the kind of dispatching mechanism used in Django, and (without regular expressions) in Rails and Routes (http://routes.groovie.org/). This tends to prove that some people find it useful. The proposed implementation, however, is another story. There are the problems that

Regex based publisher proposal

2006-09-06 Thread Sébastien Arnaud
Hi, I have been following with passion mod_python development for quite a while now, and in the light of a few emails over the past few months discussing web frameworks in mod_python, I decided I would attempt to contribute to the project in order to move towards a fast, flexible MVC

Re: Regex based publisher proposal

2006-09-06 Thread Graham Dumpleton
On 07/09/2006, at 2:59 PM, Sébastien Arnaud wrote: Hi, I have been following with passion mod_python development for quite a while now, and in the light of a few emails over the past few months discussing web frameworks in mod_python, I decided I would attempt to contribute to the