[KSS-checkins] r51981 - kukit/kss.base/trunk/src/kss/base

gotcha at codespeak.net gotcha at codespeak.net
Sat Mar 1 12:02:02 CET 2008


Author: gotcha
Date: Sat Mar  1 12:02:00 2008
New Revision: 51981

Modified:
   kukit/kss.base/trunk/src/kss/base/corecommands.py
   kukit/kss.base/trunk/src/kss/base/corecommands.txt
Log:
Some hopefully better wording

Fix a typo in error message


Modified: kukit/kss.base/trunk/src/kss/base/corecommands.py
==============================================================================
--- kukit/kss.base/trunk/src/kss/base/corecommands.py	(original)
+++ kukit/kss.base/trunk/src/kss/base/corecommands.py	Sat Mar  1 12:02:00 2008
@@ -8,7 +8,7 @@
 
     def setStyle(self, selector, name, value):
         if ' ' in name:
-            raise ValueError('Style properites cannot contain spaces')
+            raise ValueError('Style properties cannot contain spaces')
         self.commands.add('setStyle', selector, name=name, value=value)
 
     def addClass(self, selector, value):

Modified: kukit/kss.base/trunk/src/kss/base/corecommands.txt
==============================================================================
--- kukit/kss.base/trunk/src/kss/base/corecommands.txt	(original)
+++ kukit/kss.base/trunk/src/kss/base/corecommands.txt	Sat Mar  1 12:02:00 2008
@@ -2,10 +2,11 @@
 Core commands
 =============
 
-The core commands wrap all standard KSS actions that are always available.
+The core commands wrap all KSS commands provided by the core plugin. 
+They are always available.
 These do not contain any effects and focus mostly on DOM manipulation.
 
-First we will need to create our command set.
+First we instantiate the command set.
 
   >>> from kss.base.corecommands import KSSCoreCommands
   >>> from kss.base import KSSCommands
@@ -14,7 +15,7 @@
   >>> commands = KSSCommands()
   >>> core = KSSCoreCommands(commands)
 
-Now we will look at the individual methods provided by the core commands.
+Let us look at the individual methods provided by the core commands.
 
   >>> core.replaceInnerHTML(css('div'), 'some <h1>html</h1>')
   >>> commands.render()
@@ -48,7 +49,7 @@
   >>> core.setStyle(css('div'), 'some name', 'some value')
   Traceback (most recent call last):
   ...
-  ValueError: Style properites cannot contain spaces
+  ValueError: Style properties cannot contain spaces
 
 
 Add class
@@ -77,14 +78,6 @@
   toggleClass(css('div'), value='somename')
 
 
-Focus
------
-
-  >>> commands.clear()
-  >>> core.focus(css('div'))
-  >>> print commands
-  focus(css('div'))
-
 ----------------
 HTML replacement
 ----------------
@@ -98,7 +91,7 @@
   replaceInnerHTML(css('div'), html=htmldata('some html'))
 
 You can also avoid KSS event setup. Use this only if you really need
-the speedup because KSS will not be applied to these new nodes.
+the speedup, as the KSS resource will not be bound to those new nodes.
 
   >>> core.replaceInnerHTML(css('div'), 'some html', withKssSetup=False)
   >>> print commands


More information about the Kukit-checkins mailing list