Changes between Version 4 and Version 8 of Ticket #277


Ignore:
Timestamp:
09/30/11 18:04:59 (3 years ago)
Author:
rgrp
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #277

    • Property Status changed from new to assigned
    • Property Repository changed from to ckan
    • Property Summary changed from Settings in WUI (extension) to Set some config options / settings in WUI (extension)
    • Property Theme changed from to none
    • Property Milestone changed from to ckan-sprint-2011-10-10
    • Property Owner changed from rgrp to zephod
  • Ticket #277 – Description

    v4 v8  
    55== Implementation == 
    66 
    7   * Start storing majority of settings in db 
    8   * Have editor for settings as part of admin wui 
    9   * Settings are also loaded from pylons ini file on start up (or based on a specific command) 
     7=== Settings to be in DB === 
    108 
    11 Potential options to show in WUI: 
     9Suggested: 
    1210 
    13  * Default Schema (e.g. default, uk government, others) 
    14  * Search caching (on/off) 
    15  * License service URL 
     11{{{ 
     12## Title of site (using in several places including templates and <title> tag 
     13ckan.site_title = CKAN 
     14 
     15## Logo image to use (replaces site_title string on front page if defined) 
     16ckan.site_logo = http://assets.okfn.org/p/ckan/img/ckan_logo_box.png 
     17 
     18## Site tagline / description (used on front page) 
     19ckan.site_description =  
     20 
     21## Used in creating some absolute urls (such as rss feeds, css files) and  
     22## dump filenames 
     23ckan.site_url = 
     24 
     25## Favicon (default is the CKAN software favicon) 
     26ckan.favicon = http://assets.okfn.org/p/ckan/img/ckan.ico 
     27 
     28 
     29## An 'id' for the site (using, for example, when creating entries in a common search index)  
     30## If not specified derived from the site_url 
     31# ckan.site_id = ckan.net 
     32 
     33## API url to use (e.g. in AJAX callbacks) 
     34## Enable if the API is at a different domain 
     35# ckan.api_url = http://www.ckan.net 
     36 
     37## html content to be inserted just before </body> tag (e.g. google analytics code) 
     38## NB: can use html e.g. <strong>blah</strong> 
     39## NB: can have multiline strings just indent following lines 
     40# ckan.template_footer_end =  
     41}}} 
     42 
     43 
     44NB: these will still need to be stored somewhere for loading on initialization. do this in db init function ... 
     45 
     46=== Settings / Options / KeyValues Table === 
     47 
     48Columns: 
     49 
     50 * [namespace]: ? only if KeyValues (for settings this would then always be settings) 
     51 * key 
     52 * label 
     53 * value (json) 
     54 * type (e.g. date and to specify in advance what type should be) 
     55 * description 
     56 * tags: ?? (for grouping ...) 
     57 
     58=== Loading settings from DB === 
     59 
     60Do this in ckan/config/environment.py 
     61 
     62=== WUI === 
     63 
     64 * /ckan-admin/settings 
     65 * Show label, plus description plus text field 
    1666 
    1767== Depends ==