--On 22. März 2007 14:09:00 -0400 Thomas Bennett <[EMAIL PROTECTED]> wrote:
Long story short: Is it appropriate to change self.REQUEST.AUTHENTICATED_USER.name to self.REQUEST.REMOTE_USER ?
Using AUTHENTICATED_USER isn't recommended (since ages). You should always use the SecurityManager API: from AccessControl import getSecurityManager user = getSecurityManager().getUser() username = user.getUserName() Changing request parameters as a workaround for stinking code is unlikely a good choice. Better fix the related code instead of messing up the REQUEST. -aj
pgpanj4ocGZcM.pgp
Description: PGP signature
_______________________________________________ Zope maillist - [email protected] http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
