[Zope-dev] Trouble setting LoginManager default user class
Dan L. Pierson
dan@sol.control.com
Wed, 17 May 2000 17:23:44 -0400 (EDT)
Ty Sarna writes:
> In article <14626.61567.192558.386542@sol.control.com>,
> Dan L. Pierson <dan@sol.control.com> wrote:
> > If I try to do it by setting _defaultClass to 'LoginMember', it fails
> > because 'LoginMember' isn't in Products.meta_classes. In fact nothing
> > relating to DemoPortal or any other ZClass product is in
> > Products.meta_classes! The official way to get into that dictionary
>
> For a ZClass, the string should look like "Productname/Classname".
> So try setting _defaultClass to "DemoPortal/LoginMember" instead of just
> "LoginMember" and see if that works.
I think I did... checking... yep, that fails with a KeyError in the
Products.meta_classes[c] reference in Rack.py. I expected that
because the list of Products.meta_classes keys is:
List of keys in Products.meta_class:
AccessControl.User/User
AccessControl.User/UserFolder
OFS.DTMLDocument/DTMLDocument
OFS.DTMLMethod/DTMLMethod
OFS.Folder/Folder
OFS.Image/File
OFS.Image/Image
Products.BannerClass.BannerClass/BannerManager
Products.BannerClass.BannerClass/banner
Products.GenericUserFolder.GenericUserFolder/GenericUserFolder
Products.GenericUserFolder.User/User
Products.LoginManager.UserSources/BasicUserSource
Products.LoginManager.UserSources/LoginUser
Products.PTKBase.Discussions/Discussable
Products.PTKBase.Discussions/DiscussionResponse
Products.PTKBase.Document/Document
Products.PTKBase.File/File
Products.PTKBase.Image/Image
Products.PTKBase.Link/Link
Products.PTKBase.MemberFolder/MemberBase
Products.PTKBase.MemberFolder/MemberFolderBase
Products.PTKBase.NewsItem/NewsItem
Products.PTKBase.PortalContent/PortalContent
Products.PTKBase.PortalFolder/PortalFolder
Products.PTKBase.PortalObject/PortalObjectBase
Products.PTKDemo.PersistentUserSource/MemberMixin
Products.PTKDemo.Portal/DemoPortalBase
Products.PTKDemo.SQLMember/DemoSQLMemberBase
Products.PTKDemo.SQLMember/DemoSQLMemberFolderBase
Products.PTKDemo.ZODBMember/DemoZODBMemberBase
Products.PTKDemo.ZODBMember/DemoZODBMemberFolderBase
Products.Renderable.Renderable/Renderable
Products.ZCatalog.CatalogAwareness/CatalogAware
Products.ZCatalog.ZCatalog/ZCatalog
Products.ZDBase.ZDiscussions/ZDItem
Products.ZDBase.ZDiscussions/ZDTopic
Products.ZPatterns.Rack/Rack
Products.ZPatterns.Rack/RackMountable
Products.ZPatterns.Specialists/Specialist
ZClasses.ObjectManager/ObjectManager
This is way I claim that ZClass products simply don't get in the
list. The site in question has KMnetNews and ZDiscussions installed
as well as PTK.