[Zope] Authenticated Username in manage_tabs
Tony McDonald
tony.mcdonald@ncl.ac.uk
Thu, 27 Apr 2000 13:20:37 +0100
Hi all,
I manage a lot of sites with various usernames, and I forget who I am
sometimes ;)
I thought that this might help.
Edit lib/python/App/manage_tabs.dtml and change this (it's near the
top of the file...)
<tr>
<td bgcolor="#003366" rowspan="5" width="10%" valign="bottom"
align="left"><font face="Verdana, Arial, Helvetica" color="#ffffff"
size="1"> <strong>Zope </strong></font><img
src="<dtml-var SCRIPT_NAME>/p_/sp" width="2" height="1">
</td>
<td bgcolor="#003366" colspan="<dtml-var "4 * (n_ + 1)">"><img
src="<dtml-var SCRIPT_NAME>/p_/sp" width="1" height="5"></td>
</tr>
to this;
<tr>
<td bgcolor="#003366" rowspan="5" width="10%" valign="bottom"
align="left"><font face="Verdana, Arial, Helvetica" color="#ffffff"
size="1"> <strong><dtml-var
"_.str(REQUEST['AUTHENTICATED_USER'])"> </strong></font><img
src="<dtml-var SCRIPT_NAME>/p_/sp" width="2" height="1">
</td>
<td bgcolor="#003366" colspan="<dtml-var "4 * (n_ + 1)">"><img
src="<dtml-var SCRIPT_NAME>/p_/sp" width="1" height="5"></td>
</tr>
restart your server and there you go...
I doubt it's got any hairiness in it....
hth
tone.
------
Dr Tony McDonald, FMCC, Networked Learning Environments Project
http://nle.ncl.ac.uk/
The Medical School, Newcastle University Tel: +44 191 222 5888
Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2