Changeset 1179 for trunk/camelot/view/controls/delegates/__init__.py
- Timestamp:
- 03/08/10 22:17:24 (6 months ago)
- Files:
-
- 1 modified
-
trunk/camelot/view/controls/delegates/__init__.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/camelot/view/controls/delegates/__init__.py
r1150 r1179 1 1 2 """Camelot includes a number of Qt delegates, most of them are used as default3 delegates for the various sqlalchemy and camelot field types.4 5 Some delegates take specific arguments into account for their construction.6 All :attr:`field_attributes` specified for a certain field will be propagated7 towards the constructor of the delegate.8 """9 2 10 3 from delegatemanager import DelegateManager … … 37 30 from notedelegate import NoteDelegate 38 31 from labeldelegate import LabelDelegate 32 33 doc = """Camelot includes a number of Qt delegates, most of them are used as default 34 delegates for the various sqlalchemy and camelot field types. 35 36 Some delegates take specific arguments into account for their construction. 37 All :attr:`field_attributes` specified for a certain field will be propagated 38 towards the constructor of the delegate. Some of them will be used by the delegate 39 itself, others will be used by the editor, created by the delegate. 40 41 """ 42 43 custom_delegates = list(CustomDelegate.__subclasses__()) 44 custom_delegates.sort(key=lambda d:d.__name__) 45 for custom_delegate in custom_delegates: 46 doc = doc + custom_delegate.__name__ + '\n' + '-'*len(custom_delegate.__name__) + '\n' 47 if hasattr(custom_delegate, '__doc__'): 48 doc = doc + custom_delegate.__doc__ + '\n' 49 50 print doc 51 52 __doc__ = doc
