Make link relative, not absolute.
authorEric Price <ecprice@mit.edu>
Wed, 10 Oct 2007 14:06:16 +0000 (10:06 -0400)
committerEric Price <ecprice@mit.edu>
Wed, 10 Oct 2007 14:06:16 +0000 (10:06 -0400)
svn path=/trunk/web/; revision=184

templates/skeleton.py
templates/skeleton.tmpl

index 92639f5..fd30729 100644 (file)
@@ -31,12 +31,12 @@ VFFSL=valueFromFrameOrSearchList
 VFSL=valueFromSearchList
 VFN=valueForName
 currentTime=time.time
-__CHEETAH_version__ = '2.0rc7'
-__CHEETAH_versionTuple__ = (2, 0, 0, 'candidate', 7)
-__CHEETAH_genTime__ = 1192024329.3744731
-__CHEETAH_genTimestamp__ = 'Wed Oct 10 09:52:09 2007'
+__CHEETAH_version__ = '2.0rc8'
+__CHEETAH_versionTuple__ = (2, 0, 0, 'candidate', 8)
+__CHEETAH_genTime__ = 1192025116.0694621
+__CHEETAH_genTimestamp__ = 'Wed Oct 10 10:05:16 2007'
 __CHEETAH_src__ = 'skeleton.tmpl'
-__CHEETAH_srcLastModified__ = 'Wed Oct 10 09:51:29 2007'
+__CHEETAH_srcLastModified__ = 'Wed Oct 10 10:04:55 2007'
 __CHEETAH_docstring__ = 'Autogenerated by CHEETAH: The Python-Powered Template Engine'
 
 if __CHEETAH_versionTuple__ < RequiredCheetahVersionTuple:
@@ -83,20 +83,21 @@ class skeleton(Template):
         ########################################
         ## START - generated method body
         
-        write('<html>\n<head><title>')
+        write('''<html>
+<head><title>''')
         _v = VFFSL(SL,"title",True) # '$title' on line 2, col 14
         if _v is not None: write(_filter(_v, rawExpr='$title')) # from line 2, col 14.
         write('''</title>
-  <link href="/static/favicon.ico" type="image/x-icon" rel="shortcut icon">
-  <link rel="stylesheet" href="/static/style.css" type="text/css" />
-  <link rel="stylesheet" href="/static/layout.css" type="text/css" media="screen" />
+  <link href="static/favicon.ico" type="image/x-icon" rel="shortcut icon">
+  <link rel="stylesheet" href="static/style.css" type="text/css" />
+  <link rel="stylesheet" href="static/layout.css" type="text/css" media="screen" />
   <script type="text/javascript">
 var helpWin = null;
 function closeWin(){
-       if (helpWin != null){
-               if(!helpWin.closed)
-                       helpWin.close();
-       }
+\tif (helpWin != null){
+\t\tif(!helpWin.closed)
+\t\t\thelpWin.close();
+\t}
 }
 
 function helppopup(name){
@@ -111,16 +112,22 @@ function helppopup(name){
 <body>
 ''')
         if not VFFSL(SL,"varExists",False)('simple') or not VFFSL(SL,"simple",True): # generated from line 25, col 1
-            write('<p>[You are logged in as ')
+            write('''<p>[You are logged in as ''')
             _v = VFFSL(SL,"user.username",True) # '$user.username' on line 26, col 26
             if _v is not None: write(_filter(_v, rawExpr='$user.username')) # from line 26, col 26.
-            write('.]</p>\n')
+            write('''.]</p>
+''')
         _v = VFFSL(SL,"body",True) # '$body' on line 28, col 1
         if _v is not None: write(_filter(_v, rawExpr='$body')) # from line 28, col 1.
-        write('\n')
+        write('''
+''')
         if not VFFSL(SL,"varExists",False)('simple') or not VFFSL(SL,"simple",True): # generated from line 29, col 1
-            write('<hr />\nQuestions? Contact <a href="mailto:sipb-xen-dev@mit.edu">sipb-xen-dev@mit.edu</a>.\n')
-        write('</body>\n</html>\n')
+            write('''<hr />
+Questions? Contact <a href="mailto:sipb-xen-dev@mit.edu">sipb-xen-dev@mit.edu</a>.
+''')
+        write('''</body>
+</html>
+''')
         
         ########################################
         ## END - generated method body
index bc2f931..bdd8cf2 100644 (file)
@@ -1,8 +1,8 @@
 <html>
 <head><title>$title</title>
-  <link href="/static/favicon.ico" type="image/x-icon" rel="shortcut icon">
-  <link rel="stylesheet" href="/static/style.css" type="text/css" />
-  <link rel="stylesheet" href="/static/layout.css" type="text/css" media="screen" />
+  <link href="static/favicon.ico" type="image/x-icon" rel="shortcut icon">
+  <link rel="stylesheet" href="static/style.css" type="text/css" />
+  <link rel="stylesheet" href="static/layout.css" type="text/css" media="screen" />
   <script type="text/javascript">
 var helpWin = null;
 function closeWin(){