Ty Sarna writes:
 > In article <[EMAIL PROTECTED]>,
 > Dan L. Pierson <[EMAIL PROTECTED]> 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.

_______________________________________________
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to