From ceab95b444462093068ba14213841786a5d0ec84 Mon Sep 17 00:00:00 2001
From: 0livd <0livd@users.noreply.github.com>
Date: Sun, 19 Mar 2017 18:53:09 +0100
Subject: [PATCH] Remove unused archive feature
The archive table is not removed from the database model
because it would involve a tricky migration
fixes #170
---
budget/forms.py | 6 ------
budget/messages.pot | 16 ----------------
budget/templates/create_archive.html | 7 -------
budget/templates/forms.html | 13 -------------
.../translations/fr/LC_MESSAGES/messages.mo | Bin 8332 -> 8040 bytes
.../translations/fr/LC_MESSAGES/messages.po | 16 ----------------
budget/web.py | 15 ++-------------
7 files changed, 2 insertions(+), 71 deletions(-)
delete mode 100644 budget/templates/create_archive.html
diff --git a/budget/forms.py b/budget/forms.py
index 7cdb36d4..69679837 100644
--- a/budget/forms.py
+++ b/budget/forms.py
@@ -172,12 +172,6 @@ class InviteForm(FlaskForm):
email=email))
-class CreateArchiveForm(FlaskForm):
- name = TextField(_("Name for this archive (optional)"), validators=[])
- start_date = DateField(_("Start date"), validators=[Required()])
- end_date = DateField(_("End date"), validators=[Required()], default=datetime.now)
-
-
class ExportForm(FlaskForm):
export_type = SelectField(_("What do you want to download ?"),
validators=[Required()],
diff --git a/budget/messages.pot b/budget/messages.pot
index 3c1276b5..0b1759b3 100644
--- a/budget/messages.pot
+++ b/budget/messages.pot
@@ -126,10 +126,6 @@ msgstr ""
msgid "The email %(email)s is not valid"
msgstr ""
-#: forms.py:190
-msgid "Name for this archive (optional)"
-msgstr ""
-
#: forms.py:191
msgid "Start date"
msgstr ""
@@ -201,10 +197,6 @@ msgstr ""
msgid "The bill has been modified"
msgstr ""
-#: web.py:399
-msgid "The data from XX to XX has been archived"
-msgstr ""
-
#: templates/add_bill.html:9
msgid "Back to the list"
msgstr ""
@@ -292,14 +284,6 @@ msgstr ""
msgid "No, thanks"
msgstr ""
-#: templates/forms.html:109
-msgid "Create an archive"
-msgstr ""
-
-#: templates/forms.html:116
-msgid "Create the archive"
-msgstr ""
-
#: templates/home.html:8
msgid "Manage your shared
expenses, easily"
msgstr ""
diff --git a/budget/templates/create_archive.html b/budget/templates/create_archive.html
deleted file mode 100644
index dd7ab860..00000000
--- a/budget/templates/create_archive.html
+++ /dev/null
@@ -1,7 +0,0 @@
-{% extends "layout.html" %}
-
-{% block content %}
-