[Checkins] SVN: Sandbox/malthe/chameleon.genshi/ Updated handling of static attributes.
Malthe Borch
mborch at gmail.com
Mon Nov 24 11:41:30 EST 2008
Log message for revision 93320:
Updated handling of static attributes.
Changed:
U Sandbox/malthe/chameleon.genshi/CHANGES.txt
U Sandbox/malthe/chameleon.genshi/src/chameleon/genshi/language.py
-=-
Modified: Sandbox/malthe/chameleon.genshi/CHANGES.txt
===================================================================
--- Sandbox/malthe/chameleon.genshi/CHANGES.txt 2008-11-24 16:41:05 UTC (rev 93319)
+++ Sandbox/malthe/chameleon.genshi/CHANGES.txt 2008-11-24 16:41:30 UTC (rev 93320)
@@ -4,6 +4,8 @@
head
~~~~
+- Update handling of static attributes. [malthe]
+
- Added text template classes. [malthe, wichert]
- Added default element to parser class. [malthe]
Modified: Sandbox/malthe/chameleon.genshi/src/chameleon/genshi/language.py
===================================================================
--- Sandbox/malthe/chameleon.genshi/src/chameleon/genshi/language.py 2008-11-24 16:41:05 UTC (rev 93319)
+++ Sandbox/malthe/chameleon.genshi/src/chameleon/genshi/language.py 2008-11-24 16:41:30 UTC (rev 93320)
@@ -12,6 +12,12 @@
translator = expressions.translator
class node(translation.Node):
+ ns_omit = (
+ "http://xml.zope.org/namespaces/meta",
+ "http://xml.zope.org/namespaces/i18n",
+ "http://www.w3.org/2001/XInclude",
+ "http://genshi.edgewall.org/")
+
@property
def omit(self):
if self.element.py_strip is not None:
@@ -70,11 +76,6 @@
return attributes
@property
- def static_attributes(self):
- return utils.get_attributes_from_namespace(
- self.element, config.XHTML_NS)
-
- @property
def macro(self):
return self.element.py_def
More information about the Checkins
mailing list