Mercurial > hg > MPIWGWeb
diff MPIWGRoot.py @ 100:f4ac675b2031
more members pages.
author | casties |
---|---|
date | Tue, 21 May 2013 18:50:05 +0200 |
parents | 7aaed5218d55 |
children | 2e2dd6a5ab26 4a8a532a05ba |
line wrap: on
line diff
--- a/MPIWGRoot.py Tue May 21 17:07:48 2013 +0200 +++ b/MPIWGRoot.py Tue May 21 18:50:05 2013 +0200 @@ -137,7 +137,7 @@ subsecs = sec.objectItems(spec=self.nav_meta_types) subsecs = [s for s in subsecs if s[1].title != ""] - subsecs.sort(key=lambda x:int(getattr(x[1],'weight','0'))) + subsecs.sort(key=lambda x:getInt(getattr(x[1], 'weight', '0'))) return subsecs # compatibility @@ -147,7 +147,7 @@ def getSections(self): """returns a list of all sections i.e. top-level MPIWGFolders""" items = self.objectValues(spec='MPIWGFolder')[:] - items.sort(key=lambda x:int(x.weight)) + items.sort(key=lambda x:getInt(getattr(x, 'weight', '0'))) return items