services_overview: keep original order of services

git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@1948 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
helmutm 2007-08-22 07:34:13 +00:00
parent 1866d9c173
commit f0196f5cc6

View file

@ -85,12 +85,9 @@ class ServiceManagerView(BaseView):
classific = []
category = None
maxLevel = 0
svcs = sorted(self.context.getServices(),
key=lambda x: (x.getCategory(),
x.getClassification(),
x.title))
for svc in svcs:
cat = svc.getCategory()
svcs = sorted((svc.getCategory(), idx, svc)
for idx, svc in enumerate(self.context.getServices()))
for cat, idx, svc in svcs:
if cat != category:
term = serviceCategories.getTermByToken(cat)
result.append(dict(isHeadline=True, level=0, title=term.title,