~ubuntu-branches/ubuntu/hardy/gnue-common/hardy

« back to all changes in this revision

Viewing changes to src/GCConfig.py

  • Committer: Bazaar Package Importer
  • Author(s): Andrew Mitchell
  • Date: 2005-03-09 11:06:31 UTC
  • Revision ID: james.westby@ubuntu.com-20050309110631-8gvvn39q7tjz1kj6
Tags: upstream-0.5.14
ImportĀ upstreamĀ versionĀ 0.5.14

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# Copyright 2001-2005 Free Software Foundation
 
3
#
 
4
# This file is part of GNU Enterprise
 
5
#
 
6
# GNU Enterprise is free software; you can redistribute it
 
7
# and/or modify it under the terms of the GNU General Public
 
8
# License as published by the Free Software Foundation; either
 
9
# version 2, or (at your option) any later version.
 
10
#
 
11
# GNU Enterprise is distributed in the hope that it will be
 
12
# useful, but WITHOUT ANY WARRANTY; without even the implied
 
13
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
 
14
# PURPOSE. See the GNU General Public License for more details.
 
15
#
 
16
# You should have received a copy of the GNU General Public
 
17
# License along with program; see the file COPYING. If not,
 
18
# write to the Free Software Foundation, Inc., 59 Temple Place
 
19
# - Suite 330, Boston, MA 02111-1307, USA.
 
20
#
 
21
# $Id: GCConfig.py 7050 2005-02-21 14:13:54Z kilo $
 
22
 
 
23
"""
 
24
Valid configuration options that apply to all GNUe tools
 
25
(appears under [common] section in gnue.conf or
 
26
can appear in each individual tool section)
 
27
"""
 
28
 
 
29
from gnue.common.formatting import GTypecast
 
30
 
 
31
ConfigOptions = (
 
32
  { 'Name'       : 'textEncoding',
 
33
    'Type'       : 'Setting',
 
34
    'Comment'    : 'Encoding for XML headers and for fonts in forms. '
 
35
                 + 'Like iso8859-1, iso8859-13.',
 
36
    'Description': 'Encoding for XML headers and for fonts in forms. '
 
37
                 + 'Like iso8859-1, iso8859-13.',
 
38
    'Typecast'   : GTypecast.text,
 
39
    'Default'    : 'iso8859-1' },
 
40
        
 
41
  { 'Name'       : 'ImportPath',
 
42
    'Type'       : 'Setting',
 
43
    'Comment'    : 'Locations added to the python search path',
 
44
    'Description': 'A comma-separated list of directories to be added '
 
45
                 + 'to the python search path to add custom functionality.',
 
46
    'Typecast'   : GTypecast.text,
 
47
    'Default'    : "" },
 
48
  
 
49
  { 'Name'       : 'StoreTriggersAsCDATA',
 
50
    'Type'       : 'Setting',
 
51
    'Comment'    : 'If set to true, then store trigger definitions in '
 
52
                 + '<![CDATA[ .. ]]> blocks, instead of encoding with &lt; etc.',
 
53
    'Description': 'If set to true, then store trigger definitions in '
 
54
                 + '<![CDATA[ .. ]]> blocks, instead of encoding with &lt; etc.',
 
55
    'Typecast'   : GTypecast.boolean,
 
56
    'Default'    : True },
 
57
 
 
58
  { 'Name'       : 'useParameters',
 
59
    'Type'       : 'Setting',
 
60
    'Comment'    : 'Use parameters in DBSIG2 database drivers',
 
61
    'Description': 'Use parameters in DBSIG2 database drivers. '
 
62
                 + '1 = use parameters, 0 = do not use them (deprecated)',
 
63
    'Typecast'   : GTypecast.boolean,
 
64
    'Default'    : 1 },              # Default 0 is transformed to '0'
 
65
  )
 
66