List Info

Thread: No response from CP2.2




No response from CP2.2
user name
2006-05-31 13:42:21
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
:

[moiLinux2 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-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at http://
groups.google.com/group/cherrypy-users
-~----------~----~----~----~------~----~------~--~---

No response from CP2.2
user name
2006-05-31 13:51:19
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 :
>
> [moiLinux2 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-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at http://
groups.google.com/group/cherrypy-users
-~----------~----~----~----~------~----~------~--~---

No response from CP2.2
user name
2006-05-31 13:54:53
Hi,

The current svn is, well, quite different from CP2.2 
You might want to read http://tinyurl.com/n8utk
for more info.

François wrote:
> 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 :-(

> --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()
There's atleast one thing that I can think of: in addition
to starting
the server you also need to start the 'engine':
cherrypy.engine.start()

Also, I'm not sure whether the cherrypy.root approach still
works: you
may have to use cherrypy.tree.mount().

-Ari Turpeinen



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at http://
groups.google.com/group/cherrypy-users
-~----------~----~----~----~------~----~------~--~---

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )