[Checkins] SVN: Sandbox/malthe/chameleon.zpt/ Updated handling of static attributes.

Malthe Borch mborch at gmail.com
Mon Nov 24 11:41:05 EST 2008


Log message for revision 93319:
  Updated handling of static attributes.

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

-=-
Modified: Sandbox/malthe/chameleon.zpt/CHANGES.txt
===================================================================
--- Sandbox/malthe/chameleon.zpt/CHANGES.txt	2008-11-24 16:40:29 UTC (rev 93318)
+++ Sandbox/malthe/chameleon.zpt/CHANGES.txt	2008-11-24 16:41:05 UTC (rev 93319)
@@ -4,6 +4,8 @@
 Head
 ~~~~
 
+- Updated handling of static attributes. [malthe]
+
 1.0b4 (released 11/19/2008)
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
 

Modified: Sandbox/malthe/chameleon.zpt/src/chameleon/zpt/language.py
===================================================================
--- Sandbox/malthe/chameleon.zpt/src/chameleon/zpt/language.py	2008-11-24 16:40:29 UTC (rev 93318)
+++ Sandbox/malthe/chameleon.zpt/src/chameleon/zpt/language.py	2008-11-24 16:41:05 UTC (rev 93319)
@@ -19,7 +19,13 @@
 
     class node(translation.Node):
         content_symbol = '_content'
-        
+
+        ns_omit = (
+            "http://xml.zope.org/namespaces/meta",
+            "http://xml.zope.org/namespaces/tal",
+            "http://xml.zope.org/namespaces/metal",
+            "http://xml.zope.org/namespaces/i18n")
+
         @property
         def omit(self):
             if self.element.tal_omit is not None:
@@ -108,11 +114,6 @@
             return self.element.i18n_attributes
         
         @property
-        def static_attributes(self):
-            return utils.get_attributes_from_namespace(
-                self.element, config.XHTML_NS)
-            
-        @property
         def translate(self):
             return self.element.i18n_translate
 



More information about the Checkins mailing list