liquid_feedback_frontend

view config/default.lua @ 6:8d91bccab0bf

Version beta2

Possibility to browse voters of a closed issue

Registration with invite code

Email confirmation and password recovery

Download function (for database dumps) added

Critical bug solved, which made it impossible to select your opinion on other peoples suggestions

Catching error, when trying to set an opinion on a suggestion which has been meanwhile deleted

Fixed wrong sorting order for "supporters" or "potential supporters"

Added format info for birthday (Error when entering dates in wrong format is NOT fixed in this release)

Strip space characters from certain fields and ensure they contain at least 3 characters

Showing grade in opinion/list as clear text instead of integer value

More information on initiative is displayed while voting

Colored notification box shown on pages of issues or initiatives which are currently in voting state

Changed default filter for issues to "Open"

Back link on suggestion page

Some optical changes

Removed wrong space character in LICENSE file
author bsw/jbe
date Sat Jan 02 12:00:00 2010 +0100 (2010-01-02)
parents afd9f769c7ae
children 3941792e8be6
line source
1 config.app_name = "LiquidFeedback"
2 config.app_version = "beta2"
4 config.app_title = config.app_name .. " (" .. request.get_config_name() .. " environment)"
6 config.app_logo = nil
8 config.app_service_provider = "Snake Oil<br/>10000 Berlin<br/>Germany"
10 config.use_terms = "=== Nutzungsbedingungen ===\nAlles ist verboten"
12 config.member_image_convert_func = {
13 avatar = function(data) return os.pfilter(data, "convert", "jpeg:-", "-thumbnail", "48x48", "jpeg:-") end,
14 photo = function(data) return os.pfilter(data, "convert", "jpeg:-", "-thumbnail", "240x240", "jpeg:-") end
15 }
17 config.member_image_default_file = {
18 avatar = "avatar.jpg",
19 photo = nil
20 }
22 config.mail_subject_prefix = "[LiquidFeedback] "
24 config.fastpath_url_func = nil
26 config.download_dir = nil
28 config.download_use_terms = "=== Nutzungsbedingungen ===\nAlles ist verboten"
30 -- uncomment the following two lines to use C implementations of chosen
31 -- functions and to disable garbage collection during the request, to
32 -- increase speed:
33 --
34 -- require 'webmcp_accelerator'
35 -- collectgarbage("stop")
37 -- open and set default database handle
38 db = assert(mondelefant.connect{
39 engine='postgresql',
40 dbname='liquid_feedback'
41 })
42 at_exit(function()
43 db:close()
44 end)
45 function mondelefant.class_prototype:get_db_conn() return db end
47 -- enable output of SQL commands in trace system
48 function db:sql_tracer(command)
49 return function(error_info)
50 local error_info = error_info or {}
51 trace.sql{ command = command, error_position = error_info.position }
52 end
53 end
55 request.set_absolute_baseurl(config.absolute_base_url)
59 -- TODO abstraction
60 -- get record by id
61 function mondelefant.class_prototype:by_id(id)
62 local selector = self:new_selector()
63 selector:add_where{ 'id = ?', id }
64 selector:optional_object_mode()
65 return selector:exec()
66 end

Impressum / About Us