Advertisement
Guest User

Untitled

a guest
Dec 15th, 2016
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | None | 0 0
  1. class CreatePurchase:
  2.     __metaclass__ = PoolMeta
  3.     __name__ = 'purchase.request.create_purchase'
  4.  
  5.     @classmethod
  6.     def __setup__(cls):
  7.         super(CreatePurchase, cls).__setup__()
  8.         init = StateTransition()
  9.         cls.start_state = 'init'
  10.  
  11.     def transition_init(self):
  12.         print 'init'
  13.         return 'start'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement