[Checkins] SVN: z3ext.layout/trunk/ Pagelet should implement provided interfaces
Nikolay Kim
fafhrd at datacom.kz
Thu Dec 25 06:52:51 EST 2008
Log message for revision 94322:
Pagelet should implement provided interfaces
Changed:
U z3ext.layout/trunk/CHANGES.txt
U z3ext.layout/trunk/src/z3ext/layout/zcml.py
-=-
Modified: z3ext.layout/trunk/CHANGES.txt
===================================================================
--- z3ext.layout/trunk/CHANGES.txt 2008-12-25 11:22:30 UTC (rev 94321)
+++ z3ext.layout/trunk/CHANGES.txt 2008-12-25 11:52:51 UTC (rev 94322)
@@ -2,6 +2,12 @@
CHANGES
=======
+2.0.1 (2008-12-25)
+------------------
+
+- Pagelet should implement provided interfaces
+
+
2.0.0 (2008-12-22)
------------------
Modified: z3ext.layout/trunk/src/z3ext/layout/zcml.py
===================================================================
--- z3ext.layout/trunk/src/z3ext/layout/zcml.py 2008-12-25 11:22:30 UTC (rev 94321)
+++ z3ext.layout/trunk/src/z3ext/layout/zcml.py 2008-12-25 11:52:51 UTC (rev 94322)
@@ -17,6 +17,7 @@
"""
import os.path
from zope import schema, interface, event
+from zope.interface.verify import verifyClass
from zope.schema.interfaces import IFromUnicode
from zope.component import getUtility, queryUtility
from zope.component.interface import provideInterface
@@ -373,7 +374,6 @@
setattr(new_class, fname, field.fromUnicode(kwargs[fname]))
else:
if field.required and not hasattr(new_class, fname):
- print provides, new_class, fname
raise ConfigurationError("Required field is missing", fname)
if not hasattr(new_class, fname):
@@ -409,6 +409,8 @@
if not iface.implementedBy(new_class):
interface.classImplements(new_class, iface)
+ verifyClass(iface, new_class)
+
# Create the security checker for the new class
defineChecker(new_class, Checker(required))
More information about the Checkins
mailing list