Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: Are the samples supposed to be working?

  1. #11
    Join Date
    Oct 2007
    Posts
    11

    Default

    Quote Originally Posted by gregturn View Post
    Okay, upgrade CherryPy to 3.1.2, and everything works.

    I should probably open a ticket to upgrade our dependencies.
    I upgraded to 3.1.2 and things seem to be looking better. However, it looks like the server is binding to 127.0.0.1:8080 and I am not sure how I can change that.

    Code:
    ...
    [24/Nov/2009:07:17:28] ENGINE Started monitor thread 'Autoreloader'.
    [24/Nov/2009:07:17:28] ENGINE Serving on 127.0.0.1:8080
    [24/Nov/2009:07:17:28] ENGINE Bus STARTED
    ...
    I am running the sample application on a headless system and want to be able to access it from my desktop's browser. Can I configure this easily?

  2. #12
    Join Date
    Jul 2009
    Posts
    4

    Default

    Quote Originally Posted by simensen View Post
    Are these forums the best place to discuss questions and problems with Spring Python or is there a more appropriate place? (like IRC, etc.)
    The forums is fine. There's also a mailing list http://springpython.webfactional.com/node/12 and the IRC channel, #springpython on Freenode network.

    take care,
    Dariusz Suchojad

  3. #13
    Join Date
    Aug 2006
    Posts
    382

    Default

    Quote Originally Posted by simensen View Post
    Thanks for looking into this, Greg. If I am reading you correctly, it sounds like there is something with the sample applications that will not work with Python > 2.5. Is that correct? If so, would you say that if I were to start from scratch it would be safe to build an application for CherryPy with Spring Python?

    I am very new to Python but I have used Spring for Java in the past. I am a little afraid to lock myself into something like Django so I thought I would look into projects like Snake Guice and Spring Python. I am just not sure how stable/solid either of these projects are going to be.

    Not having a working example I can tinker with is making it difficult for me to come to that decision on my own. I get the feeling that Spring Python is a lot further along than Snake Guice and given my experience with Spring Python, it seems like it might be a good fit.

    Are these forums the best place to discuss questions and problems with Spring Python or is there a more appropriate place? (like IRC, etc.) I am thinking my stack is going to consist of Spring Python, CherryPy and SQLAlchemy.
    Yeah, it seems, to be specific, python 2.5.2+ breaks CherryPy 3.1.0. I didn't checkout python2.6. You need the more up-to-date version of CherryPy I posted earlier in this thread.

    I can't speak to Snake Guice. Evaluate them as you wish. Heck, it may work with Spring Python nicely. Let me know!

    Regarding where to discuss, yeah these forums are good. My current job doesn't let me use IRC, however Dariusz (the other committer to SP's code base) does.
    Greg L. Turnquist (@gregturn), SpringSource/VMware
    Project Lead: Spring Python and author of Spring Python 1.1 and Python Testing Cookbook.
    Listen to Pond Jumpers, the international podcast for open source developers.
    These comments are my own personal opinions, and do not reflect those of my company.

  4. #14
    Join Date
    Aug 2006
    Posts
    382

    Default

    Quote Originally Posted by simensen View Post
    I upgraded to 3.1.2 and things seem to be looking better. However, it looks like the server is binding to 127.0.0.1:8080 and I am not sure how I can change that.

    Code:
    ...
    [24/Nov/2009:07:17:28] ENGINE Started monitor thread 'Autoreloader'.
    [24/Nov/2009:07:17:28] ENGINE Serving on 127.0.0.1:8080
    [24/Nov/2009:07:17:28] ENGINE Bus STARTED
    ...
    I am running the sample application on a headless system and want to be able to access it from my desktop's browser. Can I configure this easily?
    If you look in the part of the code that runs the actual CherryPy app, you will see something like this:

    Code:
        conf = {'/': 	{"tools.staticdir.root": os.getcwd(),
                             "tools.sessions.on": True,
                             "tools.filterChainProxy.on": True},
                "/images": 	{"tools.staticdir.on": True,
                             "tools.staticdir.dir": "images"},
                "/html": 	{"tools.staticdir.on": True,
                          	 "tools.staticdir.dir": "html"}
                }
    You can override the IP address and port number used for hosting like this:

    Code:
        conf = {'/': 	{"server.socket_host": "<your IP address>",
                              "server.socket_port": <your port number>,
                              "tools.staticdir.root": os.getcwd(),
                              "tools.sessions.on": True,
                              "tools.filterChainProxy.on": True},
                "/images": 	{"tools.staticdir.on": True,
                             "tools.staticdir.dir": "images"},
                "/html": 	{"tools.staticdir.on": True,
                          	 "tools.staticdir.dir": "html"}
                }
    Greg L. Turnquist (@gregturn), SpringSource/VMware
    Project Lead: Spring Python and author of Spring Python 1.1 and Python Testing Cookbook.
    Listen to Pond Jumpers, the international podcast for open source developers.
    These comments are my own personal opinions, and do not reflect those of my company.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •