Changeset 11476 for main


Ignore:
Timestamp:
7 Mar 2014, 09:32:43 (11 years ago)
Author:
Henrik Bettermann
Message:

Replace default FieldProperty? docstring by field title.

File:
1 edited

Legend:

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

    r10678 r11476  
    401401        if field_name in omit:
    402402            continue
    403         setattr(cls, field_name, FieldProperty(iface[field_name]))
     403        field_property = FieldProperty(iface[field_name])
     404        # Set proper docstring for the API docs.
     405        field_property.__doc__ = iface[field_name].title + ' (computed attribute)'
     406        setattr(cls, field_name, field_property)
    404407    return cls
    405408
Note: See TracChangeset for help on using the changeset viewer.