diff MPIWGThesaurus.py @ 3:6f4b30846fed

Minor changes in deleteAllObjects
author dwinter
date Thu, 30 Jun 2011 11:18:29 +0200
parents 03c4e248b9e2
children fa8d698958f7
line wrap: on
line diff
--- a/MPIWGThesaurus.py	Thu Jun 30 10:05:46 2011 +0200
+++ b/MPIWGThesaurus.py	Thu Jun 30 11:18:29 2011 +0200
@@ -80,7 +80,7 @@
     projectHistoricalPlaces= OOBTree()
     projectSuggestedTags= OOBTree()
     persons2Projects= OOBTree()
-    object2Projects=OOBTree()
+    objects2Projects=OOBTree()
     historicalPlaces2Projects=OOBTree()
     suggestedTags2Projects=OOBTree()
     personIDtoNames=OOBTree()
@@ -285,7 +285,7 @@
         self.projectSuggestedTags=self.projectSuggestedTags
         
         self.persons2Projects=self.persons2Projects
-        self.object2Projects=self.object2Projects
+        self.objects2Projects=self.objects2Projects
         self.historicalPlaces2Projects=self.historicalPlaces2Projects
         self.suggestedTags2Projects=self.suggestedTags2Projects;
         
@@ -309,6 +309,16 @@
         
         return "DONE!"
     
+    security.declareProtected('View management screens','deleteAllObjects')                    
+    def deleteAllObjects(self):
+        """deleteAllTags - TODO: take this out!!,"""
+        logging.debug("delete all objects")
+        self.projectObjects= OOBTree()
+        self.objects2Projects=OOBTree()
+    
+        
+        return "DONE!"
+    
     def changeTagFromList(self,projectID,tagType,tagList):
         
         logging.debug("changing:"+projectID)