[Checkins] SVN: z3c.pt/trunk/src/z3c/pt/ Mimick ZPT's behavior: always use the character casing of the static attribute.
Malthe Borch
mborch at gmail.com
Tue Sep 2 09:29:52 EDT 2008
Log message for revision 90708:
Mimick ZPT's behavior: always use the character casing of the static attribute.
Changed:
U z3c.pt/trunk/src/z3c/pt/utils.py
U z3c.pt/trunk/src/z3c/pt/zpt.txt
-=-
Modified: z3c.pt/trunk/src/z3c/pt/utils.py
===================================================================
--- z3c.pt/trunk/src/z3c/pt/utils.py 2008-09-02 13:26:45 UTC (rev 90707)
+++ z3c.pt/trunk/src/z3c/pt/utils.py 2008-09-02 13:29:52 UTC (rev 90708)
@@ -163,13 +163,16 @@
def __setitem__(self, key, item):
"""Case insensitive set item."""
- UserDict.__setitem__(self, key, item)
keys = tuple(key.lower() for key in self._keys)
_key = key.lower()
if _key in keys:
for k in self._keys:
if k.lower() == _key:
self._keys.remove(k)
+ key = k
+ break
+
+ UserDict.__setitem__(self, key, item)
self._keys.append(key)
def clear(self):
Modified: z3c.pt/trunk/src/z3c/pt/zpt.txt
===================================================================
--- z3c.pt/trunk/src/z3c/pt/zpt.txt 2008-09-02 13:26:45 UTC (rev 90707)
+++ z3c.pt/trunk/src/z3c/pt/zpt.txt 2008-09-02 13:29:52 UTC (rev 90708)
@@ -32,7 +32,7 @@
... <span tal:content="None" />
... </div>""")
<div>
- <span class="defabc" style="hij" onClick="alert();" id="test">abcghi</span>
+ <span class="defabc" style="hij" onclick="alert();" id="test">abcghi</span>
Hello World!
Hello World!
<span></span>
More information about the Checkins
mailing list