Back to index

plone3  3.1.7
Public Member Functions | Public Attributes | Static Public Attributes
kss.core.plugins.core.commands.KSSCoreCommands Class Reference
Inheritance diagram for kss.core.plugins.core.commands.KSSCoreCommands:
Inheritance graph
[legend]
Collaboration diagram for kss.core.plugins.core.commands.KSSCoreCommands:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def getSelector
def getCssSelector
def getHtmlIdSelector
def getSameNodeSelector
def getParentNodeSelector
def replaceInnerHTML
def replaceHTML
def setAttribute
def setKssAttribute
def setStyle
def insertHTMLAfter
def insertHTMLAsFirstChild
def insertHTMLAsLastChild
def insertHTMLBefore
def clearChildNodes
def deleteNode
def deleteNodeAfter
def deleteNodeBefore
def copyChildNodesFrom
def moveNodeAfter
def moveNodeBefore
def copyChildNodesTo
def setStateVar
def continueEvent
def toggleClass
def addClass
def removeClass
def focus
def moveChildrenTo
def getCommandSet

Public Attributes

 view
 context
 request
 commands

Static Public Attributes

tuple value = BBB_classParms('toggleClass', *arg, **kw)
 def toggleClass(self, selector, value):
tuple command = self.commands.addCommand('toggleClass', selector)
tuple data = command.addParam('value', value)
tuple moveChildrenTo = deprecated(moveChildrenTo, 'No more supported, use a sequence of copyChildrenTo and clearChildren')
tuple setHtmlAsChild = deprecated(replaceInnerHTML, 'use replaceInnerHTML instead')
tuple addAfter = deprecated(insertHTMLAfter, 'use insertHTMLAfter instead')
tuple clearChildren = deprecated(clearChildNodes, 'use clearChildNodes instead')
tuple removeNode = deprecated(deleteNode, 'use deleteNode instead')
tuple removeNextSibling = deprecated(deleteNodeAfter, 'use deleteNodeAfter instead')
tuple removePreviousSibling = deprecated(deleteNodeBefore, 'use deleteNodeBefore instead')
tuple copyChildrenFrom = deprecated(copyChildNodesFrom, 'use copyChildNodesFrom instead')
tuple copyChildrenTo = deprecated(copyChildNodesTo, 'use copyChildNodesTo instead')
tuple setStatevar = deprecated(setStateVar, 'use setStateVar (capital V) instead')
tuple addClassName = deprecated(addClass, 'use addClass instead')
tuple removeClassName = deprecated(removeClass, 'use removeClass instead')

Detailed Description

Definition at line 8 of file commands.py.


Member Function Documentation

def kss.core.plugins.core.commands.KSSCoreCommands.addClass (   self,
  selector,
  arg,
  kw 
)

Definition at line 142 of file commands.py.

00142 
    def addClass(self, selector, *arg, **kw):

Here is the call graph for this function:

see interfaces.py 

Definition at line 83 of file commands.py.

00083 
00084     def clearChildNodes(self, selector):
00085         """ see interfaces.py """
00086         command = self.commands.addCommand('clearChildNodes', selector)
    
def kss.core.plugins.core.commands.KSSCoreCommands.continueEvent (   self,
  name,
  allnodes = False,
  kw 
)
see interfaces.py 

Definition at line 125 of file commands.py.

00125 
00126     def continueEvent(self, name, allnodes=False, **kw):
00127         """ see interfaces.py """
00128         command = self.commands.addCommand('continueEvent')
00129         command.addParam('name', name)
00130         command.addParam('allnodes', allnodes and 'true' or 'false')
00131         for key, value in kw.iteritems():
00132             command.addParam(key, value)

see interfaces.py 

Definition at line 99 of file commands.py.

00099 
00100     def copyChildNodesFrom(self, selector, id):
00101         """ see interfaces.py """
00102         command = self.commands.addCommand('copyChildNodesFrom', selector)
00103         data = command.addParam('html_id', id)

see interfaces.py 

Definition at line 114 of file commands.py.

00114 
00115     def copyChildNodesTo(self, selector, id):
00116         """ see interfaces.py """
00117         command = self.commands.addCommand('copyChildNodesTo', selector)
00118         data = command.addParam('html_id', id)

see interfaces.py 

Definition at line 87 of file commands.py.

00087 
00088     def deleteNode(self, selector):
00089         """ see interfaces.py """
00090         command = self.commands.addCommand('deleteNode', selector)

see interfaces.py 

Definition at line 91 of file commands.py.

00091 
00092     def deleteNodeAfter(self, selector):
00093         """ see interfaces.py """
00094         command = self.commands.addCommand('deleteNodeAfter', selector)

see interfaces.py 

Definition at line 95 of file commands.py.

00095 
00096     def deleteNodeBefore(self, selector):
00097         """ see interfaces.py """
00098         command = self.commands.addCommand('deleteNodeBefore', selector)

see interfaces.py 

Definition at line 160 of file commands.py.

00160 
00161     def focus(self, selector):
00162         """ see interfaces.py """
00163         command = self.commands.addCommand('focus', selector)

def kss.core.kssview.CommandSet.getCommandSet (   self,
  name 
) [inherited]

Definition at line 180 of file kssview.py.

00180 
00181     def getCommandSet(self, name):
00182         return self.view.getCommandSet(name)
00183 
# BBB deprecated

Definition at line 15 of file commands.py.

00015 
00016     def getCssSelector(self, selector):
00017         return CssSelector(selector)
            

Definition at line 18 of file commands.py.

00018 
00019     def getHtmlIdSelector(self, selector):
00020         return HtmlIdSelector(selector)

Definition at line 24 of file commands.py.

00024 
00025     def getParentNodeSelector(self, selector):
00026         return ParentNodeSelector(selector)

Definition at line 21 of file commands.py.

00021 
00022     def getSameNodeSelector(self):
00023         return SameNodeSelector()

def kss.core.plugins.core.commands.KSSCoreCommands.getSelector (   self,
  type,
  selector 
)

Definition at line 11 of file commands.py.

00011 
00012     def getSelector(self, type, selector):
00013         'Get a selector of a given type'
00014         return Selector(type, selector)

Here is the caller graph for this function:

def kss.core.plugins.core.commands.KSSCoreCommands.insertHTMLAfter (   self,
  selector,
  new_value,
  withKssSetup = 'True' 
)
see interfaces.py 

Definition at line 59 of file commands.py.

00059 
00060     def insertHTMLAfter(self, selector, new_value, withKssSetup='True'):
00061         """ see interfaces.py """
00062         command = self.commands.addCommand('insertHTMLAfter', selector)
00063         data = command.addHtmlParam('html', new_value)
00064         data = command.addParam('withKssSetup', withKssSetup)

def kss.core.plugins.core.commands.KSSCoreCommands.insertHTMLAsFirstChild (   self,
  selector,
  new_value,
  withKssSetup = 'True' 
)
see interfaces.py 

Definition at line 65 of file commands.py.

00065 
00066     def insertHTMLAsFirstChild(self, selector, new_value, withKssSetup='True'):
00067         """ see interfaces.py """
00068         command = self.commands.addCommand('insertHTMLAsFirstChild', selector)
00069         data = command.addHtmlParam('html', new_value)
00070         data = command.addParam('withKssSetup', withKssSetup)

def kss.core.plugins.core.commands.KSSCoreCommands.insertHTMLAsLastChild (   self,
  selector,
  new_value,
  withKssSetup = 'True' 
)
see interfaces.py 

Definition at line 71 of file commands.py.

00071 
00072     def insertHTMLAsLastChild(self, selector, new_value, withKssSetup='True'):
00073         """ see interfaces.py """
00074         command = self.commands.addCommand('insertHTMLAsLastChild', selector)
00075         data = command.addHtmlParam('html', new_value)
00076         data = command.addParam('withKssSetup', withKssSetup)

def kss.core.plugins.core.commands.KSSCoreCommands.insertHTMLBefore (   self,
  selector,
  new_value,
  withKssSetup = 'True' 
)
see interfaces.py 

Definition at line 77 of file commands.py.

00077 
00078     def insertHTMLBefore(self, selector, new_value, withKssSetup='True'):
00079         """ see interfaces.py """
00080         command = self.commands.addCommand('insertHTMLBefore', selector)
00081         data = command.addHtmlParam('html', new_value)
00082         data = command.addParam('withKssSetup', withKssSetup)

see interfaces.py 

Definition at line 167 of file commands.py.

00167 
00168     def moveChildrenTo(self, selector, id):
00169         """ see interfaces.py """
00170         self.copyChildrenTo(selector, id)
        self.clearChildren(selector)
def kss.core.plugins.core.commands.KSSCoreCommands.moveNodeAfter (   self,
  selector,
  id 
)
see interfaces.py 

Definition at line 104 of file commands.py.

00104 
00105     def moveNodeAfter(self, selector, id):
00106         """ see interfaces.py """
00107         command = self.commands.addCommand('moveNodeAfter', selector)
00108         data = command.addParam('html_id', id)

see interfaces.py 

Definition at line 109 of file commands.py.

00109 
00110     def moveNodeBefore(self, selector, id):
00111         """ see interfaces.py """
00112         command = self.commands.addCommand('moveNodeBefore', selector)
00113         data = command.addParam('html_id', id)

def kss.core.plugins.core.commands.KSSCoreCommands.removeClass (   self,
  selector,
  arg,
  kw 
)

Definition at line 151 of file commands.py.

00151 
    def removeClass(self, selector, *arg, **kw):

Here is the call graph for this function:

def kss.core.plugins.core.commands.KSSCoreCommands.replaceHTML (   self,
  selector,
  new_value,
  withKssSetup = 'True' 
)
see interfaces.py 

Definition at line 35 of file commands.py.

00035 
00036     def replaceHTML(self, selector, new_value, withKssSetup='True'):
00037         """ see interfaces.py """
00038         command = self.commands.addCommand('replaceHTML', selector)
00039         data = command.addHtmlParam('html', new_value)
00040         data = command.addParam('withKssSetup', withKssSetup)
    
def kss.core.plugins.core.commands.KSSCoreCommands.replaceInnerHTML (   self,
  selector,
  new_value,
  withKssSetup = 'True' 
)
see interfaces.py 

Definition at line 29 of file commands.py.

00029 
00030     def replaceInnerHTML(self, selector, new_value, withKssSetup='True'):
00031         """ see interfaces.py """
00032         command = self.commands.addCommand('replaceInnerHTML', selector)
00033         data = command.addHtmlParam('html', new_value)
00034         data = command.addParam('withKssSetup', withKssSetup)

def kss.core.plugins.core.commands.KSSCoreCommands.setAttribute (   self,
  selector,
  name,
  value 
)
see interfaces.py 

Definition at line 41 of file commands.py.

00041 
00042     def setAttribute(self, selector, name, value):
00043         """ see interfaces.py """
00044         command = self.commands.addCommand('setAttribute', selector)
00045         data = command.addParam('name', name)
00046         data = command.addParam('value', value)

def kss.core.plugins.core.commands.KSSCoreCommands.setKssAttribute (   self,
  selector,
  name,
  value 
)
see interfaces.py 

Definition at line 47 of file commands.py.

00047 
00048     def setKssAttribute(self, selector, name, value):
00049         """ see interfaces.py """
00050         command = self.commands.addCommand('setKssAttribute', selector)
00051         data = command.addParam('name', name)
00052         data = command.addParam('value', value)

def kss.core.plugins.core.commands.KSSCoreCommands.setStateVar (   self,
  varname,
  value 
)
see interfaces.py 

Definition at line 119 of file commands.py.

00119 
00120     def setStateVar(self, varname, value):
00121         """ see interfaces.py """
00122         command = self.commands.addCommand('setStateVar')
00123         command.addParam('varname', varname)
00124         command.addParam('value', value)

def kss.core.plugins.core.commands.KSSCoreCommands.setStyle (   self,
  selector,
  name,
  value 
)
see interfaces.py 

Definition at line 53 of file commands.py.

00053 
00054     def setStyle(self, selector, name, value):
00055         """ see interfaces.py """
00056         command = self.commands.addCommand('setStyle', selector)
00057         data = command.addParam('name', name)
00058         data = command.addParam('value', value)
    
def kss.core.plugins.core.commands.KSSCoreCommands.toggleClass (   self,
  selector,
  arg,
  kw 
)

Definition at line 133 of file commands.py.

00133 
    def toggleClass(self, selector, *arg, **kw):

Member Data Documentation

Definition at line 175 of file commands.py.

Definition at line 185 of file commands.py.

Definition at line 176 of file commands.py.

tuple kss.core.plugins.core.commands.KSSCoreCommands.command = self.commands.addCommand('toggleClass', selector) [static]

Definition at line 139 of file commands.py.

Definition at line 178 of file kssview.py.

Definition at line 176 of file kssview.py.

Definition at line 180 of file commands.py.

Definition at line 181 of file commands.py.

tuple kss.core.plugins.core.commands.KSSCoreCommands.data = command.addParam('value', value) [static]

Definition at line 140 of file commands.py.

tuple kss.core.plugins.core.commands.KSSCoreCommands.moveChildrenTo = deprecated(moveChildrenTo, 'No more supported, use a sequence of copyChildrenTo and clearChildren') [static]

Definition at line 171 of file commands.py.

Definition at line 186 of file commands.py.

Definition at line 178 of file commands.py.

Definition at line 177 of file commands.py.

Definition at line 179 of file commands.py.

Definition at line 177 of file kssview.py.

Definition at line 174 of file commands.py.

tuple kss.core.plugins.core.commands.KSSCoreCommands.setStatevar = deprecated(setStateVar, 'use setStateVar (capital V) instead') [static]

Definition at line 182 of file commands.py.

def toggleClass(self, selector, value):

def removeClass(self, selector, name):

def addClass(self, selector, name):

see interfaces.py 

Definition at line 137 of file commands.py.

Definition at line 175 of file kssview.py.


The documentation for this class was generated from the following file: