/[papo]/gnue/forms/src/GFParser.py
ViewVC logotype

Diff of /gnue/forms/src/GFParser.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.8.2.1 by styxman, Tue Jan 28 18:06:20 2003 UTC revision 1.8.2.2 by styxman, Tue May 6 19:38:07 2003 UTC
# Line 180  def getXMLelements(): Line 180  def getXMLelements():
180           'BaseClass': GFObjects.GFLabel,           'BaseClass': GFObjects.GFLabel,
181           'Attributes': {           'Attributes': {
182              'name': {              'name': {
183                 'Unique': 1,                 'Unique': 1,
184                 'Typecast': GTypecast.name },                 'Typecast': GTypecast.name },
185              'text': {              'text': {
186                 'Required': 1,                 'Required': 1,
187                 'Typecast': GTypecast.text },                 'Typecast': GTypecast.text },
188              'alignment': {              'alignment': {
189                 'Typecast': GTypecast.name,                 'Typecast': GTypecast.name,
190                 'ValueSet': {                 'ValueSet': {
191                    'left': {},                    'left': {},
192                    'right': {},                    'right': {},
193                    'center': {} },                    'center': {} },
194                 'Default': "left"},                 'Default': "left"},
195              'width': {              'width': {
196                 'Typecast': GTypecast.whole },                 'Typecast': GTypecast.whole },
197              'rows': {              'rows': {
# Line 199  def getXMLelements(): Line 199  def getXMLelements():
199              'rowSpacer': {              'rowSpacer': {
200                 'Typecast': GTypecast.whole },                 'Typecast': GTypecast.whole },
201              'x': {              'x': {
202                 'Required': 1,                 'Required': 1,
203                 'Typecast': GTypecast.whole },                 'Typecast': GTypecast.whole },
204              'y': {              'y': {
205                 'Required': 1,                 'Required': 1,
206                 'Typecast': GTypecast.whole } },                 'Typecast': GTypecast.whole } },
207           'ParentTags': ('page','block',) },           'ParentTags': ('page','block',) },
208    
209        # If you implement a new entry "style", add to the entryStyles        # If you implement a new entry "style", add to the entryStyles
210        # structure after this list        # structure after this list
211        'entry': {        'entry': {
212           'BaseClass': GFObjects.GFEntry,           'BaseClass': GFObjects.GFEntry,
213           'Attributes': {           'Attributes': {
214              'name': {              'name': {
215                 'Required': 1,                 'Required': 1,
216                 'Unique': 1,                 'Unique': 1,
217                 'Typecast': GTypecast.name },                 'Typecast': GTypecast.name },
218                'trigger': {
219                   'Typecast': GTypecast.name },
220              'field': {              'field': {
221                 'Typecast': GTypecast.name },                 'Typecast': GTypecast.name },
222              'height': {              'height': {
223                 'Typecast': GTypecast.whole,                 'Typecast': GTypecast.whole,
224                 'Default': 1 },                 'Default': 1 },
225              'width': {              'width': {
226                 'Typecast': GTypecast.whole },                 'Typecast': GTypecast.whole },
227              'max_length': {              'max_length': {
228                 'Typecast': GTypecast.whole },                 'Typecast': GTypecast.whole },
229              'visibleCount':{              'visibleCount':{
230                 'Typecast': GTypecast.whole,                 'Typecast': GTypecast.whole,
231                 'Deprecated': 'Use the block "rows" attribute instead.' },                 'Deprecated': 'Use the block "rows" attribute instead.' },
232              'rows': {              'rows': {
233                 'Typecast': GTypecast.whole},                 'Typecast': GTypecast.whole},
234              'rowSpacer': {              'rowSpacer': {
235                 'Typecast': GTypecast.whole },                 'Typecast': GTypecast.whole },
236              'readonly': {              'readonly': {
237                 'Typecast': GTypecast.boolean,                 'Typecast': GTypecast.boolean,
238                 'Default': 0   },                 'Default': 0   },
239              'required': {              'required': {
240                 'Description': 'This object cannot have an empty value prior '                 'Description': 'This object cannot have an empty value prior '
241                                'to a commit.',                                'to a commit.',
242                 'Typecast': GTypecast.boolean,                 'Typecast': GTypecast.boolean,
243                 'Default': 0   },                 'Default': 0   },
244              'uppercase': {              'uppercase': {
245                 'Deprecated': 'Use case="upper" instead.',                 'Deprecated': 'Use case="upper" instead.',
246                 'Typecast': GTypecast.boolean,                 'Typecast': GTypecast.boolean,
# Line 253  def getXMLelements(): Line 255  def getXMLelements():
255                 'Default': 0   },                 'Default': 0   },
256              'hidden': {              'hidden': {
257                 'Typecast': GTypecast.boolean,                 'Typecast': GTypecast.boolean,
258                 'Default': 0   },                 'Default': 0   },
259              'style': {              'style': {
260                 'Typecast': GTypecast.name,                 'Typecast': GTypecast.name,
261                 'ValueSet': {                 'ValueSet': {
262                    'default': {},                    'default': {},
263                    'dropdown': {},                    'dropdown': {},
264                    'checkbox': {},                    'checkbox': {},
265                    'textlookup': {} },                    'textlookup': {} },
266                 'Default': 'default'},                 'Default': 'default'},
267              'case': {              'case': {
268                 'Typecast': GTypecast.name,                 'Typecast': GTypecast.name,
269                 'ValueSet': {                 'ValueSet': {
270                    'mixed': {},                    'mixed': {},
271                    'upper': {},                    'upper': {},
272                    'lower': {} },                    'lower': {} },
273                 'Default': 'mixed'},                 'Default': 'mixed'},
274              'typecast': {              'typecast': {
275                 'Typecast': GTypecast.name,                 'Typecast': GTypecast.name,
276                 'ValueSet': {                 'ValueSet': {
277                    'text': {},                    'text': {},
278                    'number': {},                    'number': {},
279                    'date': {} },                    'date': {} },
280                 'Default': 'text'},                 'Default': 'text'},
281              'formatmask': {              'formatmask': {
282                 'Typecast': GTypecast.text },                 'Typecast': GTypecast.text },
283              'inputmask': {              'inputmask': {
284                 'Typecast': GTypecast.text },                 'Typecast': GTypecast.text },
285              'displaymask': {              'displaymask': {
286                 'Typecast': GTypecast.text },                 'Typecast': GTypecast.text },
287              'value': {              'value': {
288                 'Typecast': GTypecast.text },                 'Typecast': GTypecast.text },
289              'foreign_key': {              'foreign_key': {
290                 'Typecast': GTypecast.name },                 'Typecast': GTypecast.name },
291              'default': {              'default': {
292                 'Typecast': GTypecast.text },                 'Typecast': GTypecast.text },
293              'queryDefault':{              'queryDefault':{
294                 'Typecast': GTypecast.text },                 'Typecast': GTypecast.text },
295              'foreign_key_description': {              'foreign_key_description': {
296                 'Typecast': GTypecast.text },                 'Typecast': GTypecast.text },
297              'sloppyQuery': {              'sloppyQuery': {
298                 'Typecast': GTypecast.text },                 'Typecast': GTypecast.text },
299              'ignoreCaseOnQuery': {              'ignoreCaseOnQuery': {
300                 'Typecast': GTypecast.boolean,                 'Typecast': GTypecast.boolean,
301                 'Default': 0 },                 'Default': 0 },
302              'editOnNull': {              'editOnNull': {
303                 'Description': 'Only allow this object to be edited if it '                 'Description': 'Only allow this object to be edited if it '
304                                'is currently empty.',                                'is currently empty.',
# Line 346  def getXMLelements(): Line 348  def getXMLelements():
348           'BaseClass': GFObjects.GFBox,           'BaseClass': GFObjects.GFBox,
349           'Attributes': {           'Attributes': {
350              'name': {              'name': {
351                 'Unique': 1,                 'Unique': 1,
352                 'Typecast': GTypecast.name },                 'Typecast': GTypecast.name },
353              'label': {              'label': {
354                 'Typecast': GTypecast.text },                 'Typecast': GTypecast.text },
355              'width': {              'width': {
356                 'Required': 1,                 'Required': 1,
357                 'Typecast': GTypecast.whole },                 'Typecast': GTypecast.whole },
358              'height': {              'height': {
359                 'Required': 1,                 'Required': 1,
360                 'Typecast': GTypecast.whole },                 'Typecast': GTypecast.whole },
361              'x': {              'x': {
362                 'Required': 1,                 'Required': 1,
363                 'Typecast': GTypecast.whole },                 'Typecast': GTypecast.whole },
364              'y': {              'y': {
365                 'Required': 1,                 'Required': 1,
366                 'Typecast': GTypecast.whole } },                 'Typecast': GTypecast.whole } },
367           'ParentTags': ('page','block',) },           'ParentTags': ('page','block',) },
368    
369        'button': {        'button': {
# Line 375  def getXMLelements(): Line 377  def getXMLelements():
377              'label': {              'label': {
378                 'Typecast': GTypecast.name },                 'Typecast': GTypecast.name },
379              'width': {              'width': {
380                 'Required': 1,                 'Required': 1,
381                 'Typecast': GTypecast.whole },                 'Typecast': GTypecast.whole },
382              'height': {              'height': {
383                 'Required': 1,                 'Required': 1,
384                 'Typecast': GTypecast.whole },                 'Typecast': GTypecast.whole },
385              'x': {              'x': {
386                 'Required': 1,                 'Required': 1,
387                 'Typecast': GTypecast.whole },                 'Typecast': GTypecast.whole },
388              'y': {              'y': {
389                 'Required': 1,                 'Required': 1,
390                 'Typecast': GTypecast.whole } },                   'Typecast': GTypecast.whole } },
391           'ParentTags': ('page','block',) },           'ParentTags': ('page','block',) },
392    
393        'trigger': {        'trigger': {
# Line 444  def getXMLelements(): Line 446  def getXMLelements():
446           'Deprecated': 'Use the <form> attribute "title" instead.',           'Deprecated': 'Use the <form> attribute "title" instead.',
447           'ParentTags': ('options',) },           'ParentTags': ('options',) },
448    
449        'name': {        'name': {
450           'BaseClass': GFObjects.GFOption,           'BaseClass': GFObjects.GFOption,
451           'Attributes': {           'Attributes': {
452              'name': {              'name': {
453                 'Typecast': GTypecast.name,                 'Typecast': GTypecast.name,
454                 'ValueSet': {                 'ValueSet': {
455                     'name': {} },                     'name': {} },
456                 'Default': 'name' },                 'Default': 'name' },
457              'value': {              'value': {
458                 'Typecast': GTypecast.text } },                 'Typecast': GTypecast.text } },
459           'MixedContent': 1,           'MixedContent': 1,
460           'SingleInstance': 1,           'SingleInstance': 1,
461           'ParentTags': ('options',) },           'ParentTags': ('options',) },
462    
463        'height': {        'height': {
464           'BaseClass': GFObjects.GFOption,           'BaseClass': GFObjects.GFOption,
465           'Attributes': {           'Attributes': {
466              'name': {              'name': {
467                 'Typecast': GTypecast.name,                 'Typecast': GTypecast.name,
468                 'ValueSet': {                 'ValueSet': {
469                     'height': {} },                     'height': {} },
470                 'Default': 'height' },                 'Default': 'height' },
471              'value': {              'value': {
472                 'Typecast': GTypecast.text } },                 'Typecast': GTypecast.text } },
473           'MixedContent': 1,           'MixedContent': 1,
474           'SingleInstance': 1,           'SingleInstance': 1,
475           'Deprecated': 'Use the <form> attribute "height" instead.',           'Deprecated': 'Use the <form> attribute "height" instead.',
476           'ParentTags': None },           'ParentTags': None },
477    
478        'width': {        'width': {
# Line 502  def getXMLelements(): Line 504  def getXMLelements():
504           'SingleInstance': 1,           'SingleInstance': 1,
505           'ParentTags': ('options',) },           'ParentTags': ('options',) },
506    
507        'description':{        'description':{
508           'BaseClass': GFObjects.GFOption,           'BaseClass': GFObjects.GFOption,
509           'Attributes': {           'Attributes': {
510              'name': {              'name': {
511                 'Typecast': GTypecast.name,                 'Typecast': GTypecast.name,
512                 'ValueSet': {                 'ValueSet': {
513                     'description': {} },                     'description': {} },
514                 'Default': 'description' },                 'Default': 'description' },
515              'value': {              'value': {
516                 'Typecast': GTypecast.text } },                 'Typecast': GTypecast.text } },
517           'MixedContent': 1,           'MixedContent': 1,
518           'SingleInstance': 1,           'SingleInstance': 1,
519           'ParentTags': ('options',) },           'ParentTags': ('options',) },
520    
# Line 527  def getXMLelements(): Line 529  def getXMLelements():
529              'value': {              'value': {
530                 'Typecast': GTypecast.text } },                 'Typecast': GTypecast.text } },
531           'MixedContent': 1,           'MixedContent': 1,
532           'SingleInstance': 1,           'SingleInstance': 1,
533           'ParentTags': ('options',) },           'ParentTags': ('options',) },
534    
535        'tip': {        'tip': {
536           'BaseClass': GFObjects.GFOption,           'BaseClass': GFObjects.GFOption,
537           'Attributes': {           'Attributes': {
538              'name': {              'name': {
539                 'Typecast': GTypecast.name,                 'Typecast': GTypecast.name,
540                 'ValueSet': {                 'ValueSet': {

Legend:
Removed from v.1.8.2.1  
changed lines
  Added in v.1.8.2.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26