26
26
##################################################
27
27
## MODULE CONSTANTS
31
True, False = (1==1), (1==0)
32
28
VFFSL=valueFromFrameOrSearchList
33
29
VFSL=valueFromSearchList
35
31
currentTime=time.time
36
__CHEETAH_version__ = '2.0.1'
37
__CHEETAH_versionTuple__ = (2, 0, 1, 'final', 0)
38
__CHEETAH_genTime__ = 1244966471.1259151
39
__CHEETAH_genTimestamp__ = 'Sun Jun 14 10:01:11 2009'
32
__CHEETAH_version__ = '2.2.1'
33
__CHEETAH_versionTuple__ = (2, 2, 1, 'final', 0)
34
__CHEETAH_genTime__ = 1244715456.871655
35
__CHEETAH_genTimestamp__ = 'Thu Jun 11 12:17:36 2009'
40
36
__CHEETAH_src__ = 'prewikka/templates/FilterEdition.tmpl'
41
37
__CHEETAH_srcLastModified__ = 'Tue May 5 16:55:59 2009'
42
__CHEETAH_docstring__ = 'Autogenerated by CHEETAH: The Python-Powered Template Engine'
38
__CHEETAH_docstring__ = 'Autogenerated by Cheetah: The Python-Powered Template Engine'
44
40
if __CHEETAH_versionTuple__ < RequiredCheetahVersionTuple:
45
41
raise AssertionError(
86
82
########################################
87
83
## START - generated method body
90
86
<script type="text/javascript"><!--
91
87
function newFilterElement(name, object, operator, object_value) {
92
88
\tobjects = new Array(''')
93
_v = VFFSL(SL,"objects",True) # '$objects' on line 8, col 22
94
if _v is not None: write(_filter(_v, rawExpr='$objects')) # from line 8, col 22.
89
_v = VFFSL(SL,"objects",True) # u'$objects' on line 8, col 22
90
if _v is not None: write(_filter(_v, rawExpr=u'$objects')) # from line 8, col 22.
96
92
\toperators = new Array(''')
97
_v = VFFSL(SL,"operators",True) # '$operators' on line 9, col 24
98
if _v is not None: write(_filter(_v, rawExpr='$operators')) # from line 9, col 24.
93
_v = VFFSL(SL,"operators",True) # u'$operators' on line 9, col 24
94
if _v is not None: write(_filter(_v, rawExpr=u'$operators')) # from line 9, col 24.
101
97
\ttable = document.getElementById("elements")
183
_orig_filter_57847696 = _filter
184
filterName = 'CleanOutput'
179
_orig_filter_56347537 = _filter
180
filterName = u'CleanOutput'
185
181
if self._CHEETAH__filters.has_key("CleanOutput"):
186
182
_filter = self._CHEETAH__currentFilter = self._CHEETAH__filters[filterName]
188
184
_filter = self._CHEETAH__currentFilter = \
189
185
self._CHEETAH__filters[filterName] = getattr(self._CHEETAH__filtersLib, filterName)(self).filter
190
write('''<div id="fieldset_page" style="display: table-cell;">
186
write(u'''<div id="fieldset_page" style="display: table-cell;">
192
188
<fieldset class="fieldset_heading">
195
191
_("Available filters")
196
_v = VFFSL(SL,"_",False)("Available filters") # '$_("Available filters")' on line 96, col 9
197
if _v is not None: write(_filter(_v, rawExpr='$_("Available filters")')) # from line 96, col 9.
192
_v = VFFSL(SL,"_",False)("Available filters") # u'$_("Available filters")' on line 96, col 9
193
if _v is not None: write(_filter(_v, rawExpr=u'$_("Available filters")')) # from line 96, col 9.
199
195
<form action="?" method="post">
200
196
<input type="hidden" name="view" value="filter_edition"/>
207
203
selected = "selected=\"selected\""
208
204
else: # generated from line 105, col 5
210
write(''' <option value="''')
211
_v = VFFSL(SL,"f",True) # '$f' on line 108, col 20
212
if _v is not None: write(_filter(_v, rawExpr='$f')) # from line 108, col 20.
214
_v = VFFSL(SL,"selected",True) # '$selected' on line 108, col 24
215
if _v is not None: write(_filter(_v, rawExpr='$selected')) # from line 108, col 24.
217
_v = VFFSL(SL,"f",True) # '$f' on line 108, col 34
218
if _v is not None: write(_filter(_v, rawExpr='$f')) # from line 108, col 34.
206
write(u''' <option value="''')
207
_v = VFFSL(SL,"f",True) # u'$f' on line 108, col 20
208
if _v is not None: write(_filter(_v, rawExpr=u'$f')) # from line 108, col 20.
210
_v = VFFSL(SL,"selected",True) # u'$selected' on line 108, col 24
211
if _v is not None: write(_filter(_v, rawExpr=u'$selected')) # from line 108, col 24.
213
_v = VFFSL(SL,"f",True) # u'$f' on line 108, col 34
214
if _v is not None: write(_filter(_v, rawExpr=u'$f')) # from line 108, col 34.
223
219
<input type="submit" name="mode" value="''')
226
_v = VFFSL(SL,"_",False)("Load") # '$_("Load")' on line 112, col 43
227
if _v is not None: write(_filter(_v, rawExpr='$_("Load")')) # from line 112, col 43.
222
_v = VFFSL(SL,"_",False)("Load") # u'$_("Load")' on line 112, col 43
223
if _v is not None: write(_filter(_v, rawExpr=u'$_("Load")')) # from line 112, col 43.
229
225
<input type="submit" name="mode" value="''')
232
_v = VFFSL(SL,"_",False)("Delete") # '$_("Delete")' on line 113, col 43
233
if _v is not None: write(_filter(_v, rawExpr='$_("Delete")')) # from line 113, col 43.
228
_v = VFFSL(SL,"_",False)("Delete") # u'$_("Delete")' on line 113, col 43
229
if _v is not None: write(_filter(_v, rawExpr=u'$_("Delete")')) # from line 113, col 43.
261
_filter = self._CHEETAH__currentFilter = _orig_filter_57847696
262
_orig_filter_19446226 = _filter
263
filterName = 'Filter'
257
_filter = self._CHEETAH__currentFilter = _orig_filter_56347537
258
_orig_filter_28191518 = _filter
259
filterName = u'Filter'
264
260
if self._CHEETAH__filters.has_key("Filter"):
265
261
_filter = self._CHEETAH__currentFilter = self._CHEETAH__filters[filterName]
267
263
_filter = self._CHEETAH__currentFilter = \
268
264
self._CHEETAH__filters[filterName] = getattr(self._CHEETAH__filtersLib, filterName)(self).filter
270
266
<script type="text/javascript"><!--
272
268
for element in VFFSL(SL,"elements",True): # generated from line 138, col 1
273
write('''\tnewFilterElement("''')
274
_v = VFN(VFFSL(SL,"utils",True),"escape_attribute",False)(VFFSL(SL,"element.name",True)) # '$utils.escape_attribute($element.name)' on line 139, col 20
275
if _v is not None: write(_filter(_v, rawExpr='$utils.escape_attribute($element.name)')) # from line 139, col 20.
277
_v = VFN(VFFSL(SL,"utils",True),"escape_attribute",False)(VFFSL(SL,"element.object",True)) # '$utils.escape_attribute($element.object)' on line 139, col 62
278
if _v is not None: write(_filter(_v, rawExpr='$utils.escape_attribute($element.object)')) # from line 139, col 62.
280
_v = VFN(VFFSL(SL,"utils",True),"escape_attribute",False)(VFFSL(SL,"element.operator",True)) # '$utils.escape_attribute($element.operator)' on line 139, col 106
281
if _v is not None: write(_filter(_v, rawExpr='$utils.escape_attribute($element.operator)')) # from line 139, col 106.
283
_v = VFN(VFFSL(SL,"utils",True),"escape_attribute",False)(VFFSL(SL,"element.value",True)) # '$utils.escape_attribute($element.value)' on line 139, col 152
284
if _v is not None: write(_filter(_v, rawExpr='$utils.escape_attribute($element.value)')) # from line 139, col 152.
269
write(u'''\tnewFilterElement("''')
270
_v = VFN(VFFSL(SL,"utils",True),"escape_attribute",False)(VFFSL(SL,"element.name",True)) # u'$utils.escape_attribute($element.name)' on line 139, col 20
271
if _v is not None: write(_filter(_v, rawExpr=u'$utils.escape_attribute($element.name)')) # from line 139, col 20.
273
_v = VFN(VFFSL(SL,"utils",True),"escape_attribute",False)(VFFSL(SL,"element.object",True)) # u'$utils.escape_attribute($element.object)' on line 139, col 62
274
if _v is not None: write(_filter(_v, rawExpr=u'$utils.escape_attribute($element.object)')) # from line 139, col 62.
276
_v = VFN(VFFSL(SL,"utils",True),"escape_attribute",False)(VFFSL(SL,"element.operator",True)) # u'$utils.escape_attribute($element.operator)' on line 139, col 106
277
if _v is not None: write(_filter(_v, rawExpr=u'$utils.escape_attribute($element.operator)')) # from line 139, col 106.
279
_v = VFN(VFFSL(SL,"utils",True),"escape_attribute",False)(VFFSL(SL,"element.value",True)) # u'$utils.escape_attribute($element.value)' on line 139, col 152
280
if _v is not None: write(_filter(_v, rawExpr=u'$utils.escape_attribute($element.value)')) # from line 139, col 152.
287
write('''//--></script>
283
write(u'''//--></script>
290
_filter = self._CHEETAH__currentFilter = _orig_filter_19446226
291
_orig_filter_80161759 = _filter
292
filterName = 'CleanOutput'
286
_filter = self._CHEETAH__currentFilter = _orig_filter_28191518
287
_orig_filter_13610326 = _filter
288
filterName = u'CleanOutput'
293
289
if self._CHEETAH__filters.has_key("CleanOutput"):
294
290
_filter = self._CHEETAH__currentFilter = self._CHEETAH__filters[filterName]
296
292
_filter = self._CHEETAH__currentFilter = \
297
293
self._CHEETAH__filters[filterName] = getattr(self._CHEETAH__filtersLib, filterName)(self).filter
307
_v = VFFSL(SL,"_",False)("Formula:") # '$_("Formula:")' on line 151, col 7
308
if _v is not None: write(_filter(_v, rawExpr='$_("Formula:")')) # from line 151, col 7.
303
_v = VFFSL(SL,"_",False)("Formula:") # u'$_("Formula:")' on line 151, col 7
304
if _v is not None: write(_filter(_v, rawExpr=u'$_("Formula:")')) # from line 151, col 7.
310
306
<td><input style="width: 400px;" type="text" name="formula" value="''')
311
_v = VFFSL(SL,"formula",True) # '$formula' on line 152, col 70
312
if _v is not None: write(_filter(_v, rawExpr='$formula')) # from line 152, col 70.
307
_v = VFFSL(SL,"formula",True) # u'$formula' on line 152, col 70
308
if _v is not None: write(_filter(_v, rawExpr=u'$formula')) # from line 152, col 70.
319
_v = VFFSL(SL,"_",False)("Name:") # '$_("Name:")' on line 155, col 7
320
if _v is not None: write(_filter(_v, rawExpr='$_("Name:")')) # from line 155, col 7.
315
_v = VFFSL(SL,"_",False)("Name:") # u'$_("Name:")' on line 155, col 7
316
if _v is not None: write(_filter(_v, rawExpr=u'$_("Name:")')) # from line 155, col 7.
322
318
<td><input style="width: 400px;" type="text" name="save_as" value="''')
323
_v = VFFSL(SL,"fltr.name",True) # '$fltr.name' on line 156, col 70
324
if _v is not None: write(_filter(_v, rawExpr='$fltr.name')) # from line 156, col 70.
319
_v = VFFSL(SL,"fltr.name",True) # u'$fltr.name' on line 156, col 70
320
if _v is not None: write(_filter(_v, rawExpr=u'$fltr.name')) # from line 156, col 70.
328
324
<th style="vertical-align: top;">''')
331
_v = VFFSL(SL,"_",False)("Comment:") # '$_("Comment:")' on line 159, col 36
332
if _v is not None: write(_filter(_v, rawExpr='$_("Comment:")')) # from line 159, col 36.
327
_v = VFFSL(SL,"_",False)("Comment:") # u'$_("Comment:")' on line 159, col 36
328
if _v is not None: write(_filter(_v, rawExpr=u'$_("Comment:")')) # from line 159, col 36.
334
330
<td><textarea style="width: 400px;" name="filter_comment" rows="4" cols="55">''')
335
_v = VFFSL(SL,"fltr.comment",True) # '$fltr.comment' on line 160, col 80
336
if _v is not None: write(_filter(_v, rawExpr='$fltr.comment')) # from line 160, col 80.
337
write('''</textarea></td>
331
_v = VFFSL(SL,"fltr.comment",True) # u'$fltr.comment' on line 160, col 80
332
if _v is not None: write(_filter(_v, rawExpr=u'$fltr.comment')) # from line 160, col 80.
333
write(u'''</textarea></td>
341
337
<input style="float: right;" type="submit" name="mode" value="''')
344
_v = VFFSL(SL,"_",False)("Save") # '$_("Save")' on line 164, col 63
345
if _v is not None: write(_filter(_v, rawExpr='$_("Save")')) # from line 164, col 63.
340
_v = VFFSL(SL,"_",False)("Save") # u'$_("Save")' on line 164, col 63
341
if _v is not None: write(_filter(_v, rawExpr=u'$_("Save")')) # from line 164, col 63.
352
_filter = self._CHEETAH__currentFilter = _orig_filter_80161759
348
_filter = self._CHEETAH__currentFilter = _orig_filter_13610326
354
350
########################################
355
351
## END - generated method body