[Checkins] SVN: grok/branches/jw-viewlets-fix/src/grok/util.py Move comment to the place where it actually happens.

Jan-Wijbrand Kolman janwijbrand at gmail.com
Fri May 16 11:03:32 EDT 2008


Log message for revision 86794:
  Move comment to the place where it actually happens.

Changed:
  U   grok/branches/jw-viewlets-fix/src/grok/util.py

-=-
Modified: grok/branches/jw-viewlets-fix/src/grok/util.py
===================================================================
--- grok/branches/jw-viewlets-fix/src/grok/util.py	2008-05-16 14:56:33 UTC (rev 86793)
+++ grok/branches/jw-viewlets-fix/src/grok/util.py	2008-05-16 15:03:32 UTC (rev 86794)
@@ -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