Package mvpa :: Package base :: Module report_dummy
[hide private]
[frames] | no frames]

Source Code for Module mvpa.base.report_dummy

 1  # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- 
 2  # vi: set ft=python sts=4 ts=4 sw=4 et: 
 3  ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## 
 4  # 
 5  #   See COPYING file distributed along with the PyMVPA package for the 
 6  #   copyright and license terms. 
 7  # 
 8  ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## 
 9  """Dummy report class, to just be there in case if reportlab is not available. 
10   
11  """ 
12   
13  __docformat__ = 'restructuredtext' 
14   
15   
16  from mvpa.base import warning 
17   
18  if __debug__: 
19      from mvpa.base import debug 
20   
21 -def _dummy(*args, **kwargs):
22 pass
23 24
25 -class Report(object):
26 """Dummy report class which does nothing but complains if used 27 28 """ 29
30 - def __init__(self, *args, **kwargs):
31 """Initialize dummy report 32 """ 33 warning("You are using DummyReport - no action will be taken. " 34 "Please install reportlab to enjoy reporting facility " 35 "within PyMVPA")
36
37 - def __getattribute__(self, index):
38 """ 39 """ 40 # returns a dummy function 41 return _dummy
42