Hi everybody!
I'm having troubles in my code with the Workflow...
If I use a @workflow.transitions decorator in this method:
@classmethod
@ModelView.button
@Workflow.transition('sended')
def sendmail(cls,bitsons):
for b in bitsons:
print b.email
I get an empty list in "bitsons"... but if I take off the decorator i get
the result that I want
@classmethod
@ModelView.button
def sendmail(cls,bitsons):
for b in bitsons:
print b.email
You can see the entire code in: https://bitbucket.org/Abrunacci/bitson_trial
Please, i need to know what is wrong with this and how i can fix it.
If you need more information, just ask for it
Thanks! and sorry for my bad english...