common/mixins.py
branchtls-sprint
changeset 1263 01152fffd593
parent 1182 78e4080252be
parent 1124 5548b608b7d9
child 1266 5f16f45e9bae
--- a/common/mixins.py	Mon Apr 06 12:37:45 2009 +0200
+++ b/common/mixins.py	Tue Apr 07 09:30:23 2009 +0200
@@ -193,6 +193,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: