New submission from mstarzyk <mstar...@gmail.com>: Hi, Calling Workflow.state_of(content) within the callback on workflow initialization causes recursion error. See the test case below:
from repoze.workflow import Workflow class Content(object): state = None def new_state(content, info): print info.workflow.state_of(content) def test_ws(): sm = Workflow('state', 'pending') sm._state_order = ['pending'] sm._state_data.setdefault('pending', {'callback':new_state}) content = Content() sm.initialize(content) test_ws() ---------- messages: 254 nosy: mstarzyk priority: bug status: unread title: Recursion error in workflow.state_of __________________________________ Repoze Bugs <b...@bugs.repoze.org> <http://bugs.repoze.org/issue96> __________________________________ _______________________________________________ Repoze-dev mailing list Repoze-dev@lists.repoze.org http://lists.repoze.org/listinfo/repoze-dev