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

« back to all changes in this revision

Viewing changes to prewikka/templates/TopLayout.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
24
24
 
25
25
##################################################
26
26
## MODULE CONSTANTS
27
 
try:
28
 
    True, False
29
 
except NameError:
30
 
    True, False = (1==1), (1==0)
31
27
VFFSL=valueFromFrameOrSearchList
32
28
VFSL=valueFromSearchList
33
29
VFN=valueForName
34
30
currentTime=time.time
35
 
__CHEETAH_version__ = '2.0.1'
36
 
__CHEETAH_versionTuple__ = (2, 0, 1, 'final', 0)
37
 
__CHEETAH_genTime__ = 1244966471.4076991
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__ = 1244715456.8824029
 
34
__CHEETAH_genTimestamp__ = 'Thu Jun 11 12:17:36 2009'
39
35
__CHEETAH_src__ = 'prewikka/templates/TopLayout.tmpl'
40
36
__CHEETAH_srcLastModified__ = 'Tue May  5 16:55:59 2009'
41
 
__CHEETAH_docstring__ = 'Autogenerated by CHEETAH: The Python-Powered Template Engine'
 
37
__CHEETAH_docstring__ = 'Autogenerated by Cheetah: The Python-Powered Template Engine'
42
38
 
43
39
if __CHEETAH_versionTuple__ < RequiredCheetahVersionTuple:
44
40
    raise AssertionError(
57
53
 
58
54
    def __init__(self, *args, **KWs):
59
55
 
60
 
        HTMLDocument.__init__(self, *args, **KWs)
 
56
        super(TopLayout, self).__init__(*args, **KWs)
61
57
        if not self._CHEETAH__instanceInitialized:
62
58
            cheetahKWArgs = {}
63
59
            allowedKWs = 'searchList namespaces filter filtersLib errorCatcher'.split()
111
107
        ########################################
112
108
        ## START - generated method body
113
109
        
114
 
        write('''<body class="''')
115
 
        _v = VFFSL(SL,"body_class",True) # '$body_class' on line 7, col 14
116
 
        if _v is not None: write(_filter(_v, rawExpr='$body_class')) # from line 7, col 14.
117
 
        write('''">
 
110
        write(u'''<body class="''')
 
111
        _v = VFFSL(SL,"body_class",True) # u'$body_class' on line 7, col 14
 
112
        if _v is not None: write(_filter(_v, rawExpr=u'$body_class')) # from line 7, col 14.
 
113
        write(u'''">
118
114
\t<div id="top_view">
119
115
\t\t<div id="top_view_header">
120
116
\t\t\t<div id="top_view_header_software">''')
121
 
        _v = VFFSL(SL,"prewikka.software",True) # '$prewikka.software' on line 10, col 39
122
 
        if _v is not None: write(_filter(_v, rawExpr='$prewikka.software')) # from line 10, col 39.
123
 
        write('''</div>
 
117
        _v = VFFSL(SL,"prewikka.software",True) # u'$prewikka.software' on line 10, col 39
 
118
        if _v is not None: write(_filter(_v, rawExpr=u'$prewikka.software')) # from line 10, col 39.
 
119
        write(u'''</div>
124
120
\t\t\t<div id="top_view_header_place">''')
125
 
        _v = VFFSL(SL,"prewikka.place",True) # '$prewikka.place' on line 11, col 36
126
 
        if _v is not None: write(_filter(_v, rawExpr='$prewikka.place')) # from line 11, col 36.
127
 
        write('''</div>
 
121
        _v = VFFSL(SL,"prewikka.place",True) # u'$prewikka.place' on line 11, col 36
 
122
        if _v is not None: write(_filter(_v, rawExpr=u'$prewikka.place')) # from line 11, col 36.
 
123
        write(u'''</div>
128
124
\t\t\t<div id="top_view_header_title">''')
129
 
        _v = VFFSL(SL,"prewikka.title",True) # '$prewikka.title' on line 12, col 36
130
 
        if _v is not None: write(_filter(_v, rawExpr='$prewikka.title')) # from line 12, col 36.
131
 
        write('''</div>
 
125
        _v = VFFSL(SL,"prewikka.title",True) # u'$prewikka.title' on line 12, col 36
 
126
        if _v is not None: write(_filter(_v, rawExpr=u'$prewikka.title')) # from line 12, col 36.
 
127
        write(u'''</div>
132
128
\t\t</div>
133
129
\t\t''')
134
 
        _v = VFFSL(SL,"toplayout_content",True) # '$toplayout_content' on line 14, col 3
135
 
        if _v is not None: write(_filter(_v, rawExpr='$toplayout_content')) # from line 14, col 3.
136
 
        write('''
 
130
        _v = VFFSL(SL,"toplayout_content",True) # u'$toplayout_content' on line 14, col 3
 
131
        if _v is not None: write(_filter(_v, rawExpr=u'$toplayout_content')) # from line 14, col 3.
 
132
        write(u'''
137
133
\t</div>
138
134
</body>
139
135
''')
163
159
        ########################################
164
160
        ## START - generated method body
165
161
        
166
 
        write('''
 
162
        write(u'''
167
163
 
168
164
''')
169
165
        self.body(trans=trans)