Applications Google
Menu principal

Post a Comment On: Only Python

"CherryPy is great!"

9 Comments -

1 – 9 of 9
Anonymous Anonymous said...

Hello,

I also find CherryPy great :)

Just a question: I've seen that you have syntax color in your Python code (in this Blogger post).

Can I ask you how you did that ? (I didn't any find any "code" button in Blogger and tried a "code" tag without success).

Thanks

cheers

4:34 AM

Blogger André Roberge said...

When creating a new post in blogger, there is an editor with a small toolbar. One of the option is to highlight some text and assign it a color from a palette. So, the coloring is done "by hand" in a WYSIWYG fashion.

7:29 AM

Anonymous Anonymous said...

Ok I thought that there was maybe a kind of pulgin.
Thanks for the answer and for you interesting blog.

francois

1:35 PM

Anonymous Anonymous said...

Glad you are enjoying CherryPy! It is quite easy to get going, and once you start, you can't stop. You've been warned ;-)

Christian

12:15 AM

Blogger Unknown said...

Hi,
I am using Cherrypy to write a small application as well. I needed help on how do I pass or use variables defined in one function, in another function.
Also, how do you pass data to and from HTML code to the python(cherrypy) code.

Thnx,
Ashysh

7:21 PM

Blogger André Roberge said...

ashysh:

As I mentioned, the complete code I used is given in the blog. It's all there!


Shortly after doing this simple example, I stopped using CherryPy. So I never got to use it beyond the simple example I gave you. I seem to recall that there is a CherryPy discussion group - you might be able to get some answers there.

7:28 PM

Blogger Sukadeb Acharya said...

I have cherrypy3.0.0 installed in my computer. When i pasteed this code in my machine and ran it after fixing the indentations it is giving the following error. Can you please suggest me what is the problem

The path '/' was not found.

Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/cherrypy/_cprequest.py", line 342, in respond
cherrypy.response.body = self.handler()
File "/usr/lib/python2.5/site-packages/cherrypy/_cperror.py", line 199, in __call__
raise self
NotFound: (404, "The path '/' was not found.")

4:12 PM

Blogger André Roberge said...

To sukadeb:

I do not use CherryPy (other than that one experiment I did a while ago), and have no idea as to what could cause this traceback.

Try asking your question on the cherrypy user group
http://groups.google.com/group/cherrypy-users?hl=en

4:23 PM

Anonymous Anonymous said...

sukadeb:

Try with this:


root = YourClassName()
if __name__ == '__main__':
import os.path
conf = os.path.join(os.path.dirname(__file__), 'YourConfigFile.conf')
cherrypy.quickstart(root,config=conf)

In my version using 'mount root.blahblahblah' doesn't work, so i had to spend some hours to make it work.
It's good idea to read cherrypy's tutorial also. Look for it in:
/usr/lib/python2.5/site-packages/cherrypy/tutorial
I found my solution there.

3:53 AM

Spammers: none shall pass.
You can use some HTML tags, such as <b>, <i>, <a>

Comments on this blog are restricted to team members.

You will be asked to sign in after submitting your comment.
Please prove you're not a robot