annotate model/timeline.lua @ 51:0849be391140
Public read access; Read-only API for initiatives; Prepared integration of OpenID
 | author | bsw | 
 | date | Sun Apr 04 22:05:11 2010 +0200 (2010-04-04) | 
 | parents | 77d58efe99fd | 
 | children |  | 
 
 | rev | line source | 
| bsw@11 | 1 Timeline = mondelefant.new_class() | 
| bsw@11 | 2 Timeline.table = 'timeline' | 
| bsw@11 | 3 | 
| bsw@11 | 4 Timeline:add_reference{ | 
| bsw@11 | 5   mode          = '11', | 
| bsw@11 | 6   to            = "Member", | 
| bsw@11 | 7   this_key      = 'member_id', | 
| bsw@11 | 8   that_key      = 'id', | 
| bsw@11 | 9   ref           = 'member' | 
| bsw@11 | 10 } | 
| bsw@11 | 11 | 
| bsw@11 | 12 Timeline:add_reference{ | 
| bsw@11 | 13   mode          = '11', | 
| bsw@11 | 14   to            = "Issue", | 
| bsw@11 | 15   this_key      = 'issue_id', | 
| bsw@11 | 16   that_key      = 'id', | 
| bsw@11 | 17   ref           = 'issue' | 
| bsw@11 | 18 } | 
| bsw@11 | 19 | 
| bsw@11 | 20 Timeline:add_reference{ | 
| bsw@11 | 21   mode          = '11', | 
| bsw@11 | 22   to            = "Initiative", | 
| bsw@11 | 23   this_key      = 'initiative_id', | 
| bsw@11 | 24   that_key      = 'id', | 
| bsw@11 | 25   ref           = 'initiative' | 
| bsw@11 | 26 } | 
| bsw@11 | 27 | 
| bsw@11 | 28 Timeline:add_reference{ | 
| bsw@11 | 29   mode          = '11', | 
| bsw@11 | 30   to            = "Draft", | 
| bsw@11 | 31   this_key      = 'draft_id', | 
| bsw@11 | 32   that_key      = 'id', | 
| bsw@11 | 33   ref           = 'draft' | 
| bsw@11 | 34 } | 
| bsw@11 | 35 | 
| bsw@11 | 36 Timeline:add_reference{ | 
| bsw@11 | 37   mode          = '11', | 
| bsw@11 | 38   to            = "Suggestion", | 
| bsw@11 | 39   this_key      = 'suggestion_id', | 
| bsw@11 | 40   that_key      = 'id', | 
| bsw@11 | 41   ref           = 'suggestion' | 
| bsw@11 | 42 } |