Commits

Omer Katz committed 00d7099

Removed automatic documentation of functions and classes as it turns out that only modules use the metadata.

Comments (0)

Files changed (1)

         if not getattr(obj, '__version__', None): setattr(obj, '__version__', __copyright__)
         if not getattr(obj, '__status__', None): setattr(obj, '__status__', __license__)
 
-    def _document_functions(module):
-        from inspect import isfunction
-        functions = [getattr(module, function) for function in dir(module) if isfunction(getattr(module, function)) and function != '_']
-
-        for function in functions:
-            _document(function)
-
-    def _document_classes(module):
-        from inspect import isclass
-        classes = [getattr(module, klass) for klass in dir(module) if isclass(getattr(module, klass)) and klass != '_']
-
-        for klass in classes:
-            _document_functions(klass)
-            _document(klass)
-
-
     from pkgutil import walk_packages
     from django.utils.importlib import import_module
 
     for package in packages:
         module = import_module('hammerhead.%s' % package)
 
-        _document_functions(module)
-        _document_classes(module)
         _document(module)
 
 _document_api()