~ubuntu-branches/ubuntu/utopic/prewikka/utopic

« back to all changes in this revision

Viewing changes to prewikka/templates/SensorAlertListing.py

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2009-07-06 08:39:07 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20090706083907-59qlpova8dvyvm8a
Tags: 0.9.16-1ubuntu1
* Merge from debian unstable, Ubuntu remaining changes:
  - Append --install-layout=deb to setup.py install arguments.
* debian/control:
  - Bump python-all-dev, python-central, debhelper build dependencies as
    per Debian Python New Policy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
import sys
9
9
import os
10
10
import os.path
 
11
import __builtin__
11
12
from os.path import getmtime, exists
12
13
import time
13
14
import types
14
 
import __builtin__
15
15
from Cheetah.Version import MinCompatibleVersion as RequiredCheetahVersion
16
16
from Cheetah.Version import MinCompatibleVersionTuple as RequiredCheetahVersionTuple
17
17
from Cheetah.Template import Template
18
 
from Cheetah.DummyTransaction import DummyTransaction
 
18
from Cheetah.DummyTransaction import *
19
19
from Cheetah.NameMapper import NotFound, valueForName, valueFromSearchList, valueFromFrameOrSearchList
20
20
from Cheetah.CacheRegion import CacheRegion
21
21
import Cheetah.Filters as Filters
25
25
 
26
26
##################################################
27
27
## MODULE CONSTANTS
28
 
try:
29
 
    True, False
30
 
except NameError:
31
 
    True, False = (1==1), (1==0)
32
28
VFFSL=valueFromFrameOrSearchList
33
29
VFSL=valueFromSearchList
34
30
VFN=valueForName
35
31
currentTime=time.time
36
 
__CHEETAH_version__ = '2.0.1'
37
 
__CHEETAH_versionTuple__ = (2, 0, 1, 'final', 0)
38
 
__CHEETAH_genTime__ = 1244966470.1732841
39
 
__CHEETAH_genTimestamp__ = 'Sun Jun 14 10:01:10 2009'
 
32
__CHEETAH_version__ = '2.2.1'
 
33
__CHEETAH_versionTuple__ = (2, 2, 1, 'final', 0)
 
34
__CHEETAH_genTime__ = 1244715457.579129
 
35
__CHEETAH_genTimestamp__ = 'Thu Jun 11 12:17:37 2009'
40
36
__CHEETAH_src__ = 'prewikka/templates/SensorAlertListing.tmpl'
41
37
__CHEETAH_srcLastModified__ = 'Tue May  5 16:53:09 2009'
42
 
__CHEETAH_docstring__ = 'Autogenerated by CHEETAH: The Python-Powered Template Engine'
 
38
__CHEETAH_docstring__ = 'Autogenerated by Cheetah: The Python-Powered Template Engine'
43
39
 
44
40
if __CHEETAH_versionTuple__ < RequiredCheetahVersionTuple:
45
41
    raise AssertionError(
58
54
 
59
55
    def __init__(self, *args, **KWs):
60
56
 
61
 
        AlertListing.__init__(self, *args, **KWs)
 
57
        super(SensorAlertListing, self).__init__(*args, **KWs)
62
58
        if not self._CHEETAH__instanceInitialized:
63
59
            cheetahKWArgs = {}
64
60
            allowedKWs = 'searchList namespaces filter filtersLib errorCatcher'.split()
86
82
        ########################################
87
83
        ## START - generated method body
88
84
        
89
 
        _v = VFN(VFFSL(SL,"utils",False)(),"display_analyzer",False)(VFFSL(SL,"analyzer_infos",True)) # '$utils().display_analyzer($analyzer_infos)' on line 5, col 1
90
 
        if _v is not None: write(_filter(_v, rawExpr='$utils().display_analyzer($analyzer_infos)')) # from line 5, col 1.
91
 
        write('''
 
85
        _v = VFN(VFFSL(SL,"utils",False)(),"display_analyzer",False)(VFFSL(SL,"analyzer_infos",True)) # u'$utils().display_analyzer($analyzer_infos)' on line 5, col 1
 
86
        if _v is not None: write(_filter(_v, rawExpr=u'$utils().display_analyzer($analyzer_infos)')) # from line 5, col 1.
 
87
        write(u'''
92
88
<br/>
93
89
''')
94
90
        
117
113
        ########################################
118
114
        ## START - generated method body
119
115
        
120
 
        write('''
 
116
        write(u'''
121
117
''')
122
118
        
123
119
        ########################################