Hi François,
The proble; is that the current SVN version of CP is the
upcoming version
3.0 which has a different behavior in some areas.
The difference you see comes from the fact that in CP3 you
now need to call:
cherrypy.server.start()
cherrypy.engine.start()
Whereas in CP2.x you only needed:
cherrypy.server.start()
I would strongly advise to come back to CP 2.2.1 if you
don't want to
spend time upgrading your application. Although to be
honest, if you don't
use filters then moving to CP3.0 should be very easy.
- Sylvain
>
> Hello,
>
> Sorry for my english, but I speak french (or spanish).
>
> I use CP with python 2.3 for my intranet
> I've just updated cp with svn and I don't have
anything any more on my
> my browser now :-(
>
> Whe I run this simple test below, I got on my console
screen :
>
> [moi Linux2 tmp]# python test.py
> 31/May/2006:15:30:48 HTTP INFO Serving HTTP on http://localhost:8080/
>
> CP is launched on port 8080 and not 8085 and my browser
tell me :
>
>
> Response headers - http://localhost:8080/
>
> Content-Length: 0
> 404 Not Found
>
> Any idea ?
>
> François
>
>
> --8<--test.py-------------------------
> import cherrypy
> class Root:
> def index(self):
> return 'test'
> index.exposed = True
>
> setting = {'global': { 'server.socketPort' : 8085,
> 'server.environment':
"development"} }
>
> cherrypy.root = Root()
> cherrypy.config.update(setting)
> cherrypy.server.start()
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-users googlegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribe googlegroups.com
For more options, visit this group at http://
groups.google.com/group/cherrypy-users
-~----------~----~----~----~------~----~------~--~---
|