[mod_python] How to use Classes

Sanjeev Divekar sanjeevdivekar at gmail.com
Sat Jul 15 09:55:32 EDT 2006


Hi guys

How can i use Classes in mod_python.
*************************************************************************
class myclass:
    def __init__():
        return "Hello"

    def index(req,para=''):
        tmpl = psp.PSP(req, filename='a.html')
        tmpl.run(vars={'para':para})
        return

    def show_data(req, para):
        msg = "Your first name is " + para[0]
        index(req, para=msg)
        return
*************************************************************************
Any good documentation/ebook/sample app on mod_pythong

-- 
Sanjeev Divekar
Sanmisha Technologies
Mobile : +91 9820427416
Email  : sanjeev at sanmisha.com


More information about the Mod_python mailing list