Changeset 269 for elixir/trunk/elixir/properties.py
- Timestamp:
- 11/30/07 09:15:19 (4 years ago)
- Files:
-
- 1 modified
-
elixir/trunk/elixir/properties.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
elixir/trunk/elixir/properties.py
r267 r269 126 126 ''' 127 127 Generic catch-all class to wrap an SQLAlchemy property. 128 129 .. sourcecode:: python 130 131 class OrderLine(Entity): 132 quantity = Field(Float) 133 unit_price = Field(Numeric) 134 price = GenericProperty(lambda c: column_property( 135 (c.quantity * c.unit_price).label('price'))) 128 136 ''' 129 137
