FWIW, this is already a BrokenClass instance, thanks to ZODB:

(Pdb) p sequence
<class 'Products.Five.bbb.OFS_interfaces.IFolder'>
(Pdb) p sequence.__mro__
(<class 'Products.Five.bbb.OFS_interfaces.IFolder'>, <class
'OFS.Uninstalled.BrokenClass'>, <type 'ExplicitAcquirer'>, <class
'OFS.SimpleItem.Item'>, <class 'webdav.Resource.Resource'>, <class
webdav.Lockable.LockableItem at 0x014C6630>, <class
webdav.EtagSupport.EtagSupport at 0x014C6600>, <class
'OFS.CopySupport.CopySource'>, <class 'App.Management.Tabs'>, <class
OFS.Traversable.Traversable at 0x01431120>, <class OFS.ZDOM.Element at
0x014D7330>, <class OFS.ZDOM.Node at 0x014D7270>, <class
'AccessControl.Owned.Owned'>, <class 'App.Undo.UndoSupport'>, <type
'Persistence.Persistent'>, <type 'persistent.Persistent'>, <type
'ExtensionClass.Base'>, <type 'object'>)

Wonder if we can just check for that? And then how to avoid a
dependency of zope.interface on OFS.Uninstalled.BrokenClass.

--
Sidnei da Silva
Enfold Systems                http://enfoldsystems.com
Fax +1 832 201 8856     Office +1 713 942 2377 Ext 214
_______________________________________________
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com

Reply via email to