Changeset 207

Show
Ignore:
Timestamp:
04/26/08 13:53:33 (9 months ago)
Author:
tal
Message:
Tweaks.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • packages/vanilla/trunk/Documentation/autoDoc.py

    r1 r207  
    132132 
    133133def extractMethodDoc(func, className): 
     134    if func is None: 
     135        return 
     136    # hack around standard attributes 
     137    if isinstance(func, (dict, int)): 
     138        return 
     139    if repr(func).startswith("<objective-c class"): 
     140        return 
     141    if "VanillaTabItem" in repr(func): 
     142        return 
    134143    funcName = func.__name__ 
    135144    if hasattr(func, 'callable'): 
     
    341350                continue 
    342351            # get the method name and formatted doc 
    343             methodName, methodDoc = extractMethodDoc(getattr(cls, attr), className) 
     352            result = extractMethodDoc(getattr(cls, attr), className) 
     353            if result is None: 
     354                continue 
     355            methodName, methodDoc = result 
    344356            methods[methodName] = methodDoc 
    345357        sortedMethods = methods.keys()