Author: jmorliaguet Date: Wed Jun 28 10:51:00 2006 New Revision: 3534 Modified: cpsskins/branches/paris-sprint-2006/setup/io/adapters.py
Log: - raise an exception if no content type has been registered Modified: cpsskins/branches/paris-sprint-2006/setup/io/adapters.py ============================================================================== --- cpsskins/branches/paris-sprint-2006/setup/io/adapters.py (original) +++ cpsskins/branches/paris-sprint-2006/setup/io/adapters.py Wed Jun 28 10:51:00 2006 @@ -111,6 +111,8 @@ # properties schema = type.getContentType() + if schema is None: + raise TypeError("%s has no content type", repr(context)) for attr, field in zope.schema.getFieldsInOrder(schema): if attr in self.ignored_fields: continue -- http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins