changeset 44:a30307377ed9

add project active state to getAllProjectsAndTagsAsCSV.
author casties
date Wed, 06 Nov 2013 15:03:36 +0100
parents f863fe7dc4e5
children efdbe9eb2403
files MPIWGThesaurus.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MPIWGThesaurus.py	Tue Nov 05 13:56:17 2013 +0100
+++ b/MPIWGThesaurus.py	Wed Nov 06 15:03:36 2013 +0100
@@ -331,7 +331,7 @@
     def getAllProjectsAndTagsAsCSV(self,active=0,archived=0,RESPONSE=None):
         """alle projekte auch die nicht getaggten"""
         retList=[]
-        headers=['projectId','sortingNumber','projectName','scholars','startedAt','completedAt','lastChangeThesaurusAt','lastChangeProjectAt','projectCreatedAt','persons','objects']
+        headers=['projectId','sortingNumber','projectName','scholars','startedAt','completedAt','lastChangeThesaurusAt','lastChangeProjectAt','projectCreatedAt','active','persons','objects']
         headers.extend(list(self.tags.keys()))
         retList.append("\t".join(headers))
         
@@ -351,7 +351,8 @@
             n = re.sub("[:\- ]","",str(changeDate))
             retProj.append(n)
             retProj.append(utf8ify(getattr(proj,'creationTime','20050101000000')))  
-            retProj.append("")#TODO: project created at   
+            retProj.append("")#TODO: project created at
+            retProj.append(str(proj.isActiveProject()))
             retProj.append(";".join([person[1] for person in self.getPersonsFromProject(proj.getId())]))
             #retProj.append(";".join([person[1] for person in self.thesaurus.getHistoricalPlacesFromProject(proj.getId())]))
             retProj.append(";".join([person[1] for person in self.getObjectsFromProject(proj.getId())]))