Mercurial > hg > MPIWGWeb
comparison MPIWGProjects.py @ 229:d4216a848547
fixed problem that reading the project tree changes it.
author | casties |
---|---|
date | Tue, 05 Nov 2013 15:38:25 +0100 |
parents | afc96bc56817 |
children | 649f74b167e6 |
comparison
equal
deleted
inserted
replaced
228:afc96bc56817 | 229:d4216a848547 |
---|---|
1874 | 1874 |
1875 def getProjectTree(self): | 1875 def getProjectTree(self): |
1876 """Return the project hierarchy tree (and cache it). | 1876 """Return the project hierarchy tree (and cache it). |
1877 | 1877 |
1878 Returns HashTree instance.""" | 1878 Returns HashTree instance.""" |
1879 tree = self._v_projectTree | 1879 tree = self._v_projectTree |
1880 if tree is None: | 1880 if tree is None: |
1881 tree = HashTree(keySeparator='.', keyFn=getInt) | 1881 tree = HashTree(keySeparator='.', keyFn=getInt) |
1882 for p in self.objectValues(spec='MPIWGProject'): | 1882 for p in self.objectValues(spec='MPIWGProject'): |
1883 # add all projects | 1883 # add all projects |
1884 logging.debug("add to project tree: %s, %s"%(repr(p.getNumber()),p)) | 1884 logging.debug("add to project tree: %s, %s"%(repr(p.getNumber()),p)) |