[Checkins] SVN: Sandbox/malthe/chameleon.zpt/src/chameleon/zpt/language.py Make sure to get attributes corresponding to default namespace.

Malthe Borch mborch at gmail.com
Tue Nov 25 09:48:55 EST 2008


Log message for revision 93345:
  Make sure to get attributes corresponding to default namespace.

Changed:
  U   Sandbox/malthe/chameleon.zpt/src/chameleon/zpt/language.py

-=-
Modified: Sandbox/malthe/chameleon.zpt/src/chameleon/zpt/language.py
===================================================================
--- Sandbox/malthe/chameleon.zpt/src/chameleon/zpt/language.py	2008-11-25 14:33:06 UTC (rev 93344)
+++ Sandbox/malthe/chameleon.zpt/src/chameleon/zpt/language.py	2008-11-25 14:48:55 UTC (rev 93345)
@@ -91,6 +91,10 @@
 
             xhtml_attributes = utils.get_attributes_from_namespace(
                 self.element, config.XHTML_NS)
+
+            if self.element.prefix is None:
+                xhtml_attributes.update(utils.get_attributes_from_namespace(
+                    self.element, None))
             
             for name, value in xhtml_attributes.items():
                 parts = self.element.translator.split(value)



More information about the Checkins mailing list