[Checkins] SVN: z3c.pt/trunk/src/z3c/pt/clauses.py Keep static attributes sorted (any policy is better than no policy).
Malthe Borch
mborch at gmail.com
Tue Sep 2 09:10:27 EDT 2008
Log message for revision 90701:
Keep static attributes sorted (any policy is better than no policy).
Changed:
U z3c.pt/trunk/src/z3c/pt/clauses.py
-=-
Modified: z3c.pt/trunk/src/z3c/pt/clauses.py
===================================================================
--- z3c.pt/trunk/src/z3c/pt/clauses.py 2008-09-02 13:05:17 UTC (rev 90700)
+++ z3c.pt/trunk/src/z3c/pt/clauses.py 2008-09-02 13:10:26 UTC (rev 90701)
@@ -499,6 +499,9 @@
not isinstance(value, types.expression),
self.attributes.items())
+ # sort static attribute alphabetically by name
+ static.sort(key=lambda (name, value): name)
+
dynamic = filter(
lambda (attribute, value): \
isinstance(value, types.expression),
More information about the Checkins
mailing list