[Zope-dev] Adding a _frame argument to InterfaceClass.__init__ to make it subclassable
Laurence Rowe
l at lrowe.co.uk
Sat Apr 30 20:06:38 EDT 2011
Hi,
I'd like to apply the attached patch to zope.interface trunk to make
it more easily subclassable without having to copy and paste a chunk
of its __init__ into the subclass' __init__.
Motivating factor is: I need an Interface with a hook that gets called
after InterfaceClass.__init__ to allow for:
* Checking that field names supplied as tagged values from directives
correspond to actual field names to detect typos.
* Registering the Interface instance for further configuration to be
executed by a zope.configuration action.
(Subclass is http://dev.plone.org/plone/browser/plone.supermodel/branches/elro-directives/plone/supermodel/model.py#L52)
Laurence
-------------- next part --------------
A non-text attachment was scrubbed...
Name: InterfaceClass-frame.diff
Type: application/octet-stream
Size: 919 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope-dev/attachments/20110501/d0e77805/attachment.obj
More information about the Zope-Dev
mailing list