how to publish? what's corresponding to old publish_cgi() ?

Florian Konnertz <[email protected]>
Newsgroups gmane.comp.web.quixote.user
Message-ID <[email protected]>
Hi all

Just started a new project with upgraded 2.4, looks good for me but i
have the simple problem that i cant figure out how what method to call
on publisher to start the publishing process.
I am used to 1.0 where i called
publisher.publish_cgi()


Here's my code - index.cgi
I use lighttpd web server

from quixote import enable_ptl
from quixote.publish import Publisher
from quixote.directory import Directory


class RootDirectory(Directory):
    _q_exports = ['', 'hello']
    def _q_index(self):
        return '''<html>
                    <body>
                    <h1>Simple Quixote Server</h1>
                    A <a href="hello">link</a>.<br>
                    </body>
                  </html>
                '''
    def hello(self):
        return '<html><body>Hello world!<br><br><a
href="/">Home</a></body></html>'


def create_publisher():
    return Publisher(RootDirectory(), display_exceptions='plain')


#enable_ptl()
publisher = create_publisher()


thx in advance,
Florian

-- 
Florian Konnertz   ---   http://florian-konnertz.de	
Mein ebay-(Buch-)Shop: http://stores.ebay.de/AusLeseHaus
0821/5672792 - 0176/27252516
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.