Changes between Version 3 and Version 4 of ModelMiddleware
- Timestamp:
- Dec 23, 2009, 1:38:13 AM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ModelMiddleware
v3 v4 90 90 # lets be nice to ourselves and provide a default value for the initial header level 91 91 for opt in opts: 92 if not opt.has_key("init_header"): 93 opt["init_header"] = 1 92 opt.setdefault("init_header", 1) 94 93 95 94 # parse for as many fields as we have options for … … 142 141 # lets be nice to ourselves and provide a default value for the initial header level 143 142 for opt in opts: 144 if not opt.has_key("init_header"): 145 opt["init_header"] = 1 143 opt.setdefault("init_header", 1) 146 144 147 145 # parse for as many fields as we have options for