Hmmm, I just stumbled upon some deprecation warnings in a google for
authenticated_user and that security getUser...equivalent should be used
instead.
Something like this - http://www.mail-archive.com/zope@zope.org/msg21432.html
Quoting Tres Seaver :
> -BEGIN PGP SIGNED MESSAGE-
> Ha
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 05/13/2011 03:36 PM, Richard Harley wrote:
> Please could someone tell me why AUTHENTICATED_USER was deprecated in
> favour of the python security module? A quick google says "because it
> can be replaced"..but this isn't really a good in depth ex
Dennis,
You might benefit from reading some of the general HOWTO's at
http://www.zope.org. Consider searching for "AUTHENTICATED_USER" or "user
manager".
A quick answer to your problem though:
AUTHENTICATED_USER is actually a class object (meaning it contains
variables of it's own, as well as f
Dennis,
try:
Guest
Zope is 'celver' enough to realise that you must mean the username when you
do:
but 'stupid' enough not to realise when you do:
Basic rule of thumb is that anythin in quotes is Python, and since AU is an
object, it must be treated as such.
btw, if you haven
You can check the username of AUTHENTICATED_USER as in (To all the people who
complained about me using _.str(...)) or you might want to check the role as
in .
- Original Message -
From: "Dennis Nichols" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, October 07, 2000 3:40 PM