durusmail: quixote-users: bug in demo_scgi.py
bug in demo_scgi.py
2003-01-27
2003-01-28
bug in demo_scgi.py
David M. Cooke
2003-01-27
Sorry to point this out after the 0.6b2 release...

demo/demo_scgi.py is incorrect -- it never uses the defined
DemoPublisher class (which also has a bug in it...). Here's the patch:

diff -Naur Quixote-0.6b2.orig/demo/demo_scgi.py Quixote-0.6b2/demo/demo_scgi.py
--- Quixote-0.6b2.orig/demo/demo_scgi.py        2003-01-27 14:35:25.000000000
-0500
+++ Quixote-0.6b2/demo/demo_scgi.py     2003-01-27 15:46:07.000000000 -0500
@@ -15,7 +15,7 @@

 class DemoPublisher(Publisher):
     def __init__(self, *args, **kwargs):
-        Publisher.__init__(*args, **kwargs)
+        Publisher.__init__(self, *args, **kwargs)

         # (Optional step) Read a configuration file
         self.read_config("demo.conf")
@@ -25,6 +25,7 @@


 class DemoHandler(QuixoteHandler):
+    publisher_class = DemoPublisher
     root_namespace = "quixote.demo"
     prefix = "/qdemo"

--
|>|\/|<
/--------------------------------------------------------------------------\
|David M. Cooke                 http://arbutus.physics.mcmaster.ca/cookedm/
|cookedm@physics.mcmaster.ca

reply