liquid_feedback_frontend

diff model/supporter.lua @ 5:afd9f769c7ae

Version beta1

Final voting with Schulze-Method is now possible

Many bug fixes and code cleanup

Registration with invite codes

More sort and filter options

Seperated display of "supporters" and "potential supporters"

Optical changes

Flood limit / initiative contigent is now checked by frontend

Neccessary changes to access core beta11
author bsw/jbe
date Fri Dec 25 12:00:00 2009 +0100 (2009-12-25)
parents 3bfb2fcf7ab9
children
line diff
     1.1 --- a/model/supporter.lua	Thu Dec 10 12:00:00 2009 +0100
     1.2 +++ b/model/supporter.lua	Fri Dec 25 12:00:00 2009 +0100
     1.3 @@ -25,3 +25,12 @@
     1.4      :optional_object_mode()
     1.5      :exec()
     1.6  end
     1.7 +
     1.8 +function Supporter.object:has_critical_opinion()
     1.9 +  return Opinion:new_selector()
    1.10 +    :add_where{ "initiative_id = ?", self.initiative_id }
    1.11 +    :add_where{ "member_id = ?", self.member_id }
    1.12 +    :add_where("(degree = -2 AND fulfilled) OR (degree = 2 AND NOT fulfilled)")
    1.13 +    :limit(1)
    1.14 +    :exec()[1] and true or false
    1.15 +end
    1.16 \ No newline at end of file

Impressum / About Us