liquid_feedback_frontend

diff config/init.lua @ 734:9d104952554a

Completed cleanup of config
author bsw
date Thu Jun 28 17:32:48 2012 +0200 (2012-06-28)
parents 3a61d21618f6
children e642bf111347
line diff
     1.1 --- a/config/init.lua	Thu Jun 28 17:24:18 2012 +0200
     1.2 +++ b/config/init.lua	Thu Jun 28 17:32:48 2012 +0200
     1.3 @@ -1,3 +1,9 @@
     1.4 +-- ========================================================================
     1.5 +-- DO NOT CHANGE ANYTHING IN THIS FILE
     1.6 +-- (except when you really know what you are doing!)
     1.7 +-- ========================================================================
     1.8 +
     1.9 +
    1.10  config.app_version = "2.beta12"
    1.11  
    1.12  if not config.instance_name then
    1.13 @@ -39,6 +45,10 @@
    1.14    }
    1.15  end
    1.16  
    1.17 +if config.public_access == nil then
    1.18 +  config.public_access = "full"
    1.19 +end
    1.20 +
    1.21  if not config.database then
    1.22    config.database = { engine='postgresql', dbname='liquid_feedback' }
    1.23  end
    1.24 @@ -46,7 +56,7 @@
    1.25  request.set_404_route{ module = 'index', view = '404' }
    1.26  
    1.27  -- open and set default database handle
    1.28 -db = assert(mondelefant.connect(config.database)
    1.29 +db = assert(mondelefant.connect(config.database))
    1.30  at_exit(function() 
    1.31    db:close()
    1.32  end)
    1.33 @@ -63,7 +73,6 @@
    1.34  request.set_absolute_baseurl(config.absolute_base_url)
    1.35  
    1.36  
    1.37 -
    1.38  -- TODO abstraction
    1.39  -- get record by id
    1.40  function mondelefant.class_prototype:by_id(id)

Impressum / About Us