Back to index

moin  1.9.0~rc2
Public Member Functions | Public Attributes
MoinMoin.wikiutil.required_arg Class Reference

List of all members.

Public Member Functions

def __init__

Public Attributes


Detailed Description

Wrap a type in this class and give it as default argument
for a function passed to invoke_extension_function() in
order to get generic checking that the argument is given.

Definition at line 1738 of file

Constructor & Destructor Documentation

def MoinMoin.wikiutil.required_arg.__init__ (   self,
Initialise a required_arg
@param argtype: the type the argument should have

Definition at line 1744 of file

01745     def __init__(self, argtype):
01746         """
01747         Initialise a required_arg
01748         @param argtype: the type the argument should have
01749         """
01750         if not (argtype in (bool, int, long, float, complex, unicode) or
01751                 isinstance(argtype, (IEFArgument, tuple, list))):
01752             raise TypeError("argtype must be a valid type")
01753         self.argtype = argtype

Member Data Documentation

Definition at line 1752 of file

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