--- MPIWGWeb/Attic/MPIWGRoot.py 2008/09/03 15:12:57 1.1.2.12 +++ MPIWGWeb/Attic/MPIWGRoot.py 2008/09/03 21:16:40 1.1.2.13 @@ -390,7 +390,8 @@ class MPIWGRoot(ZSQLExtendFolder): secs = self.objectItems(['MPIWGFolder']) secs.sort(sortWeight) #logging.debug("root: %s secs: %s"%(repr(self.absolute_url()), repr(secs))) - return secs + # return pure list of objects + return [s[1] for s in secs] def getSectionStyle(self, name, style=""): """returns a string with the given style + '-sel' if the current section == name""" @@ -399,6 +400,15 @@ class MPIWGRoot(ZSQLExtendFolder): else: return style + def getFeatures(self): + """returns a list of all Features""" + dir = getattr(self, 'features') + features = dir.objectItems(['MPIWGFeature']) + features.sort(sortWeight) + # return pure list of objects + return [f[1] for f in features] + + def MPIWGrootURL(self): """returns the URL to the root""" return self.absolute_url()