@@ -22,8 +22,7 @@ stores Django model state to track history, view and revert changes via the
2222It is open source under the
2323[ BSD 3-Clause "New" or "Revise" License] ( https://github.com/treyhunner/django-simple-history/blob/master/LICENSE.txt ) .
2424
25-
26- [ ** django-simple-history/simple_history/signals.py** ] ( https://github.com/treyhunner/django-simple-history/blob/master/simple_history/signals.py )
25+ [ ** django-simple-history / simple_history / signals.py** ] ( https://github.com/treyhunner/django-simple-history/blob/master/simple_history/signals.py )
2726
2827``` python
2928# signals.py
@@ -59,7 +58,7 @@ for user registration and authentication in [Django](/django.html) projects.
5958The code for this project is open source under the
6059[ MIT license] ( https://github.com/divio/aldryn-accounts/blob/develop/LICENSE ) .
6160
62- [ ** aldryn-accounts/ aldryn_accounts/ signal.py** ] ( https://github.com/divio/aldryn-accounts/blob/develop/aldryn_accounts/signals.py )
61+ [ ** aldryn-accounts / aldryn_accounts / signal.py** ] ( https://github.com/divio/aldryn-accounts/blob/develop/aldryn_accounts/signals.py )
6362
6463``` python
6564# -*- coding: utf-8 -*-
@@ -95,7 +94,7 @@ is a [Django](/django.html)
9594to simplify handling time data in your applications using
9695users' geolocation data.
9796
98- [ ** django-easy-timezones/ easy_timezones/ signals.py** ] ( https://github.com/Miserlou/django-easy-timezones/blob/master/easy_timezones/middleware.py )
97+ [ ** django-easy-timezones / easy_timezones / signals.py** ] ( https://github.com/Miserlou/django-easy-timezones/blob/master/easy_timezones/middleware.py )
9998
10099``` python
101100# Django
@@ -105,3 +104,22 @@ users' geolocation data.
105104```
106105
107106
107+ ## Example 4 from viewflow
108+ [ viewflow] ( https://github.com/viewflow/viewflow ) is a reusable workflow
109+ code library for organizing business logic in a complex web application.
110+ The code for the project is available under the
111+ [ GNU Alfredo license] ( https://github.com/viewflow/viewflow/blob/master/LICENSE ) .
112+
113+ [ ** viewflow / viewflow / signals.py** ] ( https://github.com/viewflow/viewflow/blob/master/viewflow/signals.py )
114+
115+ ``` python
116+ from django.dispatch import Signal
117+
118+ flow_started = Signal(providing_args = [" process" , " task" ])
119+ flow_finished = Signal(providing_args = [" process" , " task" ])
120+
121+ task_started = Signal(providing_args = [" process" , " task" ])
122+ task_failed = Signal(providing_args = [" process" , " task" , " exception" ,
123+ " traceback" ])
124+ task_finished = Signal(providing_args = [" process" , " task" ])
125+ ```
0 commit comments