liquid_feedback_frontend
view model/unit.lua @ 280:808269b7f41c
More repositioning and optical enhancements
author | bsw |
---|---|
date | Thu Feb 16 14:08:55 2012 +0100 (2012-02-16) |
parents | 6725c13b6ce0 |
children | b77e6a17ca77 |
line source
1 Unit = mondelefant.new_class()
2 Unit.table = 'unit'
4 Unit:add_reference{
5 mode = '1m',
6 to = "Area",
7 this_key = 'id',
8 that_key = 'unit_id',
9 ref = 'areas',
10 back_ref = 'unit'
11 }
13 function Unit:get_flattened_tree()
14 -- TODO implement
16 return Unit:new_selector():exec()
17 end