~ubuntu-branches/ubuntu/natty/prewikka/natty

« back to all changes in this revision

Viewing changes to prewikka/templates/MessageListing.py

  • Committer: Bazaar Package Importer
  • Author(s): Pierre Chifflier
  • Date: 2008-07-02 16:49:06 UTC
  • mfrom: (6.1.2 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080702164906-q2bkfn6i40hd95tt
Tags: 0.9.14-2
* Update watch file
* Bump Standards version to 3.8.0 (no changes)

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
VFSL=valueFromSearchList
34
34
VFN=valueForName
35
35
currentTime=time.time
36
 
__CHEETAH_version__ = '2.0rc7'
37
 
__CHEETAH_versionTuple__ = (2, 0, 0, 'candidate', 7)
38
 
__CHEETAH_genTime__ = 1180479709.147213
39
 
__CHEETAH_genTimestamp__ = 'Wed May 30 01:01:49 2007'
 
36
__CHEETAH_version__ = '2.0.1'
 
37
__CHEETAH_versionTuple__ = (2, 0, 1, 'final', 0)
 
38
__CHEETAH_genTime__ = 1207124026.046737
 
39
__CHEETAH_genTimestamp__ = 'Wed Apr  2 10:13:46 2008'
40
40
__CHEETAH_src__ = 'prewikka/templates/MessageListing.tmpl'
41
 
__CHEETAH_srcLastModified__ = 'Tue Apr 17 14:21:25 2007'
 
41
__CHEETAH_srcLastModified__ = 'Fri Mar 21 15:51:53 2008'
42
42
__CHEETAH_docstring__ = 'Autogenerated by CHEETAH: The Python-Powered Template Engine'
43
43
 
44
44
if __CHEETAH_versionTuple__ < RequiredCheetahVersionTuple:
86
86
        ########################################
87
87
        ## START - generated method body
88
88
        
89
 
        write('<form method="post" action="?">\n')
90
 
        for name, value in VFFSL(SL,"hidden_parameters",True): # generated from line 6, col 1
91
 
            write('  <input type="hidden" name="')
92
 
            _v = VFFSL(SL,"name",True) # '$name' on line 7, col 30
93
 
            if _v is not None: write(_filter(_v, rawExpr='$name')) # from line 7, col 30.
94
 
            write('" value="')
95
 
            _v = VFFSL(SL,"value",True) # '$value' on line 7, col 44
96
 
            if _v is not None: write(_filter(_v, rawExpr='$value')) # from line 7, col 44.
97
 
            write('"/>\n')
 
89
        write('''
 
90
<script type="text/javascript">
 
91
<!--
 
92
var second_reload  = 0;
 
93
var second_count   = 0;
 
94
var autorefresh_enabled = true;
 
95
 
 
96
$(document).ready(function() {
 
97
  $("#allbox").click(function(){
 
98
    $(\'input[@name=delete]\').check($(this).attr(\'checked\'));
 
99
  });
 
100
 
 
101
 
 
102
  if ( navigator.userAgent.indexOf("Konqueror") != -1 ) {
 
103
        $("th.filter_popup > div").css("display", "block");
 
104
        $("th.filter_popup > div").hide();
 
105
   }
 
106
   
 
107
  $("th.filter_popup > a").click(function(){
 
108
\t$(this).next().popupUnique(function(data){data.show()}, function(data){data.hide()})
 
109
\treturn false;
 
110
  });
 
111
 
 
112
  $("input[@name=auto_apply_value], input[@type=submit]").focus(function(){
 
113
\tautorefresh_possible = false;
 
114
  });
 
115
 
 
116
  $("input[@name=auto_apply_value]").blur(function(){
 
117
        if ( second_reload <= second_count )
 
118
                second_count = 0;
 
119
 
 
120
        autorefresh_possible = true;
 
121
  });
 
122
 
 
123
  $(".auto_apply_button").click(function(){
 
124
        if ( document.messagelisting.auto_apply_enable.value == "true" ) {
 
125
                autorefresh_enabled = false;
 
126
 
 
127
                document.messagelisting.auto_apply_enable.value = "false";
 
128
                document.messagelisting.auto_apply_image.src = "prewikka/images/play.png";
 
129
        } else {
 
130
                autorefresh_enabled = true;
 
131
 
 
132
                document.messagelisting.auto_apply_enable.value = "true";
 
133
                document.messagelisting.auto_apply_image.src = "prewikka/images/pause.png";
 
134
        }
 
135
  });
 
136
 
 
137
  $("a[@href]").click(function(){
 
138
\tautorefresh_possible = false;
 
139
  });
 
140
}); 
 
141
 
 
142
 
 
143
function pad(number)
 
144
{
 
145
        if ( number < 10 )
 
146
            return "0" + number;
 
147
        else
 
148
            return number;
 
149
}
 
150
 
 
151
function autoApplyTime() {
 
152
        if ( document.messagelisting.auto_apply_value.value )
 
153
                var rawtime = document.messagelisting.auto_apply_value.value;
 
154
        else
 
155
                var rawtime = "0:00";
 
156
 
 
157
        var old = second_reload;
 
158
        var parselimit = rawtime.split(":");
 
159
 
 
160
        if ( parselimit[0] && parselimit[1] && parselimit[2] )
 
161
                second_reload = parselimit[0] * 3600 + parselimit[1] * 60 + parselimit[2] * 1;
 
162
 
 
163
        else if ( parselimit[0] && parselimit[1] )
 
164
                second_reload = parselimit[0] * 60 + parselimit[1] * 1;
 
165
 
 
166
        else
 
167
                second_reload = rawtime;
 
168
 
 
169
        if ( second_reload != old )
 
170
                secound_count = 0;
 
171
}
 
172
 
 
173
 
 
174
function autoApplyCounter() {
 
175
        autoApplyTime();
 
176
 
 
177
        if ( autorefresh_enabled == false || autorefresh_possible == false || second_reload == 0 ) {
 
178
                setTimeout("autoApplyCounter()", 1000);
 
179
                return;
 
180
        }
 
181
 
 
182
        second_count += 1;
 
183
        document.getElementById("auto_apply_current").innerHTML = Math.floor(second_count / 60) + ":" + pad((second_count % 60));
 
184
 
 
185
        if ( second_count != second_reload )
 
186
                setTimeout("autoApplyCounter()", 1000);
 
187
 
 
188
        else if ( second_count == second_reload ) {
 
189
                second_count = 0;
 
190
 
 
191
                var yaxis = 0;
 
192
 
 
193
                if ( window.pageYOffset )
 
194
                        yaxis = window.pageYOffset;
 
195
 
 
196
                else if ( window.documentElement && window.documentElement.scrollTop )
 
197
                        yaxis = window.documentElement.scrollTop;
 
198
 
 
199
                else if ( document.body.scrollTop )
 
200
                        yaxis = window.body.scrollTop;
 
201
 
 
202
                document.messagelisting.y.value = yaxis;
 
203
                document.messagelisting.submit("Apply");
 
204
        }
 
205
}
 
206
 
 
207
 
 
208
function setScrollBar() {
 
209
        if ( document.messagelisting.y.value ) {
 
210
                window.scrollTo(\'0\', document.messagelisting.y.value) ;
 
211
                document.messagelisting.y.value = 0;
 
212
        }
 
213
}
 
214
 
 
215
 
 
216
function beginAutoApply() {
 
217
''')
 
218
        if VFFSL(SL,"auto_apply_enable",True) == "true": # generated from line 133, col 1
 
219
            write('''        autorefresh_enabled = true;
 
220
''')
 
221
        else: # generated from line 135, col 1
 
222
            write('''        autorefresh_enabled = false;
 
223
''')
 
224
        write('''
 
225
        setScrollBar();
 
226
        setTimeout("autoApplyCounter()", 1000);
 
227
}
 
228
 
 
229
//--></script>
 
230
 
 
231
<form id="messagelisting" name="messagelisting" method="post" action="?">
 
232
''')
 
233
        for name, value in VFFSL(SL,"hidden_parameters",True): # generated from line 146, col 1
 
234
            write('''  <input type="hidden" name="''')
 
235
            _v = VFFSL(SL,"name",True) # '$name' on line 147, col 30
 
236
            if _v is not None: write(_filter(_v, rawExpr='$name')) # from line 147, col 30.
 
237
            write('''" value="''')
 
238
            _v = VFFSL(SL,"value",True) # '$value' on line 147, col 44
 
239
            if _v is not None: write(_filter(_v, rawExpr='$value')) # from line 147, col 44.
 
240
            write('''"/>
 
241
''')
98
242
        
99
243
        ########################################
100
244
        ## END - generated method body
106
250
 
107
251
 
108
252
 
109
 
        ## CHEETAH: generated from #def layout_end_hook at line 11, col 1.
 
253
        ## CHEETAH: generated from #def layout_end_hook at line 151, col 1.
110
254
        trans = KWS.get("trans")
111
255
        if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)):
112
256
            trans = self.transaction # is None unless self.awake() was called
121
265
        ########################################
122
266
        ## START - generated method body
123
267
        
124
 
        write('</form>\n')
 
268
        write('''</form>
 
269
''')
125
270
        
126
271
        ########################################
127
272
        ## END - generated method body
133
278
 
134
279
 
135
280
 
136
 
        ## CHEETAH: generated from #def message_listing_header at line 18, col 1.
 
281
        ## CHEETAH: generated from #def message_listing_header at line 158, col 1.
137
282
        trans = KWS.get("trans")
138
283
        if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)):
139
284
            trans = self.transaction # is None unless self.awake() was called
159
304
 
160
305
 
161
306
 
162
 
        ## CHEETAH: generated from #block main_content at line 17, col 1.
 
307
        ## CHEETAH: generated from #block main_content at line 156, col 1.
163
308
        trans = KWS.get("trans")
164
309
        if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)):
165
310
            trans = self.transaction # is None unless self.awake() was called
174
319
        ########################################
175
320
        ## START - generated method body
176
321
        
177
 
        _v = VFFSL(SL,"message_listing_header",True) # '$message_listing_header' on line 20, col 1
178
 
        if _v is not None: write(_filter(_v, rawExpr='$message_listing_header')) # from line 20, col 1.
 
322
        write('''
 
323
''')
 
324
        _v = VFFSL(SL,"message_listing_header",True) # '$message_listing_header' on line 160, col 1
 
325
        if _v is not None: write(_filter(_v, rawExpr='$message_listing_header')) # from line 160, col 1.
179
326
        write('''
180
327
 
181
328
<table id="message_list_result">
182
329
  ''')
183
 
        _v = VFFSL(SL,"message_fields_header",True) # '$message_fields_header' on line 23, col 3
184
 
        if _v is not None: write(_filter(_v, rawExpr='$message_fields_header')) # from line 23, col 3.
185
 
        write('\n  <tbody>\n')
 
330
        _v = VFFSL(SL,"message_fields_header",True) # '$message_fields_header' on line 163, col 3
 
331
        if _v is not None: write(_filter(_v, rawExpr='$message_fields_header')) # from line 163, col 3.
 
332
        write('''
 
333
  <tbody>
 
334
''')
186
335
        row_classes = ("table_row_even", "table_row_odd")
187
336
        cnt = 0
188
 
        write('\n')
189
 
        for message in VFFSL(SL,"messages",True): # generated from line 28, col 5
 
337
        write('''
 
338
''')
 
339
        for message in VFFSL(SL,"messages",True): # generated from line 168, col 5
190
340
            self._CHEETAH__globalSetVars["message"] = VFFSL(SL,"message",True)
191
 
            write('        <tr class="')
192
 
            _v = VFFSL(SL,"row_classes",True)[VFFSL(SL,"cnt",True) % 2] # '$row_classes[$cnt % 2]' on line 30, col 20
193
 
            if _v is not None: write(_filter(_v, rawExpr='$row_classes[$cnt % 2]')) # from line 30, col 20.
194
 
            write('">\n          ')
195
 
            _v = VFFSL(SL,"message_fields",True) # '$message_fields' on line 31, col 11
196
 
            if _v is not None: write(_filter(_v, rawExpr='$message_fields')) # from line 31, col 11.
197
 
            write('\n          <td class="static_content_column">\n')
198
 
            if VFN(VFFSL(SL,"prewikka.user",True),"has",False)(User.PERM_IDMEF_ALTER): # generated from line 33, col 13
199
 
                write('              <input class="checkbox" type="checkbox" name="delete" value="')
200
 
                _v = VFFSL(SL,"message.delete",True) # '$message.delete' on line 34, col 76
201
 
                if _v is not None: write(_filter(_v, rawExpr='$message.delete')) # from line 34, col 76.
202
 
                write('"/>\n')
203
 
            else: # generated from line 35, col 6
204
 
                write('\t      &nbsp;\n')
205
 
            write('          </td>\n        </tr>\n')
 
341
            write('''        <tr class="''')
 
342
            _v = VFFSL(SL,"row_classes",True)[VFFSL(SL,"cnt",True) % 2] # '$row_classes[$cnt % 2]' on line 170, col 20
 
343
            if _v is not None: write(_filter(_v, rawExpr='$row_classes[$cnt % 2]')) # from line 170, col 20.
 
344
            write('''">
 
345
          ''')
 
346
            _v = VFFSL(SL,"message_fields",True) # '$message_fields' on line 171, col 11
 
347
            if _v is not None: write(_filter(_v, rawExpr='$message_fields')) # from line 171, col 11.
 
348
            write('''
 
349
          <td>
 
350
''')
 
351
            if VFN(VFFSL(SL,"prewikka.user",True),"has",False)(User.PERM_IDMEF_ALTER): # generated from line 173, col 13
 
352
                write('''              <input class="checkbox" type="checkbox" name="delete" value="''')
 
353
                _v = VFFSL(SL,"message.delete",True) # '$message.delete' on line 174, col 76
 
354
                if _v is not None: write(_filter(_v, rawExpr='$message.delete')) # from line 174, col 76.
 
355
                write('''"/>
 
356
''')
 
357
            else: # generated from line 175, col 13
 
358
                write('''              &nbsp;
 
359
''')
 
360
            write('''          </td>
 
361
        </tr>
 
362
''')
206
363
            cnt += 1
207
 
        write('\n')
208
 
        if VFN(VFFSL(SL,"prewikka.user",True),"has",False)(User.PERM_IDMEF_ALTER) and VFFSL(SL,"cnt",True): # generated from line 43, col 1
209
 
            write('     <tr>\n      <td colspan="4">&nbsp;</td>\n      <td style="text-align: right;"><input type="submit" value="')
 
364
        write('''    </tbody>
 
365
 
 
366
''')
 
367
        if VFN(VFFSL(SL,"prewikka.user",True),"has",False)(User.PERM_IDMEF_ALTER) and VFFSL(SL,"cnt",True): # generated from line 184, col 1
 
368
            write('''   <tfoot>
 
369
     <tr>
 
370
      <td colspan="4">&nbsp;</td>
 
371
      <td style="text-align: right;"><input type="submit" value="''')
210
372
            if False:
211
373
                _("Delete")
212
 
            _v = VFFSL(SL,"_",False)("Delete") # '$_("Delete")' on line 46, col 66
213
 
            if _v is not None: write(_filter(_v, rawExpr='$_("Delete")')) # from line 46, col 66.
 
374
            _v = VFFSL(SL,"_",False)("Delete") # '$_("Delete")' on line 188, col 66
 
375
            if _v is not None: write(_filter(_v, rawExpr='$_("Delete")')) # from line 188, col 66.
214
376
            write('''"/></td>
215
 
      <td class="static_content_column">
216
 
       <input class="checkbox" type="checkbox" id="allbox" onclick="checkBoxByName('delete', document.forms[0].allbox.checked);"/>
 
377
      <td>
 
378
       <input class="checkbox" type="checkbox" id="allbox" />
217
379
      </td>
218
380
     </tr>
219
 
    </tbody>
220
 
''')
221
 
        write('\n  </table>\n')
 
381
    </tfoot>
 
382
''')
 
383
        write('''</table>
 
384
''')
 
385
        
 
386
        ########################################
 
387
        ## END - generated method body
 
388
        
 
389
        return _dummyTrans and trans.response().getvalue() or ""
 
390
        
 
391
 
 
392
    def orderby_option(self, **KWS):
 
393
 
 
394
 
 
395
 
 
396
        ## CHEETAH: generated from #block orderby_option at line 199, col 1.
 
397
        trans = KWS.get("trans")
 
398
        if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)):
 
399
            trans = self.transaction # is None unless self.awake() was called
 
400
        if not trans:
 
401
            trans = DummyTransaction()
 
402
            _dummyTrans = True
 
403
        else: _dummyTrans = False
 
404
        write = trans.response().write
 
405
        SL = self._CHEETAH__searchList
 
406
        _filter = self._CHEETAH__currentFilter
 
407
        
 
408
        ########################################
 
409
        ## START - generated method body
 
410
        
 
411
        write('''     <option value="time_desc" ''')
 
412
        _v = VFFSL(SL,"timeline.time_desc_selected",True) # '$timeline.time_desc_selected' on line 200, col 32
 
413
        if _v is not None: write(_filter(_v, rawExpr='$timeline.time_desc_selected')) # from line 200, col 32.
 
414
        write('''>By time (descending)</option>
 
415
     <option value="time_asc" ''')
 
416
        _v = VFFSL(SL,"timeline.time_asc_selected",True) # '$timeline.time_asc_selected' on line 201, col 31
 
417
        if _v is not None: write(_filter(_v, rawExpr='$timeline.time_asc_selected')) # from line 201, col 31.
 
418
        write('''>By time (ascending)</option>
 
419
''')
222
420
        
223
421
        ########################################
224
422
        ## END - generated method body
230
428
 
231
429
 
232
430
 
233
 
        ## CHEETAH: generated from #def timeline_extra_content at line 62, col 3.
 
431
        ## CHEETAH: generated from #def timeline_extra_content at line 207, col 3.
234
432
        trans = KWS.get("trans")
235
433
        if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)):
236
434
            trans = self.transaction # is None unless self.awake() was called
256
454
 
257
455
 
258
456
 
259
 
        ## CHEETAH: generated from #block menu_extra_content at line 60, col 1.
 
457
        ## CHEETAH: generated from #block menu_extra_content at line 204, col 1.
260
458
        trans = KWS.get("trans")
261
459
        if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)):
262
460
            trans = self.transaction # is None unless self.awake() was called
271
469
        ########################################
272
470
        ## START - generated method body
273
471
        
274
 
        write('<table id="timeline">\n  ')
275
 
        _v = VFFSL(SL,"timeline_extra_content",True) # '$timeline_extra_content' on line 64, col 3
276
 
        if _v is not None: write(_filter(_v, rawExpr='$timeline_extra_content')) # from line 64, col 3.
277
 
        write('''
278
 
  
 
472
        write('''
 
473
<table id="timeline">
 
474
  ''')
 
475
        _v = VFFSL(SL,"timeline_extra_content",True) # '$timeline_extra_content' on line 209, col 3
 
476
        if _v is not None: write(_filter(_v, rawExpr='$timeline_extra_content')) # from line 209, col 3.
 
477
        write('''
 
478
 
279
479
  <tr>
280
480
   <th id="timeline_step_label">''')
281
481
        if False:
282
482
            _("Period")
283
 
        _v = VFFSL(SL,"_",False)("Period") # '$_("Period")' on line 67, col 33
284
 
        if _v is not None: write(_filter(_v, rawExpr='$_("Period")')) # from line 67, col 33.
285
 
        write('</th>\n   <td>\n    <input class="timeline_value" name="timeline_value" type="text" size="2" value="')
286
 
        _v = VFFSL(SL,"timeline.value",True) # '$timeline.value' on line 69, col 85
287
 
        if _v is not None: write(_filter(_v, rawExpr='$timeline.value')) # from line 69, col 85.
 
483
        _v = VFFSL(SL,"_",False)("Period") # '$_("Period")' on line 212, col 33
 
484
        if _v is not None: write(_filter(_v, rawExpr='$_("Period")')) # from line 212, col 33.
 
485
        write('''</th>
 
486
   <td colspan="2">
 
487
    <input name="timeline_value" type="text" size="2" value="''')
 
488
        _v = VFFSL(SL,"timeline.value",True) # '$timeline.value' on line 214, col 62
 
489
        if _v is not None: write(_filter(_v, rawExpr='$timeline.value')) # from line 214, col 62.
288
490
        write('''"/>
289
 
   </td>
290
 
   <td> 
291
 
    <select class="timeline_unit_select" name="timeline_unit">
 
491
    <select name="timeline_unit">
292
492
     <option value="min" ''')
293
 
        _v = VFFSL(SL,"timeline.min_selected",True) # '$timeline.min_selected' on line 73, col 26
294
 
        if _v is not None: write(_filter(_v, rawExpr='$timeline.min_selected')) # from line 73, col 26.
295
 
        write('>')
 
493
        _v = VFFSL(SL,"timeline.min_selected",True) # '$timeline.min_selected' on line 216, col 26
 
494
        if _v is not None: write(_filter(_v, rawExpr='$timeline.min_selected')) # from line 216, col 26.
 
495
        write('''>''')
296
496
        if False:
297
497
            _("Minutes")
298
 
        _v = VFFSL(SL,"_",False)("Minutes") # '$_("Minutes")' on line 73, col 49
299
 
        if _v is not None: write(_filter(_v, rawExpr='$_("Minutes")')) # from line 73, col 49.
300
 
        write('</option>\n     <option value="hour" ')
301
 
        _v = VFFSL(SL,"timeline.hour_selected",True) # '$timeline.hour_selected' on line 74, col 27
302
 
        if _v is not None: write(_filter(_v, rawExpr='$timeline.hour_selected')) # from line 74, col 27.
303
 
        write('>')
 
498
        _v = VFFSL(SL,"_",False)("Minutes") # '$_("Minutes")' on line 216, col 49
 
499
        if _v is not None: write(_filter(_v, rawExpr='$_("Minutes")')) # from line 216, col 49.
 
500
        write('''</option>
 
501
     <option value="hour" ''')
 
502
        _v = VFFSL(SL,"timeline.hour_selected",True) # '$timeline.hour_selected' on line 217, col 27
 
503
        if _v is not None: write(_filter(_v, rawExpr='$timeline.hour_selected')) # from line 217, col 27.
 
504
        write('''>''')
304
505
        if False:
305
506
            _("Hours")
306
 
        _v = VFFSL(SL,"_",False)("Hours") # '$_("Hours")' on line 74, col 51
307
 
        if _v is not None: write(_filter(_v, rawExpr='$_("Hours")')) # from line 74, col 51.
308
 
        write('</option>\n     <option value="day" ')
309
 
        _v = VFFSL(SL,"timeline.day_selected",True) # '$timeline.day_selected' on line 75, col 26
310
 
        if _v is not None: write(_filter(_v, rawExpr='$timeline.day_selected')) # from line 75, col 26.
311
 
        write('>')
 
507
        _v = VFFSL(SL,"_",False)("Hours") # '$_("Hours")' on line 217, col 51
 
508
        if _v is not None: write(_filter(_v, rawExpr='$_("Hours")')) # from line 217, col 51.
 
509
        write('''</option>
 
510
     <option value="day" ''')
 
511
        _v = VFFSL(SL,"timeline.day_selected",True) # '$timeline.day_selected' on line 218, col 26
 
512
        if _v is not None: write(_filter(_v, rawExpr='$timeline.day_selected')) # from line 218, col 26.
 
513
        write('''>''')
312
514
        if False:
313
515
            _("Days")
314
 
        _v = VFFSL(SL,"_",False)("Days") # '$_("Days")' on line 75, col 49
315
 
        if _v is not None: write(_filter(_v, rawExpr='$_("Days")')) # from line 75, col 49.
316
 
        write('</option>\n     <option value="month" ')
317
 
        _v = VFFSL(SL,"timeline.month_selected",True) # '$timeline.month_selected' on line 76, col 28
318
 
        if _v is not None: write(_filter(_v, rawExpr='$timeline.month_selected')) # from line 76, col 28.
319
 
        write('>')
 
516
        _v = VFFSL(SL,"_",False)("Days") # '$_("Days")' on line 218, col 49
 
517
        if _v is not None: write(_filter(_v, rawExpr='$_("Days")')) # from line 218, col 49.
 
518
        write('''</option>
 
519
     <option value="month" ''')
 
520
        _v = VFFSL(SL,"timeline.month_selected",True) # '$timeline.month_selected' on line 219, col 28
 
521
        if _v is not None: write(_filter(_v, rawExpr='$timeline.month_selected')) # from line 219, col 28.
 
522
        write('''>''')
320
523
        if False:
321
524
            _("Months")
322
 
        _v = VFFSL(SL,"_",False)("Months") # '$_("Months")' on line 76, col 53
323
 
        if _v is not None: write(_filter(_v, rawExpr='$_("Months")')) # from line 76, col 53.
324
 
        write('</option>\n     <option value="year" ')
325
 
        _v = VFFSL(SL,"timeline.year_selected",True) # '$timeline.year_selected' on line 77, col 27
326
 
        if _v is not None: write(_filter(_v, rawExpr='$timeline.year_selected')) # from line 77, col 27.
327
 
        write('>')
 
525
        _v = VFFSL(SL,"_",False)("Months") # '$_("Months")' on line 219, col 53
 
526
        if _v is not None: write(_filter(_v, rawExpr='$_("Months")')) # from line 219, col 53.
 
527
        write('''</option>
 
528
     <option value="year" ''')
 
529
        _v = VFFSL(SL,"timeline.year_selected",True) # '$timeline.year_selected' on line 220, col 27
 
530
        if _v is not None: write(_filter(_v, rawExpr='$timeline.year_selected')) # from line 220, col 27.
 
531
        write('''>''')
328
532
        if False:
329
533
            _("Years")
330
 
        _v = VFFSL(SL,"_",False)("Years") # '$_("Years")' on line 77, col 51
331
 
        if _v is not None: write(_filter(_v, rawExpr='$_("Years")')) # from line 77, col 51.
332
 
        write('</option>\n     <option value="unlimited" ')
333
 
        _v = VFFSL(SL,"timeline.unlimited_selected",True) # '$timeline.unlimited_selected' on line 78, col 32
334
 
        if _v is not None: write(_filter(_v, rawExpr='$timeline.unlimited_selected')) # from line 78, col 32.
335
 
        write('>')
 
534
        _v = VFFSL(SL,"_",False)("Years") # '$_("Years")' on line 220, col 51
 
535
        if _v is not None: write(_filter(_v, rawExpr='$_("Years")')) # from line 220, col 51.
 
536
        write('''</option>
 
537
     <option value="unlimited" ''')
 
538
        _v = VFFSL(SL,"timeline.unlimited_selected",True) # '$timeline.unlimited_selected' on line 221, col 32
 
539
        if _v is not None: write(_filter(_v, rawExpr='$timeline.unlimited_selected')) # from line 221, col 32.
 
540
        write('''>''')
336
541
        if False:
337
542
            _("Unlimited")
338
 
        _v = VFFSL(SL,"_",False)("Unlimited") # '$_("Unlimited")' on line 78, col 61
339
 
        if _v is not None: write(_filter(_v, rawExpr='$_("Unlimited")')) # from line 78, col 61.
 
543
        _v = VFFSL(SL,"_",False)("Unlimited") # '$_("Unlimited")' on line 221, col 61
 
544
        if _v is not None: write(_filter(_v, rawExpr='$_("Unlimited")')) # from line 221, col 61.
340
545
        write('''</option>
341
546
    </select>
342
547
   </td>
346
551
    <th id="timezone_control_label">''')
347
552
        if False:
348
553
            _("Timezone")
349
 
        _v = VFFSL(SL,"_",False)("Timezone") # '$_("Timezone")' on line 84, col 37
350
 
        if _v is not None: write(_filter(_v, rawExpr='$_("Timezone")')) # from line 84, col 37.
 
554
        _v = VFFSL(SL,"_",False)("Timezone") # '$_("Timezone")' on line 227, col 37
 
555
        if _v is not None: write(_filter(_v, rawExpr='$_("Timezone")')) # from line 227, col 37.
351
556
        write('''</th>
352
557
    <td colspan="2">
353
 
      <select class="timezone_control_select" name="timezone">
 
558
      <select name="timezone">
354
559
        <option value="frontend_localtime" ''')
355
 
        _v = VFFSL(SL,"timeline.frontend_localtime_selected",True) # '$timeline.frontend_localtime_selected' on line 87, col 44
356
 
        if _v is not None: write(_filter(_v, rawExpr='$timeline.frontend_localtime_selected')) # from line 87, col 44.
357
 
        write('>')
 
560
        _v = VFFSL(SL,"timeline.frontend_localtime_selected",True) # '$timeline.frontend_localtime_selected' on line 230, col 44
 
561
        if _v is not None: write(_filter(_v, rawExpr='$timeline.frontend_localtime_selected')) # from line 230, col 44.
 
562
        write('''>''')
358
563
        if False:
359
564
            _("Frontend localtime")
360
 
        _v = VFFSL(SL,"_",False)("Frontend localtime") # '$_("Frontend localtime")' on line 87, col 82
361
 
        if _v is not None: write(_filter(_v, rawExpr='$_("Frontend localtime")')) # from line 87, col 82.
362
 
        write('</option>\n\t<option value="sensor_localtime" ')
363
 
        _v = VFFSL(SL,"timeline.sensor_localtime_selected",True) # '$timeline.sensor_localtime_selected' on line 88, col 35
364
 
        if _v is not None: write(_filter(_v, rawExpr='$timeline.sensor_localtime_selected')) # from line 88, col 35.
365
 
        write('>')
 
565
        _v = VFFSL(SL,"_",False)("Frontend localtime") # '$_("Frontend localtime")' on line 230, col 82
 
566
        if _v is not None: write(_filter(_v, rawExpr='$_("Frontend localtime")')) # from line 230, col 82.
 
567
        write('''</option>
 
568
        <option value="sensor_localtime" ''')
 
569
        _v = VFFSL(SL,"timeline.sensor_localtime_selected",True) # '$timeline.sensor_localtime_selected' on line 231, col 42
 
570
        if _v is not None: write(_filter(_v, rawExpr='$timeline.sensor_localtime_selected')) # from line 231, col 42.
 
571
        write('''>''')
366
572
        if False:
367
573
            _("Sensor localtime")
368
 
        _v = VFFSL(SL,"_",False)("Sensor localtime") # '$_("Sensor localtime")' on line 88, col 71
369
 
        if _v is not None: write(_filter(_v, rawExpr='$_("Sensor localtime")')) # from line 88, col 71.
370
 
        write('</option>\n\t<option value="utc" ')
371
 
        _v = VFFSL(SL,"timeline.utc_selected",True) # '$timeline.utc_selected' on line 89, col 22
372
 
        if _v is not None: write(_filter(_v, rawExpr='$timeline.utc_selected')) # from line 89, col 22.
373
 
        write('>')
 
574
        _v = VFFSL(SL,"_",False)("Sensor localtime") # '$_("Sensor localtime")' on line 231, col 78
 
575
        if _v is not None: write(_filter(_v, rawExpr='$_("Sensor localtime")')) # from line 231, col 78.
 
576
        write('''</option>
 
577
        <option value="utc" ''')
 
578
        _v = VFFSL(SL,"timeline.utc_selected",True) # '$timeline.utc_selected' on line 232, col 29
 
579
        if _v is not None: write(_filter(_v, rawExpr='$timeline.utc_selected')) # from line 232, col 29.
 
580
        write('''>''')
374
581
        if False:
375
582
            _("UTC")
376
 
        _v = VFFSL(SL,"_",False)("UTC") # '$_("UTC")' on line 89, col 45
377
 
        if _v is not None: write(_filter(_v, rawExpr='$_("UTC")')) # from line 89, col 45.
 
583
        _v = VFFSL(SL,"_",False)("UTC") # '$_("UTC")' on line 232, col 52
 
584
        if _v is not None: write(_filter(_v, rawExpr='$_("UTC")')) # from line 232, col 52.
378
585
        write('''</option>
379
586
       </select>
380
587
     </td>
381
588
  </tr>
382
 
        
 
589
 
383
590
  <tr>
384
591
   <th id="timeline_limit_label">''')
385
592
        if False:
386
593
            _("Limit")
387
 
        _v = VFFSL(SL,"_",False)("Limit") # '$_("Limit")' on line 95, col 34
388
 
        if _v is not None: write(_filter(_v, rawExpr='$_("Limit")')) # from line 95, col 34.
 
594
        _v = VFFSL(SL,"_",False)("Limit") # '$_("Limit")' on line 238, col 34
 
595
        if _v is not None: write(_filter(_v, rawExpr='$_("Limit")')) # from line 238, col 34.
389
596
        write('''</th>
390
597
 
391
 
   <td colspan="2">
 
598
   <td colspan="1">
392
599
    <input id="timeline_limit_value" type="text" size="2" name="limit" value="''')
393
 
        _v = VFFSL(SL,"limit",True) # '$limit' on line 98, col 79
394
 
        if _v is not None: write(_filter(_v, rawExpr='$limit')) # from line 98, col 79.
 
600
        _v = VFFSL(SL,"limit",True) # '$limit' on line 241, col 79
 
601
        if _v is not None: write(_filter(_v, rawExpr='$limit')) # from line 241, col 79.
395
602
        write('''"/>
396
603
   </td>
397
 
  </tr>
398
 
 
399
 
  <tr style="text-align: center;">
400
 
      <td colspan=3><input type="submit" name="apply" value="''')
 
604
   <td>
 
605
    <select name="orderby">
 
606
    ''')
 
607
        _v = VFFSL(SL,"orderby_option",True) # '$orderby_option' on line 245, col 5
 
608
        if _v is not None: write(_filter(_v, rawExpr='$orderby_option')) # from line 245, col 5.
 
609
        write('''
 
610
    </select>
 
611
   </td>
 
612
  </tr>
 
613
 
 
614
  <tr>
 
615
    <th id="auto_apply_label">''')
 
616
        if False:
 
617
            _("Refresh")
 
618
        _v = VFFSL(SL,"_",False)("Refresh") # '$_("Refresh")' on line 251, col 31
 
619
        if _v is not None: write(_filter(_v, rawExpr='$_("Refresh")')) # from line 251, col 31.
 
620
        write('''</th>
 
621
 
 
622
    <td colspan="2">
 
623
''')
 
624
        if VFFSL(SL,"auto_apply_enable",True) == "true": # generated from line 254, col 5
 
625
            img = "prewikka/images/pause.png"
 
626
        else: # generated from line 256, col 5
 
627
            img = "prewikka/images/play.png"
 
628
        write('''
 
629
<input type="hidden" name="auto_apply_enable" value="''')
 
630
        _v = VFFSL(SL,"auto_apply_enable",True) # '$auto_apply_enable' on line 260, col 54
 
631
        if _v is not None: write(_filter(_v, rawExpr='$auto_apply_enable')) # from line 260, col 54.
 
632
        write('''" />
 
633
 
 
634
<div class="auto_apply_current" id="auto_apply_current">0:00</div>
 
635
<input type="text" size="3" name="auto_apply_value" value="''')
 
636
        _v = VFFSL(SL,"auto_apply_value",True) # '$auto_apply_value' on line 263, col 60
 
637
        if _v is not None: write(_filter(_v, rawExpr='$auto_apply_value')) # from line 263, col 60.
 
638
        write('''" />
 
639
<a class="auto_apply_button"><img id="auto_apply_image" src="''')
 
640
        _v = VFFSL(SL,"img",True) # '$img' on line 264, col 62
 
641
        if _v is not None: write(_filter(_v, rawExpr='$img')) # from line 264, col 62.
 
642
        write('''" alt="Play/Pause" /></a>
 
643
 
 
644
    </td>
 
645
  </tr>
 
646
 
 
647
''')
 
648
        _orig_filter_20039321 = _filter
 
649
        filterName = 'CleanOutput'
 
650
        if self._CHEETAH__filters.has_key("CleanOutput"):
 
651
            _filter = self._CHEETAH__currentFilter = self._CHEETAH__filters[filterName]
 
652
        else:
 
653
            _filter = self._CHEETAH__currentFilter = \
 
654
                        self._CHEETAH__filters[filterName] = getattr(self._CHEETAH__filtersLib, filterName)(self).filter
 
655
        write('''
 
656
<tr>
 
657
 <td colspan="3" style="text-align: center">
 
658
 
 
659
<br style="line-height: 5px;" />
 
660
 
 
661
<div>
 
662
 <input id="form_apply" type="submit" name="apply" value="''')
401
663
        if False:
402
664
            _("Apply")
403
 
        _v = VFFSL(SL,"_",False)("Apply") # '$_("Apply")' on line 103, col 62
404
 
        if _v is not None: write(_filter(_v, rawExpr='$_("Apply")')) # from line 103, col 62.
405
 
        write('" />\n      <input type="submit" name="_save" value="')
 
665
        _v = VFFSL(SL,"_",False)("Apply") # '$_("Apply")' on line 277, col 59
 
666
        if _v is not None: write(_filter(_v, rawExpr='$_("Apply")')) # from line 277, col 59.
 
667
        write('''" />&nbsp;<input type="submit" name="_save" value="''')
406
668
        if False:
407
669
            _("Save")
408
 
        _v = VFFSL(SL,"_",False)("Save") # '$_("Save")' on line 104, col 48
409
 
        if _v is not None: write(_filter(_v, rawExpr='$_("Save")')) # from line 104, col 48.
410
 
        write('''" /></td>
411
 
  </tr>
412
 
 
413
 
''')
414
 
        _orig_filter_73975308 = _filter
415
 
        filterName = 'CleanOutput'
416
 
        if self._CHEETAH__filters.has_key("CleanOutput"):
417
 
            _filter = self._CHEETAH__currentFilter = self._CHEETAH__filters[filterName]
418
 
        else:
419
 
            _filter = self._CHEETAH__currentFilter = \
420
 
                        self._CHEETAH__filters[filterName] = getattr(self._CHEETAH__filtersLib, filterName)(self).filter
421
 
        write('\n')
422
 
        if not VFFSL(SL,"timeline.start",True): # generated from line 109, col 1
423
 
            write(' <tr><td colspan="4" class="timeline_range">Unlimited</td></tr>\n <tr><td colspan="4" class="timeline_range">-</td></tr>\n')
424
 
        else: # generated from line 112, col 1
425
 
            write(' <tr><td colspan="4" class="timeline_range">')
426
 
            _v = VFFSL(SL,"timeline.start",True) # '$timeline.start' on line 113, col 45
427
 
            if _v is not None: write(_filter(_v, rawExpr='$timeline.start')) # from line 113, col 45.
428
 
            write('</td></tr>\n <tr><td colspan="4" class="timeline_range">')
429
 
            _v = VFFSL(SL,"timeline.end",True) # '$timeline.end' on line 114, col 45
430
 
            if _v is not None: write(_filter(_v, rawExpr='$timeline.end')) # from line 114, col 45.
431
 
            write('</td></tr>\n')
432
 
        write(' <tr><td colspan="4" class="timeline_range">')
433
 
        _v = VFFSL(SL,"timeline.range_timezone",True) # '$timeline.range_timezone' on line 116, col 45
434
 
        if _v is not None: write(_filter(_v, rawExpr='$timeline.range_timezone')) # from line 116, col 45.
435
 
        write('''</td></tr>
 
670
        _v = VFFSL(SL,"_",False)("Save") # '$_("Save")' on line 277, col 121
 
671
        if _v is not None: write(_filter(_v, rawExpr='$_("Save")')) # from line 277, col 121.
 
672
        write('''" />
 
673
</div>
 
674
 
 
675
<br style="line-height: 5px;" />
 
676
 
 
677
<div class="timeline_range">
 
678
''')
 
679
        if not VFFSL(SL,"timeline.start",True): # generated from line 283, col 1
 
680
            write(''' Unlimited<br/>
 
681
 -<br/>
 
682
''')
 
683
        else: # generated from line 286, col 1
 
684
            write(''' ''')
 
685
            _v = VFFSL(SL,"timeline.start",True) # '$timeline.start' on line 287, col 2
 
686
            if _v is not None: write(_filter(_v, rawExpr='$timeline.start')) # from line 287, col 2.
 
687
            write('''<br/>
 
688
 ''')
 
689
            _v = VFFSL(SL,"timeline.end",True) # '$timeline.end' on line 288, col 2
 
690
            if _v is not None: write(_filter(_v, rawExpr='$timeline.end')) # from line 288, col 2.
 
691
            write('''<br/>
 
692
''')
 
693
        write(''' ''')
 
694
        _v = VFFSL(SL,"timeline.range_timezone",True) # '$timeline.range_timezone' on line 290, col 2
 
695
        if _v is not None: write(_filter(_v, rawExpr='$timeline.range_timezone')) # from line 290, col 2.
 
696
        write('''
 
697
</div>
 
698
 
 
699
</td>
 
700
</tr>
436
701
 
437
702
 <tr>
438
 
  <td colspan="4" style="text-align: center;">
 
703
  <td colspan="3">
439
704
   <table><tr>
440
705
''')
441
 
        if VFFSL(SL,"timeline.prev",True): # generated from line 121, col 5
442
 
            write('     <td class="timeline_control_prev"><a href="')
443
 
            _v = VFFSL(SL,"timeline.prev",True) # '$timeline.prev' on line 122, col 49
444
 
            if _v is not None: write(_filter(_v, rawExpr='$timeline.prev')) # from line 122, col 49.
445
 
            write('"><b>')
446
 
            if False:
447
 
                _("prev")
448
 
            _v = VFFSL(SL,"_",False)("prev") # '$_("prev")' on line 122, col 68
449
 
            if _v is not None: write(_filter(_v, rawExpr='$_("prev")')) # from line 122, col 68.
450
 
            write('</b></a></td>\n')
451
 
        else: # generated from line 123, col 5
452
 
            write('     <td class="timeline_control_inactive"><b>')
453
 
            if False:
454
 
                _("prev")
455
 
            _v = VFFSL(SL,"_",False)("prev") # '$_("prev")' on line 124, col 47
456
 
            if _v is not None: write(_filter(_v, rawExpr='$_("prev")')) # from line 124, col 47.
457
 
            write('</b></td>\n')
458
 
        write('\n')
459
 
        if VFFSL(SL,"timeline.current",True): # generated from line 127, col 5
460
 
            write('     <td class="timeline_control_cur"><a href="')
461
 
            _v = VFFSL(SL,"timeline.current",True) # '$timeline.current' on line 128, col 48
462
 
            if _v is not None: write(_filter(_v, rawExpr='$timeline.current')) # from line 128, col 48.
463
 
            write('"><b>')
464
 
            if False:
465
 
                _("current")
466
 
            _v = VFFSL(SL,"_",False)("current") # '$_("current")' on line 128, col 70
467
 
            if _v is not None: write(_filter(_v, rawExpr='$_("current")')) # from line 128, col 70.
468
 
            write('</b></a></td>\n')
469
 
        else: # generated from line 129, col 5
470
 
            write('     <td class="timeline_control_cur_inactive"><b>')
471
 
            if False:
472
 
                _("current")
473
 
            _v = VFFSL(SL,"_",False)("current") # '$_("current")' on line 130, col 51
474
 
            if _v is not None: write(_filter(_v, rawExpr='$_("current")')) # from line 130, col 51.
475
 
            write('</b></td>\n')
476
 
        write('\n')
477
 
        if VFFSL(SL,"timeline.next",True): # generated from line 133, col 5
478
 
            write('     <td class="timeline_control_next"><a href="')
479
 
            _v = VFFSL(SL,"timeline.next",True) # '$timeline.next' on line 134, col 49
480
 
            if _v is not None: write(_filter(_v, rawExpr='$timeline.next')) # from line 134, col 49.
481
 
            write('"><b>')
482
 
            if False:
483
 
                _("next")
484
 
            _v = VFFSL(SL,"_",False)("next") # '$_("next")' on line 134, col 68
485
 
            if _v is not None: write(_filter(_v, rawExpr='$_("next")')) # from line 134, col 68.
486
 
            write('</b></a></td>\n')
487
 
        else : # generated from line 135, col 5
488
 
            write('     <td class="timeline_control_inactive"><b>')
489
 
            if False:
490
 
                _("next")
491
 
            _v = VFFSL(SL,"_",False)("next") # '$_("next")' on line 136, col 47
492
 
            if _v is not None: write(_filter(_v, rawExpr='$_("next")')) # from line 136, col 47.
493
 
            write('</b></td>\n')
 
706
        if VFFSL(SL,"timeline.prev",True): # generated from line 299, col 5
 
707
            write('''     <td class="timeline_control_prev"><a href="''')
 
708
            _v = VFFSL(SL,"timeline.prev",True) # '$timeline.prev' on line 300, col 49
 
709
            if _v is not None: write(_filter(_v, rawExpr='$timeline.prev')) # from line 300, col 49.
 
710
            write('''"><b>''')
 
711
            if False:
 
712
                _("prev")
 
713
            _v = VFFSL(SL,"_",False)("prev") # '$_("prev")' on line 300, col 68
 
714
            if _v is not None: write(_filter(_v, rawExpr='$_("prev")')) # from line 300, col 68.
 
715
            write('''</b></a></td>
 
716
''')
 
717
        else: # generated from line 301, col 5
 
718
            write('''     <td class="timeline_control_inactive"><b>''')
 
719
            if False:
 
720
                _("prev")
 
721
            _v = VFFSL(SL,"_",False)("prev") # '$_("prev")' on line 302, col 47
 
722
            if _v is not None: write(_filter(_v, rawExpr='$_("prev")')) # from line 302, col 47.
 
723
            write('''</b></td>
 
724
''')
 
725
        write('''
 
726
''')
 
727
        if VFFSL(SL,"timeline.current",True): # generated from line 305, col 5
 
728
            write('''     <td class="timeline_control_cur"><a href="''')
 
729
            _v = VFFSL(SL,"timeline.current",True) # '$timeline.current' on line 306, col 48
 
730
            if _v is not None: write(_filter(_v, rawExpr='$timeline.current')) # from line 306, col 48.
 
731
            write('''"><b>''')
 
732
            if False:
 
733
                _("current")
 
734
            _v = VFFSL(SL,"_",False)("current") # '$_("current")' on line 306, col 70
 
735
            if _v is not None: write(_filter(_v, rawExpr='$_("current")')) # from line 306, col 70.
 
736
            write('''</b></a></td>
 
737
''')
 
738
        else: # generated from line 307, col 5
 
739
            write('''     <td class="timeline_control_cur_inactive"><b>''')
 
740
            if False:
 
741
                _("current")
 
742
            _v = VFFSL(SL,"_",False)("current") # '$_("current")' on line 308, col 51
 
743
            if _v is not None: write(_filter(_v, rawExpr='$_("current")')) # from line 308, col 51.
 
744
            write('''</b></td>
 
745
''')
 
746
        write('''
 
747
''')
 
748
        if VFFSL(SL,"timeline.next",True): # generated from line 311, col 5
 
749
            write('''     <td class="timeline_control_next"><a href="''')
 
750
            _v = VFFSL(SL,"timeline.next",True) # '$timeline.next' on line 312, col 49
 
751
            if _v is not None: write(_filter(_v, rawExpr='$timeline.next')) # from line 312, col 49.
 
752
            write('''"><b>''')
 
753
            if False:
 
754
                _("next")
 
755
            _v = VFFSL(SL,"_",False)("next") # '$_("next")' on line 312, col 68
 
756
            if _v is not None: write(_filter(_v, rawExpr='$_("next")')) # from line 312, col 68.
 
757
            write('''</b></a></td>
 
758
''')
 
759
        else: # generated from line 313, col 5
 
760
            write('''     <td class="timeline_control_inactive"><b>''')
 
761
            if False:
 
762
                _("next")
 
763
            _v = VFFSL(SL,"_",False)("next") # '$_("next")' on line 314, col 47
 
764
            if _v is not None: write(_filter(_v, rawExpr='$_("next")')) # from line 314, col 47.
 
765
            write('''</b></td>
 
766
''')
494
767
        write('''
495
768
   </tr></table>
496
769
  </td>
498
771
 
499
772
 </table>
500
773
 
501
 
 
502
774
<table id="message_list_nav">
503
775
  <tr>
504
776
''')
505
 
        if VFFSL(SL,"nav.prev",True): # generated from line 148, col 5
506
 
            write('      <td class="message_list_nav_button"><a href="')
507
 
            _v = VFFSL(SL,"nav.first",True) # '$nav.first' on line 149, col 52
508
 
            if _v is not None: write(_filter(_v, rawExpr='$nav.first')) # from line 149, col 52.
509
 
            write('">&lt;&lt;</a></td>\n      <td class="message_list_nav_button"><a href="')
510
 
            _v = VFFSL(SL,"nav.prev",True) # '$nav.prev' on line 150, col 52
511
 
            if _v is not None: write(_filter(_v, rawExpr='$nav.prev')) # from line 150, col 52.
512
 
            write('">&lt;</a></td>\n')
513
 
        else: # generated from line 151, col 5
514
 
            write('      <td class="message_list_nav_button_empty">&lt;&lt;</td>\n      <td class="message_list_nav_button_empty">&lt;</td>\n')
515
 
        if VFFSL(SL,"nav.next",True): # generated from line 155, col 5
516
 
            write('      <td class="message_list_nav_button"><a href="')
517
 
            _v = VFFSL(SL,"nav.next",True) # '$nav.next' on line 156, col 52
518
 
            if _v is not None: write(_filter(_v, rawExpr='$nav.next')) # from line 156, col 52.
519
 
            write('">&gt;</a></td>\n      <td class="message_list_nav_button"><a href="')
520
 
            _v = VFFSL(SL,"nav.last",True) # '$nav.last' on line 157, col 52
521
 
            if _v is not None: write(_filter(_v, rawExpr='$nav.last')) # from line 157, col 52.
522
 
            write('">&gt;&gt;</a></td>\n')
523
 
        else: # generated from line 158, col 5
524
 
            write('      <td class="message_list_nav_button_empty">&gt;</td>\n      <td class="message_list_nav_button_empty">&gt;&gt;</td>\n')
 
777
        if VFFSL(SL,"nav.prev",True): # generated from line 325, col 5
 
778
            write('''      <td class="message_list_nav_button"><a href="''')
 
779
            _v = VFFSL(SL,"nav.first",True) # '$nav.first' on line 326, col 52
 
780
            if _v is not None: write(_filter(_v, rawExpr='$nav.first')) # from line 326, col 52.
 
781
            write('''">&lt;&lt;</a></td>
 
782
      <td class="message_list_nav_button"><a href="''')
 
783
            _v = VFFSL(SL,"nav.prev",True) # '$nav.prev' on line 327, col 52
 
784
            if _v is not None: write(_filter(_v, rawExpr='$nav.prev')) # from line 327, col 52.
 
785
            write('''">&lt;</a></td>
 
786
''')
 
787
        else: # generated from line 328, col 5
 
788
            write('''      <td class="message_list_nav_button_empty">&lt;&lt;</td>
 
789
      <td class="message_list_nav_button_empty">&lt;</td>
 
790
''')
 
791
        if VFFSL(SL,"nav.next",True): # generated from line 332, col 5
 
792
            write('''      <td class="message_list_nav_button"><a href="''')
 
793
            _v = VFFSL(SL,"nav.next",True) # '$nav.next' on line 333, col 52
 
794
            if _v is not None: write(_filter(_v, rawExpr='$nav.next')) # from line 333, col 52.
 
795
            write('''">&gt;</a></td>
 
796
      <td class="message_list_nav_button"><a href="''')
 
797
            _v = VFFSL(SL,"nav.last",True) # '$nav.last' on line 334, col 52
 
798
            if _v is not None: write(_filter(_v, rawExpr='$nav.last')) # from line 334, col 52.
 
799
            write('''">&gt;&gt;</a></td>
 
800
''')
 
801
        else: # generated from line 335, col 5
 
802
            write('''      <td class="message_list_nav_button_empty">&gt;</td>
 
803
      <td class="message_list_nav_button_empty">&gt;&gt;</td>
 
804
''')
525
805
        write('''  </tr>
526
806
  <tr>
527
807
    <td class="message_list_nav_infos" colspan="4">
528
808
      ''')
529
 
        _v = VFFSL(SL,"nav.from",True) # '$nav.from' on line 165, col 7
530
 
        if _v is not None: write(_filter(_v, rawExpr='$nav.from')) # from line 165, col 7.
531
 
        write(' ... ')
532
 
        _v = VFFSL(SL,"nav.to",True) # '$nav.to' on line 165, col 21
533
 
        if _v is not None: write(_filter(_v, rawExpr='$nav.to')) # from line 165, col 21.
534
 
        write(' (')
 
809
        _v = VFFSL(SL,"nav.from",True) # '$nav.from' on line 342, col 7
 
810
        if _v is not None: write(_filter(_v, rawExpr='$nav.from')) # from line 342, col 7.
 
811
        write(''' ... ''')
 
812
        _v = VFFSL(SL,"nav.to",True) # '$nav.to' on line 342, col 21
 
813
        if _v is not None: write(_filter(_v, rawExpr='$nav.to')) # from line 342, col 21.
 
814
        write(''' (''')
535
815
        if False:
536
816
            _("total")
537
 
        _v = VFFSL(SL,"_",False)("total") # '$_("total")' on line 165, col 30
538
 
        if _v is not None: write(_filter(_v, rawExpr='$_("total")')) # from line 165, col 30.
539
 
        write(':')
540
 
        _v = VFFSL(SL,"total",True) # '$total' on line 165, col 42
541
 
        if _v is not None: write(_filter(_v, rawExpr='$total')) # from line 165, col 42.
 
817
        _v = VFFSL(SL,"_",False)("total") # '$_("total")' on line 342, col 30
 
818
        if _v is not None: write(_filter(_v, rawExpr='$_("total")')) # from line 342, col 30.
 
819
        write(''':''')
 
820
        _v = VFFSL(SL,"total",True) # '$total' on line 342, col 42
 
821
        if _v is not None: write(_filter(_v, rawExpr='$total')) # from line 342, col 42.
542
822
        write(''')
543
823
    </td>
544
824
  </tr>
545
825
</table>
546
826
 
547
827
''')
548
 
        _filter = _orig_filter_73975308
549
 
        _orig_filter_87916678 = _filter
 
828
        _filter = self._CHEETAH__currentFilter = _orig_filter_20039321
 
829
        _orig_filter_58994948 = _filter
550
830
        filterName = 'Filter'
551
831
        if self._CHEETAH__filters.has_key("Filter"):
552
832
            _filter = self._CHEETAH__currentFilter = self._CHEETAH__filters[filterName]
553
833
        else:
554
834
            _filter = self._CHEETAH__currentFilter = \
555
835
                        self._CHEETAH__filters[filterName] = getattr(self._CHEETAH__filtersLib, filterName)(self).filter
556
 
        _filter = _orig_filter_87916678
 
836
        _filter = self._CHEETAH__currentFilter = _orig_filter_58994948
 
837
        
 
838
        ########################################
 
839
        ## END - generated method body
 
840
        
 
841
        return _dummyTrans and trans.response().getvalue() or ""
 
842
        
 
843
 
 
844
    def body(self, **KWS):
 
845
 
 
846
 
 
847
 
 
848
        ## CHEETAH: generated from #block body at line 352, col 1.
 
849
        trans = KWS.get("trans")
 
850
        if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)):
 
851
            trans = self.transaction # is None unless self.awake() was called
 
852
        if not trans:
 
853
            trans = DummyTransaction()
 
854
            _dummyTrans = True
 
855
        else: _dummyTrans = False
 
856
        write = trans.response().write
 
857
        SL = self._CHEETAH__searchList
 
858
        _filter = self._CHEETAH__currentFilter
 
859
        
 
860
        ########################################
 
861
        ## START - generated method body
 
862
        
 
863
        write('''<body class="''')
 
864
        _v = VFFSL(SL,"body_class",True) # '$body_class' on line 353, col 14
 
865
        if _v is not None: write(_filter(_v, rawExpr='$body_class')) # from line 353, col 14.
 
866
        write('''" onload="beginAutoApply()">
 
867
        <div id="top_view">
 
868
                <div id="top_view_header">
 
869
                        <div id="top_view_header_software">''')
 
870
        _v = VFFSL(SL,"prewikka.software",True) # '$prewikka.software' on line 356, col 60
 
871
        if _v is not None: write(_filter(_v, rawExpr='$prewikka.software')) # from line 356, col 60.
 
872
        write('''</div>
 
873
                        <div id="top_view_header_place">''')
 
874
        _v = VFFSL(SL,"prewikka.place",True) # '$prewikka.place' on line 357, col 57
 
875
        if _v is not None: write(_filter(_v, rawExpr='$prewikka.place')) # from line 357, col 57.
 
876
        write('''</div>
 
877
                        <div id="top_view_header_title">''')
 
878
        _v = VFFSL(SL,"prewikka.title",True) # '$prewikka.title' on line 358, col 57
 
879
        if _v is not None: write(_filter(_v, rawExpr='$prewikka.title')) # from line 358, col 57.
 
880
        write('''</div>
 
881
                </div>
 
882
                ''')
 
883
        _v = VFFSL(SL,"toplayout_content",True) # '$toplayout_content' on line 360, col 17
 
884
        if _v is not None: write(_filter(_v, rawExpr='$toplayout_content')) # from line 360, col 17.
 
885
        write('''
 
886
        </div>
 
887
</body>
 
888
''')
557
889
        
558
890
        ########################################
559
891
        ## END - generated method body
584
916
 
585
917
 
586
918
 
587
 
 
588
919
''')
589
920
        self.main_content(trans=trans)
590
921
        write('''
591
922
 
592
 
 
593
 
 
 
923
''')
 
924
        self.orderby_option(trans=trans)
 
925
        write('''
594
926
''')
595
927
        self.menu_extra_content(trans=trans)
 
928
        write('''
 
929
''')
 
930
        self.body(trans=trans)
596
931
        
597
932
        ########################################
598
933
        ## END - generated method body