diff -r 7f6b5f023884 -r c23dc4f7467a schema.py --- a/schema.py Fri Sep 11 18:05:38 2015 +0200 +++ b/schema.py Tue Sep 15 16:09:55 2015 +0200 @@ -25,7 +25,7 @@ from logging import getLogger from warnings import warn -from six import string_types +from six import string_types, add_metaclass from six.moves import range from logilab.common import tempattr @@ -1296,12 +1296,13 @@ make_workflowable(cls) return cls + +@add_metaclass(workflowable_definition) class WorkflowableEntityType(ybo.EntityType): """Use this base class instead of :class:`EntityType` to have workflow relations (i.e. `in_state`, `wf_info_for` and `custom_workflow`) on your entity type. """ - __metaclass__ = workflowable_definition __abstract__ = True