Show
Ignore:
Timestamp:
02/01/07 23:30:27 (6 years ago)
Author:
cleverdevil
Message:

A bunch of docstring updates, representing a good chunk of documentation.
The docstring on relationships is only partially done, as I ran out of
gas after describing the 'belongs_to' relationship type.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • elixir/trunk/elixir/entity.py

    r17 r18  
    1919class Entity(object): 
    2020    ''' 
    21     The base class for all entities 
     21    The base class for all entities.  All Elixir model objects should inherit 
     22    from this class.  Statements can appear within the body of the definition  
     23    of an entity to define its fields, relationships, and other options.  Here 
     24    is an example: 
     25     
     26        class Person(Entity): 
     27            has_field('name', Unicode(128)) 
     28            has_field('birthdate', DateTime, default=datetime.now) 
     29     
     30    For further information, please refer to the provided examples or tutorial. 
    2231    ''' 
    2332