Until now, we did not look closely at the Display
class, although it is used in various incarnations within the application that we set up with CherryPy. The Display
class combines a number of functions. It:
Until now, we did not look closely at the Display
class, although it is used in various incarnations within the application that we set up with CherryPy. The Display
class combines a number of functions. It:
The reason to bundle these functions is twofold: displaying the labels and values for reading, editing, or adding an instance shares a lot of common logic, and by processing the results within the same class method, we can refer to the action
attribute of a<form>
element in a way that allows us to mount an instance of the Display
class from anywhere in the application tree.
3.141.28.107