[Zope-PTK] can't add loginmanager below root

Phillip J. Eby pje@telecommunity.com
Fri, 23 Jun 2000 18:29:22 -0500


Ty ran into this himself the other day; don't know if he's tracked down the
source of it yet.  It may have something to do with LoginManager being
owned by the UnownableOwner.

At 06:31 PM 6/23/00 -0400, Kevin Dangoor wrote:
>This is Zope 2.2, of course:
>
>Try this:
>
>Login as a Manager (not the superuser)
>Add a Folder
>Try to add a LoginManager
>
>likely you'll receive an error (KeyError for _owner)...
>
>  File /home/kid/Zope2/lib/python/Products/LoginManager/LoginManager.py,
>line 231, in manage_addLoginManager
>  File /home/kid/Zope2/lib/python/OFS/ObjectManager.py, line 249, in
>_setObject
>    (Object: ElementWithAttributes)
>  File /home/kid/Zope2/lib/python/AccessControl/Owned.py, line 267, in
>manage_fixupOwnershipAfterAdd
>    (Object: SheetProviderContainer)
>  File /home/kid/Zope2/lib/python/AccessControl/Owned.py, line 174, in
>changeOwnership
>    (Object: SheetProviderContainer)
>KeyError: (see above)
>
>I'm not sure whether this is LM's fault or something with the current access
>control. I'm guessing the LM I'm trying to add *should* be owned by my user
>ID, since I am logged in as a Manager and not superuser...
>
>Ideas?
>Kevin
>
>
>_______________________________________________
>Zope-PTK maillist  -  Zope-PTK@zope.org
>http://lists.zope.org/mailman/listinfo/zope-ptk
>
>See http://www.zope.org/Products/PTK/Tracker for bug reports and feature
requests
>
>
>