When models are modified, fire signal handlers to create the relevant
events.
Signed-off-by: Stephen Finucane
---
Changes since v1:
- Rework to support additional event types
Changes since RFC:
- Make use of database-provided foreign keys rather than reimplementing
them
The 'setbundles' view is also removed as it's not called by
anything/anyone.
Signed-off-by: Stephen Finucane
---
patchwork/urls.py | 28 +-
patchwork/views/bundle.py | 72 --
patchwork/views/cover.py | 2
This allows a user to download dependencies for a patch without having
to do it manually.
Signed-off-by: Stephen Finucane
---
patchwork/views/__init__.py | 50 +
patchwork/views/patch.py| 27
2 files
Additional signals are going to be added shortly and they shouldn't
pollute 'models.py'.
Signed-off-by: Stephen Finucane
---
patchwork/__init__.py | 20
patchwork/apps.py | 29
patchwork/models.py | 41
Signed-off-by: Stephen Finucane
---
docs/usage/overview.md | 115 +
1 file changed, 115 insertions(+)
diff --git a/docs/usage/overview.md b/docs/usage/overview.md
index af72092..6be673b 100644
--- a/docs/usage/overview.md
+++
Events record Patch-related things like initial creation, state
transitions, delegation assigning etc.
Signed-off-by: Stephen Finucane
---
v2:
- Add new events
- series-created
- cover-created
These require additional fields on the model
- Rename some events to present a
This mostly results in the addition of quotes to prevent globbing.
Signed-off-by: Stephen Finucane
---
patchwork/bin/parsemail-batch.sh | 17 +++--
patchwork/bin/parsemail.sh | 12 ++--
2 files changed, 13 insertions(+), 16 deletions(-)
diff --git
This mostly results in the addition of quotes to prevent globbing.
Signed-off-by: Stephen Finucane
---
tools/patchwork-update-commits | 8
tools/post-receive.hook| 22 +++---
tools/vagrant/install.sh | 2 --
3 files changed, 15
The 'patch_to_mbox' function returns an object which is coverted to a
string in all places where this call occurs. The string conversion
differs between Python 2 and 3 and while one it has been updated in one
place, it was missed in two others. Resole these issues and ensure they
don't happen