Skip to content

Commit

Permalink
Add a new workflow state: archived permanently
Browse files Browse the repository at this point in the history
  • Loading branch information
msom committed Oct 22, 2015
1 parent da421c0 commit 014b8b0
Show file tree
Hide file tree
Showing 11 changed files with 151 additions and 55 deletions.
3 changes: 3 additions & 0 deletions docs/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ Changelog
- Allow filtering for multiple categories #90.
[msom]

- Add a new workflow state: archived permanently.
[msom]

- Limit the range of different guidle categories. Implements #91.
[msom]

Expand Down
9 changes: 9 additions & 0 deletions seantis/dir/events/configure.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,15 @@
handler=".upgrades.upgrade_1018_to_1019">
</genericsetup:upgradeStep>

<genericsetup:upgradeStep
title="Add new workflow state: archived permanently"
description=""
source="1019"
destination="1020"
profile="seantis.dir.events:default"
handler=".upgrades.upgrade_1019_to_1020">
</genericsetup:upgradeStep>

<!-- Advanced Theme Adjustments through Diazo -->
<plone:static name="seantis.dir.events.izug-theme"
directory="themes/izug-theme" type="theme"
Expand Down
3 changes: 3 additions & 0 deletions seantis/dir/events/item.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ def publish(self):
def archive(self):
self.do_action("archive")

def archive_permanently(self):
self.do_action("archive_permanently")

def hide(self):
self.do_action("hide")

Expand Down
6 changes: 6 additions & 0 deletions seantis/dir/events/locales/de/LC_MESSAGES/plone.po
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,18 @@ msgstr "Ablehnen"
msgid "Archive"
msgstr "Archivieren"

msgid "Archive permanently"
msgstr "Permanent archivieren"

msgid "Archive Event"
msgstr "Veranstaltung archivieren"

msgid "Archived"
msgstr "Archiviert"

msgid "Archived permanently"
msgstr "Permanent archiviert"

msgid "Hide"
msgstr "Verstecken"

Expand Down
48 changes: 24 additions & 24 deletions seantis/dir/events/locales/de/LC_MESSAGES/seantis.dir.events.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2015-10-01 09:42+0000\n"
"POT-Creation-Date: 2015-10-22 12:26+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand Down Expand Up @@ -30,7 +30,7 @@ msgstr "Importquellenbedingung hinzufügen"
msgid "Adjust"
msgstr "Korrigieren"

#: ./templates/directory.pt:117
#: ./templates/directory.pt:126
msgid "All Events"
msgstr "Alle Veranstaltungen"

Expand All @@ -54,7 +54,7 @@ msgstr "Eine Importquellenbedingung überprüft einen Inhalt auf dessen Import-Q
msgid "Any"
msgstr "Egal"

#: ./item.py:127
#: ./item.py:130
msgid "Attachment ${number}"
msgstr "Anhang ${number}"

Expand All @@ -79,7 +79,7 @@ msgstr "Lösche automatisch bereits importierte Veranstaltungen, welche nicht me
msgid "Back"
msgstr "Zurück"

#: ./templates/directory.pt:113
#: ./templates/directory.pt:122
msgid "Calendar Export"
msgstr "Kalender Export"

Expand Down Expand Up @@ -107,7 +107,7 @@ msgstr "Abbrechen"
msgid "Cancel Event Submission"
msgstr "Abbrechen"

#: ./templates/directory.pt:129
#: ./templates/directory.pt:138
msgid "Configure Imports"
msgstr "Imports konfigurieren"

Expand Down Expand Up @@ -140,15 +140,15 @@ msgid "Custom date range"
msgstr "Benutzerdefinierte Zeitspanne"

#: ./interfaces.py:281
#: ./templates/directory.pt:66
#: ./templates/directory.pt:69
msgid "Date"
msgstr "Datum"

#: ./form.py:764
msgid "Detail Preview"
msgstr "Details-Vorschau"

#: ./templates/directory.pt:33
#: ./templates/directory.pt:32
msgid "Dou you have an event to share?"
msgstr "Sie organisieren eine Veranstaltung?"

Expand Down Expand Up @@ -220,15 +220,15 @@ msgstr "Veranstaltungs-Meldung abgebrochen"
msgid "Event submitted"
msgstr "Veranstaltung gemeldet"

#: ./item.py:179
#: ./item.py:182
msgid "Event was archived"
msgstr "Die Veranstaltung wurde archiviert"

#: ./item.py:181
#: ./item.py:184
msgid "Event was hidden"
msgstr "Die Veranstaltung wurde versteckt"

#: ./item.py:178
#: ./item.py:181
msgid "Event was published"
msgstr "Die Veranstaltung wurde veröffentlicht"

Expand All @@ -248,19 +248,19 @@ msgstr "Veranstaltungs-Verzeichnis Eintrag"
msgid "Events directory URL"
msgstr "URL des Veranstaltungs-Verzeichnis"

#: ./templates/directory.pt:122
#: ./templates/directory.pt:131
msgid "Events matching the current filter"
msgstr "Veranstaltungen die dem aktuellen Filter entsprechen"

#: ./templates/directory.pt:52
#: ./templates/directory.pt:51
msgid "Filter"
msgstr "Filtern"

#: ./interfaces.py:411
msgid "Filter events"
msgstr "Filtere Veranstaltungen"

#: ./templates/directory.pt:122
#: ./templates/directory.pt:131
msgid "Filtered Events"
msgstr "Gefilterte Veranstaltungen"

Expand Down Expand Up @@ -304,7 +304,7 @@ msgstr "Guidle Import"
msgid "Guidle URL to download from"
msgstr "Guidle-URL"

#: ./directory.py:431
#: ./directory.py:433
msgid "Hidden"
msgstr "Versteckt"

Expand Down Expand Up @@ -336,7 +336,7 @@ msgstr "Bild"
msgid "Images"
msgstr "Bilder"

#: ./templates/directory.pt:93
#: ./templates/directory.pt:102
msgid "Import"
msgstr "Import"

Expand Down Expand Up @@ -417,11 +417,11 @@ msgstr "Name"
msgid "No changes were applied"
msgstr "Keine Änderungen"

#: ./directory.py:233
#: ./directory.py:235
msgid "No events for the current daterange"
msgstr "Keine Veranstaltungen gefunden."

#: ./directory.py:235
#: ./directory.py:237
msgid "No events for the current state"
msgstr "Keine Veranstaltungen gefunden."

Expand Down Expand Up @@ -458,11 +458,11 @@ msgstr "Bitte geben Sie mindestens einen Vorschlag ein"
msgid "Prices"
msgstr "Preise"

#: ./item.py:180
#: ./item.py:183
msgid "Publication of event was denied"
msgstr "Die Veranstaltung wurde abgelehnt"

#: ./directory.py:430
#: ./directory.py:432
msgid "Published"
msgstr "Veröffentlicht"

Expand All @@ -482,7 +482,7 @@ msgstr "Sa"
msgid "Save Event"
msgstr "Veranstaltung speichern"

#: ./templates/directory.pt:43
#: ./templates/directory.pt:42
msgid "Search"
msgstr "Suche"

Expand Down Expand Up @@ -522,7 +522,7 @@ msgstr "Von"
msgid "Starts each day at"
msgstr "Täglich von"

#: ./templates/directory.pt:86
#: ./templates/directory.pt:95
msgid "State"
msgstr "Status"

Expand All @@ -538,11 +538,11 @@ msgstr "So"
msgid "Submit"
msgstr "Melden"

#: ./templates/directory.pt:34
#: ./templates/directory.pt:33
msgid "Submit Your Event"
msgstr "Veranstaltung melden"

#: ./directory.py:425
#: ./directory.py:427
msgid "Submitted"
msgstr "Gemeldet"

Expand Down Expand Up @@ -571,7 +571,7 @@ msgstr "Vorgeschlagene Werte für die Wo-Kategorie"
msgid "Synchronise deleted events"
msgstr "Synchronisiere gelöschte Veranstaltungen"

#: ./directory.py:476
#: ./directory.py:478
#: ./interfaces.py:87
msgid "Terms and Conditions"
msgstr "Allgemeine Geschäftsbedingungen"
Expand Down

0 comments on commit 014b8b0

Please sign in to comment.