10 Oct
2003
10 Oct
'03
1:39 a.m.
On Thu, 2003-10-09 at 15:54, Erik Myllymaki wrote:
---- from AccessControl import getSecurityManager return getSecurityManager().getUser().getUserName() ---- Any reason why you shouldn't just use <dtml-var AUTHENTICATED_USER> as a parameter to your SQL query?
AUTHENTICATED_USER is deprecated because the SecurityManager object is a far more secure source of authentication information. Anyway, once you've set it up, get_user() is way less typing than REQUEST.get('AUTHENTICATED_USER'). :-) HTH, Dylan