66
66
self._initCheetahInstance(**cheetahKWArgs)
69
def layout_start_hook(self, **KWS):
73
## CHEETAH: generated from #def layout_start_hook at line 3, col 1.
74
trans = KWS.get("trans")
75
if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)):
76
trans = self.transaction # is None unless self.awake() was called
78
trans = DummyTransaction()
80
else: _dummyTrans = False
81
write = trans.response().write
82
SL = self._CHEETAH__searchList
83
_filter = self._CHEETAH__currentFilter
85
########################################
86
## START - generated method body
89
<script type="text/javascript">
93
$(document).ready(function() {
94
$("#allbox").click(function(){
95
$(\'input[@name=permissions]\').check($(this).attr(\'checked\'));
102
########################################
103
## END - generated method body
105
return _dummyTrans and trans.response().getvalue() or ""
69
108
def main_content(self, **KWS):
73
## CHEETAH: generated from #block main_content at line 3, col 1.
112
## CHEETAH: generated from #block main_content at line 18, col 1.
74
113
trans = KWS.get("trans")
75
114
if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)):
76
115
trans = self.transaction # is None unless self.awake() was called
96
135
<div id="fieldset_page" style="width: 430px;">
98
<form action="?" method="post">
100
if VFFSL(SL,"user.login",True): # generated from line 9, col 1
101
write('<input type="hidden" name="view" value="user_settings_modify"/>\n')
102
else: # generated from line 11, col 1
103
write('<input type="hidden" name="view" value="user_settings_add"/>\n')
104
write('\n<input type="hidden" name="login" value="')
105
_v = VFFSL(SL,"user.login",True) # '$user.login' on line 15, col 42
106
if _v is not None: write(_filter(_v, rawExpr='$user.login')) # from line 15, col 42.
137
<form id="usersettings" action="?" method="post">
139
if VFFSL(SL,"user.login",True): # generated from line 24, col 1
140
write('''<input type="hidden" name="login" value="''')
141
_v = VFFSL(SL,"user.login",True) # '$user.login' on line 25, col 42
142
if _v is not None: write(_filter(_v, rawExpr='$user.login')) # from line 25, col 42.
144
<input type="hidden" name="view" value="user_settings_modify"/>
146
else: # generated from line 27, col 1
147
write('''<input type="hidden" name="view" value="user_settings_add"/>
151
if VFFSL(SL,"user.origin",True): # generated from line 31, col 1
152
write('''<input type="hidden" name="origin" value="''')
153
_v = VFFSL(SL,"user.origin",True) # '$user.origin' on line 32, col 43
154
if _v is not None: write(_filter(_v, rawExpr='$user.origin')) # from line 32, col 43.
109
158
<fieldset class="fieldset_heading">
112
161
_("Account information")
113
_v = VFFSL(SL,"_",False)("Account information") # '$_("Account information")' on line 18, col 10
114
if _v is not None: write(_filter(_v, rawExpr='$_("Account information")')) # from line 18, col 10.
162
_v = VFFSL(SL,"_",False)("Account information") # '$_("Account information")' on line 36, col 10
163
if _v is not None: write(_filter(_v, rawExpr='$_("Account information")')) # from line 36, col 10.
115
164
write('''</legend>
119
if VFFSL(SL,"user.login",True): # generated from line 21, col 1
120
write(' <tr>\n <th style="vertical-align: middle;">')
168
if VFFSL(SL,"user.login",True): # generated from line 39, col 1
170
<th style="vertical-align: middle;">''')
123
_v = VFFSL(SL,"_",False)("Login:") # '$_("Login:")' on line 23, col 41
124
if _v is not None: write(_filter(_v, rawExpr='$_("Login:")')) # from line 23, col 41.
125
write('</th>\n <td style="text-align:right; vertical-align: middle;">\n <h2 style="vertical-align: middle; padding:0px; margin:0px;"><b>')
126
_v = VFFSL(SL,"user.login",True) # '$user.login' on line 25, col 70
127
if _v is not None: write(_filter(_v, rawExpr='$user.login')) # from line 25, col 70.
173
_v = VFFSL(SL,"_",False)("Login:") # '$_("Login:")' on line 41, col 41
174
if _v is not None: write(_filter(_v, rawExpr='$_("Login:")')) # from line 41, col 41.
176
<td style="text-align:right; vertical-align: middle;">
177
<h2 style="vertical-align: middle; padding:0px; margin:0px;"><b>''')
178
_v = VFFSL(SL,"user.login",True) # '$user.login' on line 43, col 70
179
if _v is not None: write(_filter(_v, rawExpr='$user.login')) # from line 43, col 70.
128
180
write('''</b></h2>
132
else: # generated from line 28, col 1
134
if VFFSL(SL,"errmsg",True): # generated from line 30, col 4
135
write(' <tr>\n\t<td colspan=2><font style="color: red;">')
136
_v = VFFSL(SL,"errmsg",True) # '$errmsg' on line 32, col 42
137
if _v is not None: write(_filter(_v, rawExpr='$errmsg')) # from line 32, col 42.
138
write('</font></td>\n </tr>\n')
184
else: # generated from line 46, col 1
187
if VFFSL(SL,"errmsg",True): # generated from line 48, col 4
189
\t<td colspan=2><font style="color: red;">''')
190
_v = VFFSL(SL,"errmsg",True) # '$errmsg' on line 50, col 42
191
if _v is not None: write(_filter(_v, rawExpr='$errmsg')) # from line 50, col 42.
192
write('''</font></td>
142
198
<td style="text-align: right;"><input type="text" name="login"/></td>
145
write('\n <tr>\n <th style="vertical-align: middle;">')
203
<th style="vertical-align: middle;">''')
148
_v = VFFSL(SL,"_",False)("Language:") # '$_("Language:")' on line 43, col 41
149
if _v is not None: write(_filter(_v, rawExpr='$_("Language:")')) # from line 43, col 41.
206
_v = VFFSL(SL,"_",False)("Language:") # '$_("Language:")' on line 61, col 41
207
if _v is not None: write(_filter(_v, rawExpr='$_("Language:")')) # from line 61, col 41.
151
209
<td style="text-align:right; vertical-align: middle;">
152
210
<select name="language">
154
for lang, identifier in VFFSL(SL,"available_languages",True): # generated from line 46, col 1
155
if VFFSL(SL,"user.language",True) == VFFSL(SL,"identifier",True): # generated from line 47, col 1
212
for lang, identifier in VFFSL(SL,"available_languages",True): # generated from line 64, col 1
213
if VFFSL(SL,"user.language",True) == VFFSL(SL,"identifier",True): # generated from line 65, col 1
156
214
selected = " selected=true"
157
else: # generated from line 49, col 1
215
else: # generated from line 67, col 1
159
write(' <option value="')
160
_v = VFFSL(SL,"identifier",True) # '$identifier' on line 52, col 21
161
if _v is not None: write(_filter(_v, rawExpr='$identifier')) # from line 52, col 21.
163
_v = VFFSL(SL,"selected",True) # '$selected' on line 52, col 33
164
if _v is not None: write(_filter(_v, rawExpr='$selected')) # from line 52, col 33.
166
_v = VFFSL(SL,"lang",True) # '$lang' on line 52, col 43
167
if _v is not None: write(_filter(_v, rawExpr='$lang')) # from line 52, col 43.
217
write(''' <option value="''')
218
_v = VFFSL(SL,"identifier",True) # '$identifier' on line 70, col 21
219
if _v is not None: write(_filter(_v, rawExpr='$identifier')) # from line 70, col 21.
221
_v = VFFSL(SL,"selected",True) # '$selected' on line 70, col 33
222
if _v is not None: write(_filter(_v, rawExpr='$selected')) # from line 70, col 33.
224
_v = VFFSL(SL,"lang",True) # '$lang' on line 70, col 43
225
if _v is not None: write(_filter(_v, rawExpr='$lang')) # from line 70, col 43.
169
228
write(''' </select>
193
if VFFSL(SL,"can_manage_user",True): # generated from line 73, col 1
255
if VFFSL(SL,"can_manage_user",True): # generated from line 91, col 1
195
else: # generated from line 75, col 1
257
else: # generated from line 93, col 1
196
258
disabled = "disabled=\"disabled\""
198
for perm, value in VFFSL(SL,"user.permissions",True): # generated from line 79, col 7
199
write(' <tr class="')
200
_v = VFFSL(SL,"row_classes",True)[VFFSL(SL,"cnt",True)%2] # '$row_classes[$cnt%2]' on line 80, col 18
201
if _v is not None: write(_filter(_v, rawExpr='$row_classes[$cnt%2]')) # from line 80, col 18.
202
write('">\n <td style="text-align: left;">')
203
_v = VFFSL(SL,"perm",True) # '$perm' on line 81, col 38
204
if _v is not None: write(_filter(_v, rawExpr='$perm')) # from line 81, col 38.
205
write('</td>\n <td style="text-align: right;">\n')
206
if VFFSL(SL,"value",True): # generated from line 83, col 9
261
for perm, value in VFFSL(SL,"user.permissions",True): # generated from line 97, col 7
262
write(''' <tr class="''')
263
_v = VFFSL(SL,"row_classes",True)[VFFSL(SL,"cnt",True)%2] # '$row_classes[$cnt%2]' on line 98, col 18
264
if _v is not None: write(_filter(_v, rawExpr='$row_classes[$cnt%2]')) # from line 98, col 18.
266
<td style="text-align: left;">''')
267
_v = VFFSL(SL,"perm",True) # '$perm' on line 99, col 38
268
if _v is not None: write(_filter(_v, rawExpr='$perm')) # from line 99, col 38.
270
<td style="text-align: right;">
272
if VFFSL(SL,"value",True): # generated from line 101, col 9
208
274
checked = "checked=\"checked\""
209
else: # generated from line 86, col 9
275
else: # generated from line 104, col 9
211
write(' <input class="checkbox" type="checkbox" name="permissions" value="')
212
_v = VFFSL(SL,"perm",True) # '$perm' on line 89, col 75
213
if _v is not None: write(_filter(_v, rawExpr='$perm')) # from line 89, col 75.
215
_v = VFFSL(SL,"checked",True) # '$checked' on line 89, col 82
216
if _v is not None: write(_filter(_v, rawExpr='$checked')) # from line 89, col 82.
218
_v = VFFSL(SL,"disabled",True) # '$disabled' on line 89, col 91
219
if _v is not None: write(_filter(_v, rawExpr='$disabled')) # from line 89, col 91.
277
write(''' <input class="checkbox" type="checkbox" name="permissions" value="''')
278
_v = VFFSL(SL,"perm",True) # '$perm' on line 107, col 75
279
if _v is not None: write(_filter(_v, rawExpr='$perm')) # from line 107, col 75.
281
_v = VFFSL(SL,"checked",True) # '$checked' on line 107, col 82
282
if _v is not None: write(_filter(_v, rawExpr='$checked')) # from line 107, col 82.
284
_v = VFFSL(SL,"disabled",True) # '$disabled' on line 107, col 91
285
if _v is not None: write(_filter(_v, rawExpr='$disabled')) # from line 107, col 91.
226
292
<td class="nodash"> </td>
229
if VFFSL(SL,"cnt",True) == VFFSL(SL,"checked_cnt",True): # generated from line 97, col 1
295
if VFFSL(SL,"cnt",True) == VFFSL(SL,"checked_cnt",True): # generated from line 115, col 1
230
296
checked = "checked=\"checked\""
231
else: # generated from line 99, col 1
297
else: # generated from line 117, col 1
233
write('\n <td class="nodash"style="text-align: right;"><b>')
300
<td class="nodash"style="text-align: right;"><b>''')
236
_v = VFFSL(SL,"_",False)("Check All") # '$_("Check All")' on line 103, col 50
237
if _v is not None: write(_filter(_v, rawExpr='$_("Check All")')) # from line 103, col 50.
238
write('</b>\n <input ')
239
_v = VFFSL(SL,"checked",True) # '$checked' on line 104, col 10
240
if _v is not None: write(_filter(_v, rawExpr='$checked')) # from line 104, col 10.
242
_v = VFFSL(SL,"disabled",True) # '$disabled' on line 104, col 19
243
if _v is not None: write(_filter(_v, rawExpr='$disabled')) # from line 104, col 19.
244
write(''' class="checkbox" type="checkbox" id="allbox" onclick="checkBoxByName('permissions', document.forms[0].allbox.checked);"/>
303
_v = VFFSL(SL,"_",False)("Check All") # '$_("Check All")' on line 121, col 50
304
if _v is not None: write(_filter(_v, rawExpr='$_("Check All")')) # from line 121, col 50.
307
_v = VFFSL(SL,"checked",True) # '$checked' on line 122, col 10
308
if _v is not None: write(_filter(_v, rawExpr='$checked')) # from line 122, col 10.
310
_v = VFFSL(SL,"disabled",True) # '$disabled' on line 122, col 19
311
if _v is not None: write(_filter(_v, rawExpr='$disabled')) # from line 122, col 19.
312
write(''' class="checkbox" type="checkbox" id="allbox"/>
256
if VFFSL(SL,"can_change_password",True): # generated from line 115, col 1
257
write('<fieldset>\n <legend>')
324
if VFFSL(SL,"can_change_password",True): # generated from line 133, col 1
259
328
_("Change password")
260
_v = VFFSL(SL,"_",False)("Change password") # '$_("Change password")' on line 117, col 11
261
if _v is not None: write(_filter(_v, rawExpr='$_("Change password")')) # from line 117, col 11.
262
write('</legend>\n <table>\n')
263
if VFFSL(SL,"ask_current_password",True): # generated from line 119, col 5
264
write(' <tr>\n <th>')
329
_v = VFFSL(SL,"_",False)("Change password") # '$_("Change password")' on line 135, col 11
330
if _v is not None: write(_filter(_v, rawExpr='$_("Change password")')) # from line 135, col 11.
334
if VFFSL(SL,"ask_current_password",True): # generated from line 137, col 5
266
338
_("Current password:")
267
_v = VFFSL(SL,"_",False)("Current password:") # '$_("Current password:")' on line 121, col 11
268
if _v is not None: write(_filter(_v, rawExpr='$_("Current password:")')) # from line 121, col 11.
339
_v = VFFSL(SL,"_",False)("Current password:") # '$_("Current password:")' on line 139, col 11
340
if _v is not None: write(_filter(_v, rawExpr='$_("Current password:")')) # from line 139, col 11.
270
342
<td><input type="password" name="password_current"/></td>
273
write(' <tr>\n <th>')
275
348
_("New password:")
276
_v = VFFSL(SL,"_",False)("New password:") # '$_("New password:")' on line 126, col 11
277
if _v is not None: write(_filter(_v, rawExpr='$_("New password:")')) # from line 126, col 11.
349
_v = VFFSL(SL,"_",False)("New password:") # '$_("New password:")' on line 144, col 11
350
if _v is not None: write(_filter(_v, rawExpr='$_("New password:")')) # from line 144, col 11.
279
352
<td><input type="password" name="password_new"/></td>