Changes between Version 14 and Version 15 of CodeCleanups


Ignore:
Timestamp:
02/03/10 05:16:13 (15 years ago)
Author:
Pat Tressel
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CodeCleanups

    v14 v15  
    22== Code Cleanups ==
    33 1. RepresentSafety
     4
    45 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:
    610{{{
    711title_create = T('Add Key')
     
    2024s3.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)
    2125}}}
    22 to the leaner, easier to read:
     26 to the leaner, easier to read:
    2327{{{
    2428s3.crud_strings[table] = Storage(
     
    3842    msg_list_empty = T('No hospitals currently registered'))
    3943}}}
     44
    4045 3. Rename controller functions which aren't user-facing (but called from other functions) as '_function_name'
     46
    4147 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/164
    4448
    45 Done:
    46   * {{{models/hms.py }}}
    47 
    48 Pending Approval:
    49 lp:~tim-clicks/sahana/haiti-minor
    50   * {{{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}}}
    5849----
    5950[wiki:Haiti]
    60 [wiki:Haiti]
    61 [wiki:Haiti]
    62 [wiki:Haiti]