25
25
##################################################
26
26
## MODULE CONSTANTS
30
True, False = (1==1), (1==0)
31
27
VFFSL=valueFromFrameOrSearchList
32
28
VFSL=valueFromSearchList
34
30
currentTime=time.time
35
__CHEETAH_version__ = '2.0.1'
36
__CHEETAH_versionTuple__ = (2, 0, 1, 'final', 0)
37
__CHEETAH_genTime__ = 1244966471.226032
38
__CHEETAH_genTimestamp__ = 'Sun Jun 14 10:01:11 2009'
31
__CHEETAH_version__ = '2.2.1'
32
__CHEETAH_versionTuple__ = (2, 2, 1, 'final', 0)
33
__CHEETAH_genTime__ = 1244715457.6474349
34
__CHEETAH_genTimestamp__ = 'Thu Jun 11 12:17:37 2009'
39
35
__CHEETAH_src__ = 'prewikka/templates/UserSettings.tmpl'
40
36
__CHEETAH_srcLastModified__ = 'Wed Jun 10 11:40:28 2009'
41
__CHEETAH_docstring__ = 'Autogenerated by CHEETAH: The Python-Powered Template Engine'
37
__CHEETAH_docstring__ = 'Autogenerated by Cheetah: The Python-Powered Template Engine'
43
39
if __CHEETAH_versionTuple__ < RequiredCheetahVersionTuple:
44
40
raise AssertionError(
124
120
########################################
125
121
## START - generated method body
127
_orig_filter_19157899 = _filter
128
filterName = 'CleanOutput'
123
_orig_filter_52673673 = _filter
124
filterName = u'CleanOutput'
129
125
if self._CHEETAH__filters.has_key("CleanOutput"):
130
126
_filter = self._CHEETAH__currentFilter = self._CHEETAH__filters[filterName]
132
128
_filter = self._CHEETAH__currentFilter = \
133
129
self._CHEETAH__filters[filterName] = getattr(self._CHEETAH__filtersLib, filterName)(self).filter
135
131
<div id="fieldset_page" style="width: 430px;">
137
133
<form id="usersettings" action="?" method="post">
139
135
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.
136
write(u'''<input type="hidden" name="login" value="''')
137
_v = VFFSL(SL,"user.login",True) # u'$user.login' on line 25, col 42
138
if _v is not None: write(_filter(_v, rawExpr=u'$user.login')) # from line 25, col 42.
144
140
<input type="hidden" name="view" value="user_settings_modify"/>
146
142
else: # generated from line 27, col 1
147
write('''<input type="hidden" name="view" value="user_settings_add"/>
143
write(u'''<input type="hidden" name="view" value="user_settings_add"/>
151
147
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.
148
write(u'''<input type="hidden" name="origin" value="''')
149
_v = VFFSL(SL,"user.origin",True) # u'$user.origin' on line 32, col 43
150
if _v is not None: write(_filter(_v, rawExpr=u'$user.origin')) # from line 32, col 43.
158
154
<fieldset class="fieldset_heading">
161
157
_("Account information")
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.
158
_v = VFFSL(SL,"_",False)("Account information") # u'$_("Account information")' on line 36, col 10
159
if _v is not None: write(_filter(_v, rawExpr=u'$_("Account information")')) # from line 36, col 10.
168
164
if VFFSL(SL,"user.login",True): # generated from line 39, col 1
170
166
<th style="vertical-align: middle;">''')
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.
169
_v = VFFSL(SL,"_",False)("Login:") # u'$_("Login:")' on line 41, col 41
170
if _v is not None: write(_filter(_v, rawExpr=u'$_("Login:")')) # from line 41, col 41.
176
172
<td style="text-align:right; vertical-align: middle;">
177
173
<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.
174
_v = VFFSL(SL,"user.login",True) # u'$user.login' on line 43, col 70
175
if _v is not None: write(_filter(_v, rawExpr=u'$user.login')) # from line 43, col 70.
184
180
else: # generated from line 46, col 1
187
183
if VFFSL(SL,"errmsg",True): # generated from line 48, col 4
189
185
\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>
186
_v = VFFSL(SL,"errmsg",True) # u'$errmsg' on line 50, col 42
187
if _v is not None: write(_filter(_v, rawExpr=u'$errmsg')) # from line 50, col 42.
188
write(u'''</font></td>
198
194
<td style="text-align: right;"><input type="text" name="login"/></td>
203
199
<th style="vertical-align: middle;">''')
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.
202
_v = VFFSL(SL,"_",False)("Language:") # u'$_("Language:")' on line 61, col 41
203
if _v is not None: write(_filter(_v, rawExpr=u'$_("Language:")')) # from line 61, col 41.
209
205
<td style="text-align:right; vertical-align: middle;">
210
206
<select name="language">
214
210
selected = " selected=true"
215
211
else: # generated from line 67, col 1
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.
213
write(u''' <option value="''')
214
_v = VFFSL(SL,"identifier",True) # u'$identifier' on line 70, col 21
215
if _v is not None: write(_filter(_v, rawExpr=u'$identifier')) # from line 70, col 21.
217
_v = VFFSL(SL,"selected",True) # u'$selected' on line 70, col 33
218
if _v is not None: write(_filter(_v, rawExpr=u'$selected')) # from line 70, col 33.
220
_v = VFFSL(SL,"lang",True) # u'$lang' on line 70, col 43
221
if _v is not None: write(_filter(_v, rawExpr=u'$lang')) # from line 70, col 43.
234
230
row_classes = ("table_row_even", "table_row_odd")
236
232
<tr class="nodash" style="padding:0; margin:0;">
237
233
<th class="nodash">''')
239
235
_("Permissions:")
240
_v = VFFSL(SL,"_",False)("Permissions:") # '$_("Permissions:")' on line 80, col 21
241
if _v is not None: write(_filter(_v, rawExpr='$_("Permissions:")')) # from line 80, col 21.
236
_v = VFFSL(SL,"_",False)("Permissions:") # u'$_("Permissions:")' on line 80, col 21
237
if _v is not None: write(_filter(_v, rawExpr=u'$_("Permissions:")')) # from line 80, col 21.
243
239
<td class="nodash"></td>
255
251
if VFFSL(SL,"can_manage_user",True): # generated from line 91, col 1
257
253
else: # generated from line 93, col 1
258
254
disabled = "disabled=\"disabled\""
261
257
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.
258
write(u''' <tr class="''')
259
_v = VFFSL(SL,"row_classes",True)[VFFSL(SL,"cnt",True)%2] # u'$row_classes[$cnt%2]' on line 98, col 18
260
if _v is not None: write(_filter(_v, rawExpr=u'$row_classes[$cnt%2]')) # from line 98, col 18.
266
262
<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.
263
_v = VFFSL(SL,"perm",True) # u'$perm' on line 99, col 38
264
if _v is not None: write(_filter(_v, rawExpr=u'$perm')) # from line 99, col 38.
270
266
<td style="text-align: right;">
272
268
if VFFSL(SL,"value",True): # generated from line 101, col 9
274
270
checked = "checked=\"checked\""
275
271
else: # generated from line 104, col 9
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.
273
write(u''' <input class="checkbox" type="checkbox" name="permissions" value="''')
274
_v = VFFSL(SL,"perm",True) # u'$perm' on line 107, col 75
275
if _v is not None: write(_filter(_v, rawExpr=u'$perm')) # from line 107, col 75.
277
_v = VFFSL(SL,"checked",True) # u'$checked' on line 107, col 82
278
if _v is not None: write(_filter(_v, rawExpr=u'$checked')) # from line 107, col 82.
280
_v = VFFSL(SL,"disabled",True) # u'$disabled' on line 107, col 91
281
if _v is not None: write(_filter(_v, rawExpr=u'$disabled')) # from line 107, col 91.
291
write('''<tr class="nodash">
287
write(u'''<tr class="nodash">
292
288
<td class="nodash"> </td>
296
292
checked = "checked=\"checked\""
297
293
else: # generated from line 117, col 1
300
296
<td class="nodash"style="text-align: right;"><b>''')
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.
299
_v = VFFSL(SL,"_",False)("Check All") # u'$_("Check All")' on line 121, col 50
300
if _v is not None: write(_filter(_v, rawExpr=u'$_("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"/>
303
_v = VFFSL(SL,"checked",True) # u'$checked' on line 122, col 10
304
if _v is not None: write(_filter(_v, rawExpr=u'$checked')) # from line 122, col 10.
306
_v = VFFSL(SL,"disabled",True) # u'$disabled' on line 122, col 19
307
if _v is not None: write(_filter(_v, rawExpr=u'$disabled')) # from line 122, col 19.
308
write(u''' class="checkbox" type="checkbox" id="allbox"/>
324
320
if VFFSL(SL,"can_change_password",True): # generated from line 133, col 1
328
324
_("Change password")
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.
325
_v = VFFSL(SL,"_",False)("Change password") # u'$_("Change password")' on line 135, col 11
326
if _v is not None: write(_filter(_v, rawExpr=u'$_("Change password")')) # from line 135, col 11.
334
330
if VFFSL(SL,"ask_current_password",True): # generated from line 137, col 5
338
334
_("Current password:")
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.
335
_v = VFFSL(SL,"_",False)("Current password:") # u'$_("Current password:")' on line 139, col 11
336
if _v is not None: write(_filter(_v, rawExpr=u'$_("Current password:")')) # from line 139, col 11.
342
338
<td><input type="password" name="password_current"/></td>
348
344
_("New password:")
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.
345
_v = VFFSL(SL,"_",False)("New password:") # u'$_("New password:")' on line 144, col 11
346
if _v is not None: write(_filter(_v, rawExpr=u'$_("New password:")')) # from line 144, col 11.
352
348
<td><input type="password" name="password_new"/></td>
357
353
_("Confirm new password:")
358
_v = VFFSL(SL,"_",False)("Confirm new password:") # '$_("Confirm new password:")' on line 148, col 11
359
if _v is not None: write(_filter(_v, rawExpr='$_("Confirm new password:")')) # from line 148, col 11.
354
_v = VFFSL(SL,"_",False)("Confirm new password:") # u'$_("Confirm new password:")' on line 148, col 11
355
if _v is not None: write(_filter(_v, rawExpr=u'$_("Confirm new password:")')) # from line 148, col 11.
361
357
<td><input type="password" name="password_new_confirmation"/></td>
368
364
<input type="submit" value="''')
370
366
_("Submit Changes")
371
_v = VFFSL(SL,"_",False)("Submit Changes") # '$_("Submit Changes")' on line 156, col 29
372
if _v is not None: write(_filter(_v, rawExpr='$_("Submit Changes")')) # from line 156, col 29.
367
_v = VFFSL(SL,"_",False)("Submit Changes") # u'$_("Submit Changes")' on line 156, col 29
368
if _v is not None: write(_filter(_v, rawExpr=u'$_("Submit Changes")')) # from line 156, col 29.
379
_filter = self._CHEETAH__currentFilter = _orig_filter_19157899
375
_filter = self._CHEETAH__currentFilter = _orig_filter_52673673
381
377
########################################
382
378
## END - generated method body