[Zope-CMF] Weird catalog behaviour

Andreas Jung lists at zopyx.com
Wed Jan 28 09:54:10 EST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 28.01.2009 15:52 Uhr, Charlie Clark wrote:
> Am 28.01.2009 um 15:44 schrieb Andreas Jung:
> 
>> Command-line (zopectl debug?): you're anonymous
>> ZMI: you're authenticated
>>
>> The catalog adds additional filters under the hood in order to filter
>> out content you are not allowed to see.
> 
> 
> That could be the explanation - how can I authenticate myself in  
> zopectl debug?
>

from AccessControl.SecurityManagement import newSecurityManager
user = app.acl_users.getUser(user_name_or_id)
newSecurityManager(None, user.__of__(app.acl_users))

Andreas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkmAcZIACgkQCJIWIbr9KYz0eACeKS60A0Ul3K9R5UOWpA10kB1g
j+AAoKnST3497uMEmZcmQlgS3zxWG7Ji
=Kv1B
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lists.vcf
Type: text/x-vcard
Size: 316 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope-cmf/attachments/20090128/a182bbe3/attachment.vcf 


More information about the Zope-CMF mailing list