List Info

Thread: ANN: CherryPy book




ANN: CherryPy book
user name
2006-05-08 17:31:46
Can I suggest/request a short discussion of debugging
techniques?

When I started playing with CherryPy, and my code had a bug,
I had to
stop CherryPy, fix the code, and restart.  Doing this over
and over
again got old fast!   As I learned more about CherryPy, I
found the
solution -- but I wished I had the solution long before I
actually did.

So I think that putting this kind of information in the book
(along
with the URL for this discussion group!) would be VERY
helpful to
anyone trying to learn CherryPy.


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

ANN: CherryPy book
user name
2006-05-08 20:22:31
Stephen, would you mind sharing what that solution is
exactly? That
would be great!


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

ANN: CherryPy book
user name
2006-05-09 08:17:46
Hello Stephen,

>
> Can I suggest/request a short discussion of debugging
techniques?

You sure can.

>
> When I started playing with CherryPy, and my code had a
bug, I had to
> stop CherryPy, fix the code, and restart.  Doing this
over and over
> again got old fast!   As I learned more about CherryPy,
I found the
> solution -- but I wished I had the solution long before
I actually did.
>
> So I think that putting this kind of information in the
book (along
> with the URL for this discussion group!) would be VERY
helpful to
> anyone trying to learn CherryPy.

It is a good idea even though it might not become a chapter
on its own. I
will try to detail tips throughout the book.

Thanks for the feedback.
- Sylvain


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

ANN: CherryPy book
user name
2006-05-10 03:01:57
I haven't tried it myself yet, but from the Web research
I've done, I'm
pretty sure this is the answer...

The trick is to set
server.environment="development" which causes
autoreload to be enabled. This can be done in the config
file, or
programmatically: see section 1.3 in
http://www.cherrypy.org/trunk/docs/book/chunk/ch03.html
especially examples 3.7 and 3.8.

See also http://www.ch
errypy.org/wiki/AutoReload

I found the clue in this thread
http://groups.go
ogle.com/group/cherrypy-users/browse_frm/thread/ae1b498de9f2
6943/52865e3da3ab0350?lnk=st&q=cherryPy+restart&rnum
=35#52865e3da3ab0350

There appear to be cases where people have had problems with
the reload
feature.  See for example
http:/
/trac.turbogears.org/turbogears/ticket/9

I think if you google on "CherryPy restart"  or
"CherryPy autoload"
you'll find a lot of information.

Hope this helps.


--~--~---------~--~----~------------~-------~--~----~
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-4]

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