Back to index

plone3  3.1.7
Public Member Functions | Private Attributes
CMFCore.tests.test_FSPythonScript.WarnMe Class Reference
Inheritance diagram for CMFCore.tests.test_FSPythonScript.WarnMe:
Inheritance graph
[legend]
Collaboration diagram for CMFCore.tests.test_FSPythonScript.WarnMe:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def __call__

Private Attributes

 _stacklevel

Detailed Description

Emits a UserWarning when called

Definition at line 280 of file test_FSPythonScript.py.


Constructor & Destructor Documentation

def CMFCore.tests.test_FSPythonScript.WarnMe.__init__ (   self,
  stacklevel 
)

Definition at line 283 of file test_FSPythonScript.py.

00283 
00284     def __init__(self, stacklevel):
00285         self._stacklevel = stacklevel


Member Function Documentation

Definition at line 286 of file test_FSPythonScript.py.

00286 
00287     def __call__(self):
00288         import warnings
00289         warnings.warn('foo', stacklevel=self._stacklevel)
00290 

Here is the caller graph for this function:


Member Data Documentation

Definition at line 284 of file test_FSPythonScript.py.


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