changeset 471:3853cf82ca3c

Update project time when moving an entrie.
author Magnus Schieder <mschieder@intevation.de>
date Tue, 08 May 2018 17:50:56 +0200
parents d379f8098bb3
children ca6d11781e2f
files CHANGES getan/controller.py
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/CHANGES	Tue May 08 15:00:31 2018 +0200
+++ b/CHANGES	Tue May 08 17:50:56 2018 +0200
@@ -9,7 +9,7 @@
    You can now see which entries are displayed when you are in the entries
    list. The project you are in is highlighted in color. The color can be
    changed in the getanrc with the key "open_project".
-   When deleting an entrie the project time is updated.
+   When deleting or moving an entrie, the project times are updated.
    Patch by Magnus Schieder
 
  * Updated the source code to the latest version of pyhton (python 3) to better
--- a/getan/controller.py	Tue May 08 15:00:31 2018 +0200
+++ b/getan/controller.py	Tue May 08 17:50:56 2018 +0200
@@ -77,7 +77,10 @@
         old_project = self.project_by_id(entries[0].project_id)
         self.backend.move_entries(entries, project.id)
         self.update_entries(old_project)
+        self.update_projects()
         self.project_view.update_rows()
+        open_project = self.project_by_id(old_project.id)
+        open_project.open = True
 
     def delete_entries(self, entry_nodes):
         if not entry_nodes:
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)