Re: [Tutor] mod_python.publisher

2005-09-02 Thread Danny Yoo


On Fri, 2 Sep 2005, Scott Oertel wrote:

> Scott Oertel wrote:
>
> > I'm having an issue with mod_python.publisher,
> >
> > supposedly i should be able to just place this code
> >
> > def index():
> >return "This is only a test."
> >
> > into test.py and when placed into my browser it should run the index
> > function by default, but instead i get a 404 error.

Hi Scott,

The question you're asking is pretty specific to mod_python; you may get
better help by asking the mod_python mailing list.

http://mailman.modpython.org/mailman/listinfo/mod_python

We on Tutor don't have special expertise on mod_python, and you may be
better served by asking the mod_python folks for help.


Anyway, take a closer look at:

http://www.modpython.org/live/current/doc-html/hand-pub-alg-trav.html

Their example functions all take a request object.  Are you sure you don't
need to include the request as an argument of the default index handler?

___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] mod_python.publisher

2005-09-02 Thread Scott Oertel




Scott Oertel wrote:

  
  
  I'm having an issue with mod_python.publisher,
  
supposedly i should be able to just place this code 
  
  def index():
   return "This is only a test."
  
into test.py and when placed into my browser it should run the index
function by default, but instead i get a 404 error.
  
i'm running Apache/1.3.33 (Unix) mod_python/2.7.11 Python/2.2.3
  
  
  
-Scott Oertel
  
  
  

___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
  

Just for fun i decided to upgrade the python version to 2.4.1 

Apache/1.3.33 (Unix) mod_python/2.7.11 Python/2.4.1 mod_gzip/1.3.26.1a
mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4
FrontPage/5.0.2.2635 mod_ssl/2.8.22 OpenSSL/0.9.7a PHP-CGI/0.1b

still no luck   =(


___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor