common/mixins.py
changeset 1114 b91c7a7e8cb0
parent 961 3390ba558030
child 1124 5548b608b7d9
--- a/common/mixins.py	Fri Mar 13 11:06:21 2009 +0100
+++ b/common/mixins.py	Fri Mar 13 11:07:16 2009 +0100
@@ -192,6 +192,7 @@
         """change the entity's state according to a state defined in given
         parameters
         """
+        assert not isinstance(stateeid, basestring), 'change_state wants a state eid'
         if trcomment:
             self.req.set_shared_data('trcomment', trcomment)
         if trcommentformat: