diff getan/backend.py @ 362:90c09cca49c3

Fix loading entries of a project Projects.entries is converted into a read only property. Therefore it is not allowed to set the entries directly. Instead the load_entries method must be used.
author Björn Ricks <bjoern.ricks@intevation.de>
date Mon, 03 Mar 2014 15:08:07 +0100
parents 5ded6192b85b
children a487535e7844
line wrap: on
line diff
--- a/getan/backend.py	Mon Mar 03 15:00:20 2014 +0100
+++ b/getan/backend.py	Mon Mar 03 15:08:07 2014 +0100
@@ -290,7 +290,7 @@
             logger.debug("Added new entry '%s' of project '%s' into db"
                          % (desc, project.desc))
 
-            project.entries = self.load_entries(project.id)
+            project.load_entries()
         finally:
             close(cur)
 
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)