# HG changeset patch # User RĂ©mi Cardona # Date 1442326195 -7200 # Node ID c23dc4f7467a7e506d32e58167da48a34a7cd1aa # Parent 7f6b5f023884a11ec6ac40fa48b84663ceb354bb [py3k] declare meta classes using six.add_metaclass 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