Back to index

plone3  3.1.7
Classes | Functions
kss.core.plugins.core.commands Namespace Reference

Classes

class  KSSCoreCommands

Functions

def BBB_classParms

Function Documentation

def kss.core.plugins.core.commands.BBB_classParms (   commandname,
  value = None,
  classname = None,
  name = None 
)

Definition at line 189 of file commands.py.

00189 
00190 def BBB_classParms(commandname, value=None, classname=None, name=None):
00191     if classname:
00192         deprecated_warning(('Deprecated the "classname" parameter in the "%s" command, ' +
00193                            'use "name" instead.') % (commandname ,))
00194         if not value:
00195             value = classname
00196     if name:
00197         deprecated_warning(('Deprecated the "name" parameter in the "%s" command, ' +
00198                            'use "name" instead.') % (commandname ,))
00199         if not value:
00200             value = name
00201     if not value:
00202         raise Exception, 'Parameter "value" is mandatory in command "%s"' % (commandname, )
00203     return value
00204 
00205     # end deprecated

Here is the call graph for this function:

Here is the caller graph for this function: