Permalink
Browse files

Sort the available releases of trackers in PloneSoftwareCenter by id.

This means: by version.
  • Loading branch information...
1 parent 1d2bdc4 commit 2e18aafda81a07ca09911f4502a84946844aad5c @mauritsvanrees mauritsvanrees committed Oct 18, 2013
Showing with 6 additions and 1 deletion.
  1. +4 −0 CHANGES.rst
  2. +2 −1 Products/Poi/psc/PoiPscTracker.py
View
@@ -5,6 +5,10 @@ Changelog for Poi
2.2.6 (unreleased)
------------------
+- Sort the available releases of trackers in PloneSoftwareCenter by
+ id, which means: by version.
+ [maurits]
+
- Fix auto-recognized issue/revision links when displayed in the
tracker log. These would point outside of the tracker. Now we pass
the absolute url of the tracker. Note that responses cache their
@@ -102,7 +102,7 @@ def getAvailableReleases(self):
releases = catalog.searchResults(
portal_type='PSCRelease',
path='/'.join(self.getPhysicalPath()[:-1]),
- sort_on='created',
+ sort_on='getId',
)
return [r.UID for r in releases]
@@ -113,6 +113,7 @@ def getReleasesVocab(self):
releases = catalog.searchResults(
portal_type='PSCRelease',
path='/'.join(self.getPhysicalPath()[:-1]),
+ sort_on='getId',
)
return DisplayList([(r.UID, r.getId) for r in releases])

0 comments on commit 2e18aaf

Please sign in to comment.