diff MPIWGDepartment.py @ 260:4eddd388d490 new_pro_struct

more work on subproject thumbs.
author casties
date Thu, 07 Aug 2014 17:50:04 +0200
parents 5d17c46ebffa
children
line wrap: on
line diff
--- a/MPIWGDepartment.py	Wed Aug 06 16:55:11 2014 +0200
+++ b/MPIWGDepartment.py	Thu Aug 07 17:50:04 2014 +0200
@@ -146,7 +146,7 @@
         proj = pf.getProject(projectNumber=self.getProjectNumber())
         return proj
 
-    def getProjects(self, count=0, active=0, archived=0, depthFirst=True):
+    def getProjects(self, count=0, active=0, archived=0, depthFirst=True, filter=None):
         """returns a list of projects of this department.
         
         active = 0 : all projects
@@ -158,7 +158,7 @@
         archived = 2 : archived projects
         """
         pf = self.getMPIWGRoot().getProjectFolder()
-        projects = pf.getProjectsAsList(self.getProjectNumber(), active=active, archived=archived, depthFirst=depthFirst)
+        projects = pf.getProjectsAsList(self.getProjectNumber(), active=active, archived=archived, depthFirst=depthFirst, filter=filter)
         #logging.debug("getProjects projects=%s"%repr(projects))
         if count > 0:
             return projects[:count]