[Checkins] SVN: Sandbox/malthe/chameleon.html/src/chameleon/html/xss.py Fixed error message.

Malthe Borch mborch at gmail.com
Wed Oct 1 15:20:00 EDT 2008


Log message for revision 91649:
  Fixed error message.

Changed:
  U   Sandbox/malthe/chameleon.html/src/chameleon/html/xss.py

-=-
Modified: Sandbox/malthe/chameleon.html/src/chameleon/html/xss.py
===================================================================
--- Sandbox/malthe/chameleon.html/src/chameleon/html/xss.py	2008-10-01 06:51:05 UTC (rev 91648)
+++ Sandbox/malthe/chameleon.html/src/chameleon/html/xss.py	2008-10-01 19:19:58 UTC (rev 91649)
@@ -3,10 +3,10 @@
 
 class Element(object):
     def __init__(self, selector, namespaces, name="",
-                 attributes=None, structure=False, **kwargs):
+                 attributes=None, structure=False, mode='content', **kwargs):
         if kwargs:
             for name in kwargs:
-                raise ValueError("Unknown property: " % name)
+                raise ValueError("Unknown property: %s" % repr(name))
         self.namespaces = namespaces
         self.selector = selector
         self.name = name



More information about the Checkins mailing list