[cvs-annodex] commit (/annodex): cmmlwiki/trunk/cmmlwiki/html.py
conrad
nobody at lists.annodex.net
Thu Jan 19 14:48:03 EST 2006
Update of /annodex (new revision 1841)
Modified files:
cmmlwiki/trunk/cmmlwiki/html.py
Log Message:
Add "Welcome " message when logged into a page that needs authorization
Modified: cmmlwiki/trunk/cmmlwiki/html.py
===================================================================
--- cmmlwiki/trunk/cmmlwiki/html.py 2006-01-19 03:27:19 UTC (rev 1840)
+++ cmmlwiki/trunk/cmmlwiki/html.py 2006-01-19 03:48:03 UTC (rev 1841)
@@ -12,6 +12,8 @@
#
# Author: Conrad Parker <conrad at annodex.net>
+import os
+
from cmmlwiki.utils import edit_base
def html_head(title, query=''):
@@ -33,7 +35,14 @@
<h1><a href="%s">Collection</a>: %s</h1>
""" % (title, edit_base, title)
+ remote_user = os.getenv ('REMOTE_USER')
print """
+<div>
+Welcome <b>%s</b>.
+</div>
+""" % (remote_user)
+
+ print """
<div align="right">
<form method="get" action="%s/Special:Search">
<input name="q" accesskey="f" value="%s"/>
--
conrad
More information about the cvs-annodex
mailing list