X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/7beaf5e7ce33721111cf455028dc872ff8a5512a..79e89d2c15b86b7b8d4ccf76c85d2fa2154cd2e8:/docs/models/entities.rst diff --git a/docs/models/entities.rst b/docs/models/entities.rst index f381ead..4127f56 100644 --- a/docs/models/entities.rst +++ b/docs/models/entities.rst @@ -1,2 +1,56 @@ -Entities: the base class -======================== \ No newline at end of file +Entities and Attributes +======================= + +.. automodule:: philo.models.base + +One of the core concepts in Philo is the relationship between the :class:`Entity` and :class:`Attribute` classes. :class:`Attribute`\ s represent an arbitrary key/value pair by having one :class:`GenericForeignKey` to an :class:`Entity` and another to an :class:`AttributeValue`. + + +Attributes +---------- + +.. autoclass:: Attribute + :members: + +.. autoclass:: AttributeValue + :members: + +.. automodule:: philo.models.base + :members: attribute_value_limiter + +.. autoclass:: JSONValue + :show-inheritance: + +.. autoclass:: ForeignKeyValue + :show-inheritance: + +.. autoclass:: ManyToManyValue + :show-inheritance: + +.. automodule:: philo.models.base + :noindex: + :members: value_content_type_limiter + +.. autofunction:: register_value_model(model) +.. autofunction:: unregister_value_model(model) + +Entities +-------- + +.. autoclass:: Entity + :members: + :exclude-members: attribute_set + +.. autoclass:: TreeManager + :members: + +.. autoclass:: TreeEntity + :show-inheritance: + :members: + :exclude-members: attribute_set + + .. attribute:: objects + + An instance of :class:`TreeManager`. + + .. automethod:: get_path \ No newline at end of file