document Package

document Package

Decorators to enhance the docstrings of classes

camelot.core.document.documented_entity()[source]

Class decorator to append an image of the default view for an entity to an entity class. The image can be generated by using the testing framework to create images of all default views in an application

@documented_entity()
class Movie(Entity):
  '''A movie as played in the theater'''
  title = Field(Unicode(50))

The resulting docstring of the Movie entity will be

'''A movie as played in the theater

image ../_static/entityviews/new_view_movie.png
'''
camelot.core.document.documented_type()[source]

Class decorator to append an image of the default editor of a field type to the docstring of the type

Table Of Contents

This Page


Comments
blog comments powered by Disqus