Changeset 206 for trunk/web


Ignore:
Timestamp:
Oct 20, 2007, 8:38:16 AM (17 years ago)
Author:
ecprice
Message:

(Forget to make this to test it)

Location:
trunk/web/templates
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/web/templates/skeleton.py

    r205 r206  
    3333VFN=valueForName
    3434currentTime=time.time
    35 __CHEETAH_version__ = '2.0rc8'
    36 __CHEETAH_versionTuple__ = (2, 0, 0, 'candidate', 8)
    37 __CHEETAH_genTime__ = 1192883107.2947011
    38 __CHEETAH_genTimestamp__ = 'Sat Oct 20 08:25:07 2007'
     35__CHEETAH_version__ = '2.0rc7'
     36__CHEETAH_versionTuple__ = (2, 0, 0, 'candidate', 7)
     37__CHEETAH_genTime__ = 1192883610.434917
     38__CHEETAH_genTimestamp__ = 'Sat Oct 20 08:33:30 2007'
    3939__CHEETAH_src__ = 'skeleton.tmpl'
    40 __CHEETAH_srcLastModified__ = 'Sat Oct 20 08:22:11 2007'
     40__CHEETAH_srcLastModified__ = 'Sat Oct 20 08:33:05 2007'
    4141__CHEETAH_docstring__ = 'Autogenerated by CHEETAH: The Python-Powered Template Engine'
    4242
     
    101101var helpWin = null;
    102102function closeWin(){
    103 \tif (helpWin != null){
    104 \t\tif(!helpWin.closed)
    105 \t\t\thelpWin.close();
    106 \t}
     103        if (helpWin != null){
     104                if(!helpWin.closed)
     105                        helpWin.close();
     106        }
    107107}
    108108
     
    118118  onCreate: function(){
    119119    if (Ajax.activeRequestCount > 0) {
    120        document.getElementById("loadingnotice").style.display = \'block\';
     120       document.getElementById("loadingnotice").style.display = 'block';
    121121    }
    122122  },
    123123  onComplete: function(){
    124124    if (Ajax.activeRequestCount == 0) {
    125       document.getElementById("loadingnotice").style.display = \'none\';
     125      document.getElementById("loadingnotice").style.display = 'none';
    126126    }
    127127  }
     
    131131    d = transport.responseText.evalJSON();
    132132  } catch (e) {
    133     $(\'body\').innerHTML = \'<pre>\'+transport.responseText+\'</pre>\'
     133    $('body').innerHTML = '<pre>'+transport.responseText+'</pre>'
    134134    return;
    135135  }
     
    140140
    141141function jsFormSubmit(location, elt){
    142   new Ajax.Request(location, {method: \'post\',
    143   parameters: Form.serialize(elt)+\'&js=true\',
     142  new Ajax.Request(location, {method: 'post',
     143  parameters: Form.serialize(elt)+'&js=true',
    144144  onSuccess: replaceFunc,
    145145  onComplete: function() {Form.enable(elt);}
     
    150150
    151151function rowFormSubmit(elt, retpage){
    152   new Ajax.Request(\'command\', {method: \'post\',
    153   parameters: Form.serialize(elt)+\'&js=\'+retpage,
     152  new Ajax.Request('command', {method: 'post',
     153  parameters: Form.serialize(elt)+'&js='+retpage,
    154154  onSuccess: replaceFunc
    155155  });
     
    157157}
    158158
    159 window.onload = {
     159window.onload = function (){
    160160  //Fix bug with disabled elements
    161   $''')
    162         _v = 'form' # "$('form')" on line 75, col 4
    163         if _v is not None: write(_filter(_v, rawExpr="$('form')")) # from line 75, col 4.
    164         write('''.each(Form.enable);
     161  $$('form').each(Form.enable);
    165162}
    166163
     
    172169''')
    173170        if VFFSL(SL,"varExists",False)('error_text'): # generated from line 83, col 1
    174             write('''<p>STDERR:</p><pre>''')
     171            write('<p>STDERR:</p><pre>')
    175172            _v = VFFSL(SL,"error_text",True) # '$error_text' on line 84, col 20
    176173            if _v is not None: write(_filter(_v, rawExpr='$error_text')) # from line 84, col 20.
    177             write('''</pre>
    178 ''')
    179         write('''</div>
    180 
    181 ''')
     174            write('</pre>\n')
     175        write('</div>\n\n')
    182176        if not VFFSL(SL,"varExists",False)('simple') or not VFFSL(SL,"simple",True): # generated from line 88, col 1
    183             write('''<p>[You are logged in as ''')
     177            write('<p>[You are logged in as ')
    184178            _v = VFFSL(SL,"user.username",True) # '$user.username' on line 89, col 26
    185179            if _v is not None: write(_filter(_v, rawExpr='$user.username')) # from line 89, col 26.
     
    190184''')
    191185            if VFFSL(SL,"varExists",False)('machine'): # generated from line 93, col 1
    192                 write('''<a href="info?machine_id=''')
     186                write('<a href="info?machine_id=')
    193187                _v = VFFSL(SL,"machine.machine_id",True) # '$machine.machine_id' on line 94, col 26
    194188                if _v is not None: write(_filter(_v, rawExpr='$machine.machine_id')) # from line 94, col 26.
    195                 write('''">Info</a>
    196 <a href="vnc?machine_id=''')
     189                write('">Info</a>\n<a href="vnc?machine_id=')
    197190                _v = VFFSL(SL,"machine.machine_id",True) # '$machine.machine_id' on line 95, col 25
    198191                if _v is not None: write(_filter(_v, rawExpr='$machine.machine_id')) # from line 95, col 25.
    199                 write('''">Console</a>
    200 ''')
    201             write('''<a href="help">Help</a></p>
    202 ''')
     192                write('">Console</a>\n')
     193            write('<a href="help">Help</a></p>\n')
    203194        write('''</div>
    204195
     
    209200        _v = VFFSL(SL,"body",True) # '$body' on line 104, col 1
    210201        if _v is not None: write(_filter(_v, rawExpr='$body')) # from line 104, col 1.
    211         write('''
    212 ''')
     202        write('\n')
    213203        if not VFFSL(SL,"varExists",False)('simple') or not VFFSL(SL,"simple",True): # generated from line 105, col 1
    214             write('''<hr />
    215 Questions? Contact <a href="mailto:sipb-xen-dev@mit.edu">sipb-xen-dev@mit.edu</a>.
    216 ''')
    217         write('''</body>
    218 </html>
    219 ''')
     204            write('<hr />\nQuestions? Contact <a href="mailto:sipb-xen-dev@mit.edu">sipb-xen-dev@mit.edu</a>.\n')
     205        write('</body>\n</html>\n')
    220206       
    221207        ########################################
     
    244230        ## START - generated method body
    245231       
    246         write('''
    247 ''')
     232        write('\n')
    248233       
    249234        ########################################
  • trunk/web/templates/skeleton.tmpl

    r205 r206  
    7171}
    7272
    73 window.onload = {
     73window.onload = function (){
    7474  //Fix bug with disabled elements
    75   $$('form').each(Form.enable);
     75  \$\$('form').each(Form.enable);
    7676}
    7777
Note: See TracChangeset for help on using the changeset viewer.