[KSS-checkins] r53858 - kukit/kss.core/branch/1.4/kss/core/plugins/core

gotcha at codespeak.net gotcha at codespeak.net
Fri Apr 18 17:18:18 CEST 2008


Author: gotcha
Date: Fri Apr 18 17:18:17 2008
New Revision: 53858

Modified:
   kukit/kss.core/branch/1.4/kss/core/plugins/core/commands.py
   kukit/kss.core/branch/1.4/kss/core/plugins/core/interfaces.py
Log:
add missing declaration for setKssAttribute


Modified: kukit/kss.core/branch/1.4/kss/core/plugins/core/commands.py
==============================================================================
--- kukit/kss.core/branch/1.4/kss/core/plugins/core/commands.py	(original)
+++ kukit/kss.core/branch/1.4/kss/core/plugins/core/commands.py	Fri Apr 18 17:18:17 2008
@@ -2,7 +2,6 @@
 from kss.core.selectors import ParentNodeSelector, SameNodeSelector
 from kss.core.kssview import CommandSet
 from kss.core.deprecated import deprecated, deprecated_warning
-from kss.core.parsers import HtmlParser
 from kss.core.plugins.core.interfaces import IKSSCoreCommands
 from zope.interface import implements
 
@@ -45,6 +44,12 @@
         data = command.addParam('name', name)
         data = command.addParam('value', value)
 
+    def setKssAttribute(self, selector, name, value):
+        """ see interfaces.py """
+        command = self.commands.addCommand('setKssAttribute', selector)
+        data = command.addParam('name', name)
+        data = command.addParam('value', value)
+
     def setStyle(self, selector, name, value):
         """ see interfaces.py """
         command = self.commands.addCommand('setStyle', selector)

Modified: kukit/kss.core/branch/1.4/kss/core/plugins/core/interfaces.py
==============================================================================
--- kukit/kss.core/branch/1.4/kss/core/plugins/core/interfaces.py	(original)
+++ kukit/kss.core/branch/1.4/kss/core/plugins/core/interfaces.py	Fri Apr 18 17:18:17 2008
@@ -33,6 +33,9 @@
     def setAttribute(selector, name, value):
         """Set an attribute on node(s) specified by the selector"""
 
+    def setKssAttribute(selector, name, value):
+        """Set a KSS attribute on node(s) specified by the selector"""
+
     def setStyle(selector, name, value):
         """Set the style attribute of nodes specified by the selector"""
 


More information about the Kukit-checkins mailing list