Author: Not specified Language: python
Description: Not specified Timestamp: 2018-05-11 10:52:45 +0000
View raw paste Reply
  1. In [2]: MainOnBoardingFlow.start_from_code.run()
  2. ---------------------------------------------------------------------------
  3. NotImplementedError                       Traceback (most recent call last)
  4. <ipython-input-2-212cfd52ad06> in <module>()
  5. ----> 1 MainOnBoardingFlow.start_from_code.run()
  6.  
  7. ~/.Envs/fornova/lib/python3.6/site-packages/viewflow/nodes/func.py in run(self, *args, **kwargs)
  8.      74     def run(self, *args, **kwargs):
  9.      75         """Execute the function task."""
  10. ---> 76         return self.func(self, *args, **kwargs)
  11.      77
  12.      78
  13.  
  14. ~/.Envs/fornova/lib/python3.6/site-packages/django/utils/decorators.py in _wrapper(self, *args, **kwargs)
  15.      65             # 'self' argument, but it is a closure over self so it can call
  16.      66             # 'func' correctly.
  17. ---> 67             return bound_func(*args, **kwargs)
  18.      68         # In case 'decorator' adds attributes to the function it decorates, we
  19.      69         # want to copy those. We don't have access to bound_func in this scope,
  20.  
  21. /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/contextlib.py in inner(*args, **kwds)
  22.      50         def inner(*args, **kwds):
  23.      51             with self._recreate_cm():
  24. ---> 52                 return func(*args, **kwds)
  25.      53         return inner
  26.      54
  27.  
  28. ~/.Envs/fornova/lib/python3.6/site-packages/viewflow/decorators.py in _wrapper(flow_task, *args, **kwargs)
  29.      20                 activation = flow_task.activation_class()
  30.      21                 activation.initialize(flow_task, None)
  31. ---> 22                 return func(activation, *args, **kwargs)
  32.      23             except:
  33.      24                 exc = False
  34.  
  35. ~/.Envs/fornova/lib/python3.6/site-packages/django/utils/decorators.py in bound_func(*args2, **kwargs2)
  36.      61             @decorate
  37.      62             def bound_func(*args2, **kwargs2):
  38. ---> 63                 return func.__get__(self, type(self))(*args2, **kwargs2)
  39.      64             # bound_func has the signature that 'decorator' expects i.e.  no
  40.      65             # 'self' argument, but it is a closure over self so it can call
  41.  
  42. ~/Projects/fifa/fifa/flows/flows/main_onboarding.py in create_request(self, activation, **kwargs)
  43.      24     def create_request(self, activation, **kwargs):
  44.      25         activation.prepare()
  45. ---> 26         activation.done()
  46.      27         return activation
  47.      28
  48.  
  49. ~/.Envs/fornova/lib/python3.6/site-packages/viewflow/fsm.py in __call__(self, *args, **kwargs)
  50.      42     def __call__(self, *args, **kwargs):
  51.      43         """Perform the transition."""
  52. ---> 44         return self.descriptor(self.instance, *args, **kwargs)
  53.      45
  54.      46
  55.  
  56. ~/.Envs/fornova/lib/python3.6/site-packages/viewflow/fsm.py in __call__(self, instance, *args, **kwargs)
  57.     110
  58.     111         try:
  59. --> 112             result = self.func(instance, *args, **kwargs)
  60.     113         except:
  61.     114             self.state.set(instance, transition.source)
  62.  
  63. ~/.Envs/fornova/lib/python3.6/site-packages/viewflow/activation.py in done(self)
  64.     286             signals.flow_started.send(sender=self.flow_class, process=self.process, task=self.task)
  65.     287
  66. --> 288             self.activate_next()
  67.     289
  68.     290     @Activation.status.transition(source=STATUS.DONE, conditions=[all_leading_canceled])
  69.  
  70. ~/.Envs/fornova/lib/python3.6/site-packages/viewflow/fsm.py in __call__(self, *args, **kwargs)
  71.      42     def __call__(self, *args, **kwargs):
  72.      43         """Perform the transition."""
  73. ---> 44         return self.descriptor(self.instance, *args, **kwargs)
  74.      45
  75.      46
  76.  
  77. ~/.Envs/fornova/lib/python3.6/site-packages/viewflow/fsm.py in __call__(self, instance, *args, **kwargs)
  78.     110
  79.     111         try:
  80. --> 112             result = self.func(instance, *args, **kwargs)
  81.     113         except:
  82.     114             self.state.set(instance, transition.source)
  83.  
  84. ~/.Envs/fornova/lib/python3.6/site-packages/viewflow/activation.py in activate_next(self)
  85.     292         """Activate all outgoing edges."""
  86.     293         if self.flow_task._next:
  87. --> 294             self.flow_task._next.activate(prev_activation=self, token=self.task.token)
  88.     295
  89.     296     @Activation.status.transition(source=STATUS.DONE, target=STATUS.CANCELED, conditions=[all_leading_canceled])
  90.  
  91. ~/.Envs/fornova/lib/python3.6/site-packages/viewflow/__init__.py in activate(self, prev_activation, token)
  92.     152     def activate(self, prev_activation, token):
  93.     153         """Create task activation."""
  94. --> 154         return self.activation_class.activate(self, prev_activation, token)
  95.     155
  96.     156
  97.  
  98. ~/.Envs/fornova/lib/python3.6/site-packages/viewflow/activation.py in activate(cls, flow_task, prev_activation, token)
  99.     214     def activate(cls, flow_task, prev_activation, token):
  100.     215         """Instantiate and persist new flow task."""
  101. --> 216         raise NotImplementedError
  102.     217
  103.     218
  104.  
  105. NotImplementedError:
  106.  
  107. In [3]:
View raw paste Reply