Changes between Version 111 and Version 112 of GenshiTutorial
- Timestamp:
- Apr 30, 2008, 8:19:23 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GenshiTutorial
v111 v112 192 192 === The Data Model === 193 193 194 To continue, we'll need to first add some Python classes to define the data model the application will use. As mentioned above, we're using a simple pickle file for persistence, so all we need to do here is create a couple of very simpl yPython classes.194 To continue, we'll need to first add some Python classes to define the data model the application will use. As mentioned above, we're using a simple pickle file for persistence, so all we need to do here is create a couple of very simple Python classes. 195 195 196 196 [[Image(model.png)]] … … 240 240 }}} 241 241 242 And in the `main()` function, let's replace the placeholder `data = {}` codewith some code to read our data from the pickle file, and write it back:242 And in the `main()` function, let's replace the placeholder `data = {}` with some code to read our data from the pickle file, and write it back: 243 243 244 244 {{{