~nursix.org/sahana-eden/stable

« back to all changes in this revision

Viewing changes to controllers/dvi.py

  • Committer: Fran Boon
  • Date: 2011-10-13 20:21:49 UTC
  • mfrom: (185.15.289 vita)
  • Revision ID: fran@aidiq.com-20111013202149-rwfv1dr7fgdfr9kr
merge nursix: cleanups

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
s3mgr.load("dvi_body")
16
16
 
17
17
# -----------------------------------------------------------------------------
18
 
def shn_menu_postp():
 
18
def s3_menu_postp():
19
19
    menu_selected = []
20
20
    body_id = s3mgr.get_session("dvi", "body")
21
21
    if body_id:
49
49
        menu_selected = [T("Open recent"), True, None, menu_selected]
50
50
        response.menu_options.append(menu_selected)
51
51
 
52
 
shn_menu(module, shn_menu_postp)
 
52
s3_menu(module, s3_menu_postp)
53
53
 
54
54
# -----------------------------------------------------------------------------
55
55
def index():
97
97
    response.s3.prep = prep
98
98
    output = s3_rest_controller(module, resourcename)
99
99
 
100
 
    shn_menu(module, shn_menu_postp)
 
100
    s3_menu(module, s3_menu_postp)
101
101
    return output
102
102
 
103
103
# -----------------------------------------------------------------------------
112
112
    output = s3_rest_controller(module, resourcename,
113
113
                                rheader=lambda r: \
114
114
                                        rheader(r, tabs=morgue_tabs))
115
 
    shn_menu(module, shn_menu_postp)
 
115
    s3_menu(module, s3_menu_postp)
116
116
    return output
117
117
 
118
118
# -----------------------------------------------------------------------------
146
146
    rheader = response.s3.dvi_rheader
147
147
    output = s3_rest_controller(module, resourcename,
148
148
                                 rheader=lambda r: rheader(r, tabs=dvi_tabs))
149
 
    shn_menu(module, shn_menu_postp)
 
149
    s3_menu(module, s3_menu_postp)
150
150
    return output
151
151
 
152
152
# -----------------------------------------------------------------------------
223
223
                                 main="first_name",
224
224
                                 extra="last_name",
225
225
                                 rheader=rheader)
226
 
    shn_menu(module, shn_menu_postp)
 
226
    s3_menu(module, s3_menu_postp)
227
227
    return output
228
228
 
229
229
# -----------------------------------------------------------------------------