Monthly Archives: February 2011

Get a zc.sourcefactory to implement an interface

zc.sourcefactory is very handy to easily create a source (zope.schema.interfaces.IIterableSource to be precise) with corresponding titles and tokens for its contents. Every now and then a source requires an explicit interface. For zc.sourcefactory the following code snippet helps: class IMySource(zope.schema.interfaces.IIterableSource): … Continue reading

Posted in en | Tagged , , | Leave a comment