summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
9fcc8cf)
svn path=/trunk/packages/invirt-web/; revision=2182
import sys
import time
import urllib
import sys
import time
import urllib
from StringIO import StringIO
def revertStandardError():
from StringIO import StringIO
def revertStandardError():
def unauthFront(_, _2, _3, fields):
"""Information for unauth'd users."""
def unauthFront(_, _2, _3, fields):
"""Information for unauth'd users."""
- return templates.unauth(searchList=[{'simple' : True}])
+ return templates.unauth(searchList=[{'simple' : True,
+ 'hostname' : os.environ['HOSTNAME'] if 'HOSTNAME' in os.environ else 'xvm.mit.edu'}])
def admin(username, state, path, fields):
if path == '':
def admin(username, state, path, fields):
if path == '':
<p>MIT users:</p>
<blockquote><big><a
<p>MIT users:</p>
<blockquote><big><a
-href="https://xvm.mit.edu/"><strong><font color="green">→</font> Log in to XVM now</strong>
+href="https://$hostname/"><strong><font color="green">→</font> Log in to XVM now</strong>
</a></big></blockquote>
<p>You'll need an <a href="http://ca.mit.edu/">MIT personal
certificate</a>.</p>
</a></big></blockquote>
<p>You'll need an <a href="http://ca.mit.edu/">MIT personal
certificate</a>.</p>