Contact: fumanchu@aminus.org

Log in as guest/dejavu to create tickets

I think I've seen this ORM somewhere before...

Changeset 599

Show
Ignore:
Timestamp:
02/02/09 23:12:22
Author:
fumanchu
Message:

Fix for #108 (UnitProperty? type details missing).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/dejavu/doc/modeling.html

    r597 r599  
    6060<pre>>>> p.ColorCopies is None 
    6161True</pre></p> 
     62 
     63<a name='unitproperty_types'><h5>UnitProperty types</h5></a> 
     64<p>Dejavu is extensible, and in official specification/API terms, any Python 
     65type is allowed as a <tt>UnitProperty.type</tt>. The standard distribution 
     66tends to provide full support for: 
     67 
     68<ul> 
     69    <li><tt>bool</tt></li> 
     70    <li><tt>int</tt></li> 
     71    <li><tt>long</tt></li> 
     72    <li><tt>float</tt></li> 
     73    <li><tt>decimal.Decimal</tt></li> 
     74    <li><tt>fixedpoint.FixedPoint</tt></li> 
     75    <li><tt>str</tt></li> 
     76    <li><tt>unicode</tt></li> 
     77    <li><tt>datetime.date</tt></li> 
     78    <li><tt>datetime.time</tt></li> 
     79    <li><tt>datetime.datetime</tt></li> 
     80    <li><tt>datetime.timedelta</tt></li> 
     81    <li><tt>tuple</tt></li> 
     82    <li><tt>list</tt></li> 
     83    <li><tt>dict</tt></li> 
     84</ul> 
     85 
     86...where "full support" means that all StorageManagers distributed with 
     87Dejavu MUST correctly store these types and SHOULD optimize their storage 
     88as well as they can. In many cases, the complex types (tuple, list, dict) 
     89are pickled, and indeed any other type that is not represented here tends 
     90to be pickled. It's important to realize, however, that different storage 
     91managers have complete latitude to optimize as they see fit; for example, 
     92the RamStorage class stores values whole, doesn't need to serialize, and 
     93therefore does no pickling at all.</p> 
    6294 
    6395<h5>datetime.datetime</h5>