durusmail: quixote-users: how to publish? what's corresponding to old publish_cgi() ?
how to publish? what's corresponding to old publish_cgi() ?
Re: how to publish? what's corresponding to old publish_cgi() ?
how to publish? what's corresponding to old publish_cgi() ?
Florian Konnertz
2006-07-04
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 '''
                    
                    

Simple Quixote Server

A link.
''' def hello(self): return 'Hello world!

Home' 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
reply