1 |
# |
# |
|
# Copyright 2001 Free Software Foundation |
|
|
# |
|
2 |
# This file is part of GNU Enterprise. |
# This file is part of GNU Enterprise. |
3 |
# |
# |
4 |
# GNU Enterprise is free software; you can redistribute it |
# GNU Enterprise is free software; you can redistribute it |
16 |
# write to the Free Software Foundation, Inc., 59 Temple Place |
# write to the Free Software Foundation, Inc., 59 Temple Place |
17 |
# - Suite 330, Boston, MA 02111-1307, USA. |
# - Suite 330, Boston, MA 02111-1307, USA. |
18 |
# |
# |
19 |
|
# Copyright 2001-2002 Free Software Foundation |
20 |
|
# |
21 |
# FILE: |
# FILE: |
22 |
# GFConfig.py |
# GFConfig.py |
23 |
# |
# |
24 |
# DESCRIPTION: |
# DESCRIPTION: |
25 |
|
# Valid configuration options for forms |
26 |
|
# (appears under [forms] section in gnue.conf) |
27 |
# |
# |
28 |
# NOTES: |
|
|
# |
|
29 |
from gnue.common import GTypecast |
from gnue.common import GTypecast |
30 |
|
|
31 |
ConfigOptions = ( |
ConfigOptions = ( |
60 |
+ 'doing an Enter-Query twice)', |
+ 'doing an Enter-Query twice)', |
61 |
'Typecast' : GTypecast.boolean, |
'Typecast' : GTypecast.boolean, |
62 |
'Default' : 1 }, |
'Default' : 1 }, |
63 |
|
|
64 |
{ 'Name' : 'EnterIsNewLine', |
{ 'Name' : 'EnterIsNewLine', |
65 |
'Type' : 'Setting', |
'Type' : 'Setting', |
66 |
'Comment' : 'Treat enter as shift-enter in multi-line text boxes.', |
'Comment' : 'Treat enter as shift-enter in multi-line text boxes.', |
87 |
'Typecast' : GTypecast.boolean, |
'Typecast' : GTypecast.boolean, |
88 |
'Default' : 1 }, |
'Default' : 1 }, |
89 |
|
|
90 |
|
{ 'Name' : 'DateEditMask', |
91 |
|
'Type' : 'Setting', |
92 |
|
'Comment' : 'Mask for editing date/time fields (without qoutes).', |
93 |
|
'Description': 'Mask for editing date/time fields (without quotes).', |
94 |
|
'Typecast' : GTypecast.text, |
95 |
|
'Default' : '%m/%d/%Y' }, |
96 |
|
|
97 |
|
{ 'Name' : 'DateMask', |
98 |
|
'Type' : 'Setting', |
99 |
|
'Comment' : 'Mask for viewing date/time fields (without quotes).', |
100 |
|
'Description': 'Mask for viewing date/time fields (without quotes).', |
101 |
|
'Typecast' : GTypecast.text, |
102 |
|
'Default' : '%m/%d/%y' }, |
103 |
|
|
104 |
|
{ 'Name' : 'DateEditMask_Time', |
105 |
|
'Type' : 'Setting', |
106 |
|
'Comment' : 'Mask for editing date/time fields (without qoutes).', |
107 |
|
'Description': 'Mask for editing date/time fields (without quotes).', |
108 |
|
'Typecast' : GTypecast.text, |
109 |
|
'Default' : '%h:%i:%s' }, |
110 |
|
|
111 |
|
{ 'Name' : 'DateMask_Time', |
112 |
|
'Type' : 'Setting', |
113 |
|
'Comment' : 'Mask for viewing date/time fields (without quotes).', |
114 |
|
'Description': 'Mask for viewing date/time fields (without quotes).', |
115 |
|
'Typecast' : GTypecast.text, |
116 |
|
'Default' : '%h:%i:%s' }, |
117 |
|
|
118 |
|
{ 'Name' : 'DateEditMask_Timestamp', |
119 |
|
'Type' : 'Setting', |
120 |
|
'Comment' : 'Mask for editing date/time fields (without qoutes).', |
121 |
|
'Description': 'Mask for editing date/time fields (without quotes).', |
122 |
|
'Typecast' : GTypecast.text, |
123 |
|
'Default' : '%m/%d/%Y %h:%i:%s' }, |
124 |
|
|
125 |
|
{ 'Name' : 'DateMask_Timestamp', |
126 |
|
'Type' : 'Setting', |
127 |
|
'Comment' : 'Mask for viewing date/time fields (without quotes).', |
128 |
|
'Description': 'Mask for viewing date/time fields (without quotes).', |
129 |
|
'Typecast' : GTypecast.text, |
130 |
|
'Default' : '%m/%d/%Y %h:%i:%s' }, |
131 |
|
|
132 |
|
{ 'Name' : 'TextEditMask', |
133 |
|
'Type' : 'Setting', |
134 |
|
'Comment' : 'Mask for editing date/time fields (without qoutes).', |
135 |
|
'Description': 'Mask for editing date/time fields (without quotes).', |
136 |
|
'Typecast' : GTypecast.text, |
137 |
|
'Default' : '' }, |
138 |
|
|
139 |
|
{ 'Name' : 'TextMask', |
140 |
|
'Type' : 'Setting', |
141 |
|
'Comment' : 'Mask for viewing date/time fields (without quotes).', |
142 |
|
'Description': 'Mask for viewing date/time fields (without quotes).', |
143 |
|
'Typecast' : GTypecast.text, |
144 |
|
'Default' : '' }, |
145 |
|
|
146 |
|
{ 'Name' : 'NumberEditMask', |
147 |
|
'Type' : 'Setting', |
148 |
|
'Comment' : 'Mask for editing number fields (without qoutes).', |
149 |
|
'Description': 'Mask for editing number fields (without quotes).', |
150 |
|
'Typecast' : GTypecast.text, |
151 |
|
'Default' : '#0.#' }, |
152 |
|
|
153 |
|
{ 'Name' : 'NumberMask', |
154 |
|
'Type' : 'Setting', |
155 |
|
'Comment' : 'Mask for viewing number fields (without quotes).', |
156 |
|
'Description': 'Mask for viewing number fields (without quotes).', |
157 |
|
'Typecast' : GTypecast.text, |
158 |
|
'Default' : '#,##0.#' }, |
159 |
|
|
160 |
|
{ 'Name' : 'NumberEditMask_Money', |
161 |
|
'Type' : 'Setting', |
162 |
|
'Comment' : 'Mask for editing number fields (without qoutes).', |
163 |
|
'Description': 'Mask for editing number fields (without quotes).', |
164 |
|
'Typecast' : GTypecast.text, |
165 |
|
'Default' : '#0.00' }, |
166 |
|
|
167 |
|
{ 'Name' : 'NumberMask_Money', |
168 |
|
'Type' : 'Setting', |
169 |
|
'Comment' : 'Mask for viewing number fields (without quotes).', |
170 |
|
'Description': 'Mask for viewing number fields (without quotes).', |
171 |
|
'Typecast' : GTypecast.text, |
172 |
|
'Default' : '\\$#,##0.00' }, |
173 |
|
|
174 |
|
{ 'Name' : 'NumberEditMask_Integer', |
175 |
|
'Type' : 'Setting', |
176 |
|
'Comment' : 'Mask for editing number fields (without qoutes).', |
177 |
|
'Description': 'Mask for editing number fields (without quotes).', |
178 |
|
'Typecast' : GTypecast.text, |
179 |
|
'Default' : '#0' }, |
180 |
|
|
181 |
|
{ 'Name' : 'NumberMask_Integer', |
182 |
|
'Type' : 'Setting', |
183 |
|
'Comment' : 'Mask for viewing number fields (without quotes).', |
184 |
|
'Description': 'Mask for viewing number fields (without quotes).', |
185 |
|
'Typecast' : GTypecast.text, |
186 |
|
'Default' : '#,##0' }, |
187 |
|
|
188 |
{ 'Name' : 'Encoding', |
{ 'Name' : 'Encoding', |
189 |
'Type' : 'Setting', |
'Type' : 'Setting', |
190 |
'Comment' : 'Hack for db encoding', |
'Comment' : 'Hack for db encoding', |
192 |
'Typecast' : GTypecast.text, |
'Typecast' : GTypecast.text, |
193 |
'Default' : 'DEFAULT' }, |
'Default' : 'DEFAULT' }, |
194 |
|
|
195 |
|
{ 'Name' : 'formFontEncoding', |
196 |
|
'Type' : 'Setting', |
197 |
|
'Comment' : 'Font in forms encoding. Like iso8859-1, iso8859-13.', |
198 |
|
'Description': 'Font in forms encoding. Like iso8859-1, iso8859-13.', |
199 |
|
'Typecast' : GTypecast.text, |
200 |
|
'Default' : 'iso8859-1' }, |
201 |
|
|
202 |
|
|
203 |
{ 'Name' : 'SplashScreenPNG', |
{ 'Name' : 'SplashScreenPNG', |
204 |
'Type' : 'Setting', |
'Type' : 'Setting', |
205 |
'Comment' : 'Location of startup graphic (PNG format)', |
'Comment' : 'Location of startup graphic (PNG format)', |
346 |
'Typecast' : GTypecast.text, |
'Typecast' : GTypecast.text, |
347 |
'Default' : 'N' }, |
'Default' : 'N' }, |
348 |
|
|
349 |
|
{ 'Name' : 'DropdownSeparator', |
350 |
|
'Type' : 'Setting', |
351 |
|
'Comment' : 'Text used to concatenation dropdown descriptions', |
352 |
|
'Description': 'Text used to concatenation dropdown descriptions (when multiple description fields are used)', |
353 |
|
'Typecast' : GTypecast.text, |
354 |
|
'Default' : ', ' }, |
355 |
|
|
356 |
# |
# |
357 |
# Do not alter below here unless you really, really want to (and you know what you are doing) |
# Do not alter below here unless you really, really want to (and you know what you are doing) |
358 |
# |
# |