[Checkins]
SVN: grok/branches/jw-fix-viewlet-sorting/src/grok/util.py
Move comment.
Jan-Wijbrand Kolman
janwijbrand at gmail.com
Mon May 19 04:26:17 EDT 2008
Log message for revision 86830:
Move comment.
Changed:
U grok/branches/jw-fix-viewlet-sorting/src/grok/util.py
-=-
Modified: grok/branches/jw-fix-viewlet-sorting/src/grok/util.py
===================================================================
--- grok/branches/jw-fix-viewlet-sorting/src/grok/util.py 2008-05-19 05:41:33 UTC (rev 86829)
+++ grok/branches/jw-fix-viewlet-sorting/src/grok/util.py 2008-05-19 08:26:13 UTC (rev 86830)
@@ -97,6 +97,7 @@
interface.directlyProvides(request, *ifaces)
def _sort_key(component):
+ # If components have a grok.order directive, sort by that.
explicit_order, implicit_order = grok.order.bind().get(component)
return (explicit_order,
component.__module__,
@@ -104,5 +105,4 @@
component.__class__.__name__)
def sort_components(components):
- # if components have a grok.order directive, sort by that
return sorted(components, key=_sort_key)
More information about the Checkins
mailing list