Show
Ignore:
Timestamp:
02/03/07 15:35:39 (6 years ago)
Author:
joshua
Message:

* created and added a pudge template (including css and two images)
* added a couple of (mostly empty) rst-files under /doc
* updated some docstrings, so that the generated html-files look prettier
* added setup.cfg and updated setup.py for pudge-integration
* copied docstring from init.py as long_description to setup.py

Files:
1 modified

Legend:

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

    r18 r24  
    1111class Field(object): 
    1212    ''' 
    13     Represents the definition of a 'field' on an entity.  In other words, this 
    14     class represents a column on the table where the entity is stored.  This  
    15     object is only used with the 'with_fields' syntax for defining all fields 
    16     for an entity at the same time.  The 'has_field' syntax does not require  
    17     the manual creation of this object. 
     13    Represents the definition of a 'field' on an entity. 
     14     
     15    This class represents a column on the table where the entity is stored. 
     16    This object is only used with the ``with_fields`` syntax for defining all 
     17    fields for an entity at the same time. The ``has_field`` syntax does not 
     18    require the manual creation of this object. 
    1819    ''' 
    1920     
     
    4243class HasField(object): 
    4344    ''' 
    44     Statement object for specifying a single field on an entity.  The first 
    45     argument is the name of the field, the second is its type, and following 
    46     this any number of keyword arguments can be specified for additional  
    47     behavior.  The keyword arguments are passed on to the SQLAlchemy 'Column' 
    48     object.  Please refer to the SQLAlchemy 'Column' object's documentation for 
    49     further detail about which keyword arguments are supported. 
     45    Statement object for specifying a single field on an entity. 
    5046     
    51     Here is a quick example of how to use 'has_field'. 
     47    The first argument is the name of the field, the second is its type, and 
     48    following this any number of keyword arguments can be specified for 
     49    additional behavior. The keyword arguments are passed on to the SQLAlchemy 
     50    ``Column`` object. Please refer to the SQLAlchemy ``Column`` object's 
     51    documentation for further detail about which keyword arguments are 
     52    supported. 
     53     
     54    Here is a quick example of how to use ``has_field``. 
     55     
     56    :: 
    5257     
    5358        class Person(Entity): 
     
    6469class WithFields(object): 
    6570    ''' 
    66     Statement object for specifying all fields on an entity at once.  Each  
    67     keyword argument to this statement represents one field, which should be 
    68     a Field object.  The first argument to a Field object is its type, and  
    69     following this any number of keyword arguments can be specified for  
    70     additional behavior.  The keyword arguments are passed on to the SQLAlchemy 
    71     'Column' object.  Please refer to the SQLAlchemy 'Column' object's  
    72     documentation for further detail about which keyword arguments are  
     71    Statement object for specifying all fields on an entity at once. 
     72     
     73    Each keyword argument to this statement represents one field, which should 
     74    be a Field object. The first argument to a Field object is its type, and 
     75    following this any number of keyword arguments can be specified for 
     76    additional behavior. The keyword arguments are passed on to the SQLAlchemy 
     77    ``Column`` object. Please refer to the SQLAlchemy ``Column`` object's 
     78    documentation for further detail about which keyword arguments are 
    7379    supported. 
    7480     
    75     Here is a quick example of how to use 'with_fields'. 
     81    Here is a quick example of how to use ``with_fields``. 
     82     
     83    :: 
    7684     
    7785        class Person(Entity):