Ignore:
Timestamp:
16 May 2011, 13:59:43 (14 years ago)
Author:
uli
Message:
  • Remove trailing whitespaces.
  • Extends docs.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/utils/helpers.py

    r6071 r6113  
    6666                not_copied.append(item)
    6767                continue
    68        
     68
    6969        if os.path.isdir(itemsrc):
    7070            shutil.copytree(itemsrc, itemdst)
     
    162162    this is done automatically on startup of a :mod:`waeup.sirp`
    163163    system.
    164    
     164
    165165       >>> grok.testing.grok('waeup.sirp.utils.helpers')
    166166       >>> grok.testing.grok_component(
     
    224224    source string (in unicode), ``<WARNINGS>`` is a string containing
    225225    any warning messages or ``None``.
    226    
     226
    227227    Regular multi-line ReStructuredText strings will be returned as
    228228    HTML code:
     
    254254        >>> warnings is None
    255255        True
    256        
     256
    257257    If warnings happen then they can be retrieved in the returned
    258258    ``warnings``. We try to render an erraneous document:
     
    316316
    317317    The returned string will be unicode.
    318    
     318
    319319    A regular document will be rendered like this:
    320320
     
    349349        <p>Thanks for watching!</p>
    350350        </div>
    351        
     351
    352352    """
    353353    html, warnings = ReST2HTML_w_warnings(source_string)
     
    356356def attrs_to_fields(cls):
    357357    """Turn the attributes of a class into FieldProperty instances.
     358
     359    With Python >= 2.6 we can even use this function as a class decorator.
    358360    """
    359361    iface = list(implementedBy(cls))[0]
Note: See TracChangeset for help on using the changeset viewer.