Fix issue with sub project of parallel project

master
Benjamin Van Ryseghem 2014-08-16 12:24:52 +02:00
parent 8d4a762d57
commit 32fe3f277a
1 changed files with 11 additions and 3 deletions

View File

@ -163,11 +163,19 @@ class Project(object):
return self._subProjects return self._subProjects
def IsIgnored(self):
return self.name.startswith('Someday') or self.name.startswith('List - ')
def IsSequential(self): def IsSequential(self):
startsWithKeyword = self.name.startswith('Someday') or self.name.startswith('List - ') ignored = self.IsIgnored()
endsWithEqual = self.name.endswith('=') endsWithEqual = self.name.endswith('=')
parentSequential = self.parent == None or self.parent.IsSequential() validParent = self.parent == None or not self.parent.IsIgnored()
seq = ((not startsWithKeyword) and (not endsWithEqual)) and parentSequential seq = ((not ignored) and (not endsWithEqual)) and validParent
# if self.name .startsWith('Payer Camille'):
# print startsWithKeyword
# print endsWithEqual
# print parentSequential
# print seq
return seq return seq
def IsParallel(self): def IsParallel(self):