Guest User

Untitled

a guest
Dec 15th, 2016
76
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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'
RAW Paste Data