liquid_feedback_frontend
view model/unit.lua @ 252:eb6d04201f81
Show evil browser notice as inlined warning instead of opening an evil popup
| author | Ingo Bormuth <mail@ibormuth.de> | 
|---|---|
| date | Fri Dec 30 04:02:37 2011 +0100 (2011-12-30) | 
| 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
