mod_python examples

Thanos Vassilakis tvassila at siac.com
Fri Jan 31 11:26:18 EST 2003


Tyr looking at pso as it greatly simplifies the use in mod_python.

We generally develope our web services  with pso using CGI. Then realease
in production under mod_python. PSO abstracts the the service handling.

You dont really need to learn about mod_python and some things are just
much easier:
1) getting environment variables
2) setting abd getting cookies,
3) file uploads
4) setting return status
5) redirection
And  a lot more

see:

 user guide: http://www.scriptfoundry.com/modules/pso/doc/pso-guide.html
 sessions and mod_python:
 http://www.scriptfoundry.com/modules/pso/doc/session-modpython.html
 and the building a site:
 http://www.scriptfoundry.com/modules/pso/doc/pso-example.html
 thanos




                                                                                                                                  
                    "francois lepoutre"                                                                                           
                    <franck.lepoutre at car        To:     python-list at python.org                                                    
                    amail.com>                  cc:                                                                               
                    Sent by:                    Subject:     Re: mod_python examples                                              
                    python-list-admin at py                                                                                          
                    thon.org                                                                                                      
                                                                                                                                  
                                                                                                                                  
                    01/31/2003 03:20 AM                                                                                           
                                                                                                                                  
                                                                                                                                  




> I need a couple of larger examples than what the
> official mod_python documentation gives
> (which isn't really much for
> a newbie to mod_python).

What kind of things are you looking for?

mod_python is both a superb idea and
a great achievement. You can build great
apps with a couple lines of codes:

- read the code carefully, install the
package and you existing cgi will fly,

- grasp the publisher concepts, push
a couple of hundreds lines of object-based
code and you have a minimal persistent
app "à la zope",

- get a firmer hand on the whole mod_python
picture, build you own framework (a couple of
thousand lines) and you have your own portal
framework.

Of course the documentation is nice but concise.
A couple of diagrams would help.

I tend to believe that most users of
mod_python have a strong apache/perl
background. That may explain why
the documentation - despite great - is so dry.

I am preparing a couple of pages dedicated to
mod_python/win32 and cross-platform
development issues on which i stumbled.

Just wish i had to the time to produce them.

The only thing i can tell up to now read the
documentation, read it twice or thrice if needed.

If you wish more general information
on optimization tips and tricks, you
should dive into mod_perl/apache docs.

May google will help you on this...

François


--
http://mail.python.org/mailman/listinfo/python-list









More information about the Python-list mailing list