Changes between Version 14 and Version 15 of CodeCleanups
- Timestamp:
- 02/03/10 05:16:13 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CodeCleanups
v14 v15 2 2 == Code Cleanups == 3 3 1. RepresentSafety 4 4 5 2. crud_strings format 5 Move from the older, slow, more memory-hungry style: 6 7 Status: done, see http://trac.sahanapy.org/ticket/164 8 9 Move from the older, slow, more memory-hungry style: 6 10 {{{ 7 11 title_create = T('Add Key') … … 20 24 s3.crud_strings[table] = Storage(title_create=title_create,title_display=title_display,title_list=title_list,title_update=title_update,title_search=title_search,subtitle_create=subtitle_create,subtitle_list=subtitle_list,label_list_button=label_list_button,label_create_button=label_create_button,msg_record_created=msg_record_created,msg_record_modified=msg_record_modified,msg_record_deleted=msg_record_deleted,msg_list_empty=msg_list_empty) 21 25 }}} 22 to the leaner, easier to read:26 to the leaner, easier to read: 23 27 {{{ 24 28 s3.crud_strings[table] = Storage( … … 38 42 msg_list_empty = T('No hospitals currently registered')) 39 43 }}} 44 40 45 3. Rename controller functions which aren't user-facing (but called from other functions) as '_function_name' 46 41 47 4. Replace all the T('unknown') with UNKNOWN_OPT (Which has now been set to T('unknown') at the top of 00_settings.py) 42 === Status ===43 Ticket lodged: http://trac.sahanapy.org/ticket/16444 48 45 Done:46 * {{{models/hms.py }}}47 48 Pending Approval:49 lp:~tim-clicks/sahana/haiti-minor50 * {{{models/03_gis.py}}}51 * {{{models/04_pr.py}}}52 * {{{models/05_or.py}}}53 * {{{models/dvi.py }}}54 * {{{models/msg.py }}}55 * {{{models/mpr.py }}}56 * {{{models/vol.py }}}57 * {{{controllers/gis.py}}}58 49 ---- 59 50 [wiki:Haiti] 60 [wiki:Haiti]61 [wiki:Haiti]62 [wiki:Haiti]