diff getan.py @ 25:155b23da504b

Bugfix and improvements in the process to move/delete entries.
author Ingo Weinzierl <ingo_weinzierl@web.de>
date Sun, 29 Aug 2010 19:56:11 +0200
parents 9c4e8ba3c4fa
children 5e4d2810a739
line wrap: on
line diff
--- a/getan.py	Sun Aug 29 19:10:48 2010 +0200
+++ b/getan.py	Sun Aug 29 19:56:11 2010 +0200
@@ -57,14 +57,14 @@
             while True:
                 node = self.entries_view.selection.pop()
                 if node.selected: node.select()
-                entries.append(node.entry)
+                entries.append(node.item)
                 logger.info("GetanController: move entry '%s' (id = %d, "\
                             "project id = %d) to project '%s'"
-                            % (node.entry.desc, node.entry.id,
-                               node.entry.project_id, project.desc))
+                            % (node.item.desc, node.item.id,
+                               node.item.project_id, project.desc))
 
                 if not old_project:
-                    old_project = self.project_by_id(node.entry.project_id)
+                    old_project = self.project_by_id(node.item.project_id)
         except IndexError, err:
             pass
         finally:
@@ -83,14 +83,14 @@
             while True:
                 node = self.entries_view.selection.pop()
                 if node.selected: node.select()
-                entries.append(node.entry)
+                entries.append(node.item)
                 logger.info("GetanController: delete entry '%s' (id = %d, "\
                             "project id = %d)"
-                            % (node.entry.desc, node.entry.id,
-                               node.entry.project_id))
+                            % (node.item.desc, node.item.id,
+                               node.item.project_id))
 
                 if proj is None:
-                    proj = self.project_by_id(node.entry.project_id)
+                    proj = self.project_by_id(node.item.project_id)
         except IndexError, err:
             pass
         finally:
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)