-
-
Notifications
You must be signed in to change notification settings - Fork 367
The Zen of CherryPy
Sviatoslav Sydorenko edited this page May 5, 2017
·
1 revision
Obviously, the Zen of Python still applies.
- Ikkyu asked Subhuti, "how do I turn on gzip?" Subhuti answered, "tools.gzip.on".
- Ikkyu asked Subhuti, "how do I turn off sessions?" Subhuti answered, "".
- Ikkyu asked Subhuti, "how do I turn on Subhuti?" Subhuti answered, "tools.subhuti.on". From that day on, Ikkyu asked Subhuti no more questions.
- Joshu asked, "may I please have a server?" His master replied, "server".
- The master asked Kakua, "what is CherryPy?" Kakua answered, "CherryPy is a wrapper for HTTP, XML, HTML, REST, AJAX, CSS, JS, RSS and JSON." The master replied, "you are gravely mistaken. CherryPy is an object, with attributes and methods."
- The master asked Kakua again, "what is CherryPy?" Kakua answered, "CherryPy is an object, with attributes and methods." Angrily, the master answered, "no! CherryPy is a function, with inputs and outputs."
- The master asked Kakua a third time, "what is CherryPy?" Kakua answered, "CherryPy is a function and an object." The master answered, "CherryPy is not made for CherryPy, but it is made from CherryPy." At that moment, Kakua was enlightened.
- Gasan told his followers, "request headers should be a mapping of unique names to multiple values, with methods for inspecting and manipulating each collection singly or in groups." One of his acolytes murmured, "a dict does most of that." Gasan shouted, "Excellent! You are not far from CherryPy-nature."
{}
- A student boasted to Hakuin, "each application I write has a better templating engine than the previous one." Hakuin said, "Good! I need you to write an application for me." The student, who was very experienced, asked, "aha, and what will you be producing, HTML or XML?" Hakuin replied, "yes."