[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnue/forms/src GFParser.py
From: |
Jason Cater |
Subject: |
gnue/forms/src GFParser.py |
Date: |
Sun, 17 Nov 2002 14:43:01 -0500 |
CVSROOT: /home/cvs
Module name: gnue
Changes by: Jason Cater <address@hidden> 02/11/17 14:43:01
Modified files:
forms/src : GFParser.py
Log message:
added GFParser descriptions [patch by sklein]
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/forms/src/GFParser.py.diff?cvsroot=OldCVS&tr1=1.80&tr2=1.81&r1=text&r2=text
Patches:
Index: gnue/forms/src/GFParser.py
diff -c gnue/forms/src/GFParser.py:1.80 gnue/forms/src/GFParser.py:1.81
*** gnue/forms/src/GFParser.py:1.80 Sat Nov 16 00:14:43 2002
--- gnue/forms/src/GFParser.py Sun Nov 17 14:43:00 2002
***************
*** 32,38 ****
import copy, types
from gnue.common import GTypecast, GTrigger
!
--- 32,38 ----
import copy, types
from gnue.common import GTypecast, GTrigger
! #### THIS WAS AGAINST REVISION 1.80 ####
***************
*** 82,88 ****
'title': {
'Typecast': GTypecast.text,
'Default': 'Untitled Form',
! 'Description': 'TODO' },
'readonly': {
'Typecast': GTypecast.boolean,
'Default': 0,
--- 82,88 ----
'title': {
'Typecast': GTypecast.text,
'Default': 'Untitled Form',
! 'Description': 'The title of the form. Will be displayed on
About Screen.' },
'readonly': {
'Typecast': GTypecast.boolean,
'Default': 0,
***************
*** 95,109 ****
'bottom': {},
'top': {} },
'Default': "",
! 'Description': 'TODO' },
'width': {
'Typecast': GTypecast.whole,
'Default': 40,
! 'Description': 'TODO' },
'height': {
'Typecast': GTypecast.whole,
'Default': 12,
! 'Description': 'TODO' } },
'ParentTags': None,
'Description': 'TODO' },
--- 95,109 ----
'bottom': {},
'top': {} },
'Default': "",
! 'Description': 'Allows a form to convert it\'s pages as
notebook tabs. Allowed values are left, right, bottom, top.' },
'width': {
'Typecast': GTypecast.whole,
'Default': 40,
! 'Description': 'The width of the object in text columns.' },
'height': {
'Typecast': GTypecast.whole,
'Default': 12,
! 'Description': 'The height of the object in text rows.' } },
'ParentTags': None,
'Description': 'TODO' },
***************
*** 145,151 ****
'Attributes': {
'name': {
'Unique': 1,
! 'Typecast': GTypecast.name },
'caption': {
'Typecast': GTypecast.text,
'Description': 'TODO' } },
--- 145,152 ----
'Attributes': {
'name': {
'Unique': 1,
! 'Typecast': GTypecast.name,
! 'Description': 'A unique ID for the widget. This is only
useful when importing pages from a library.' },
'caption': {
'Typecast': GTypecast.text,
'Description': 'TODO' } },
***************
*** 161,189 ****
'Required': 1,
'Unique': 1,
'Typecast': GTypecast.name,
! 'Description': 'TODO' },
'rows': {
'Typecast': GTypecast.whole,
! 'Description': 'TODO'},
'rowSpacer': {
'Typecast': GTypecast.whole,
! 'Description': 'TODO' },
'transparentBlock':{
'Typecast': GTypecast.boolean,
'Default': 0,
! 'Description': 'TODO' },
'restrictDelete':{
'Typecast': GTypecast.boolean,
'Default': 0,
! 'Description': 'TODO' },
'restrictInsert':{
'Typecast': GTypecast.boolean,
'Default': 0,
! 'Description': 'TODO' },
'datasource': {
'References': (('datasource','name'),),
'Typecast': GTypecast.name,
! 'Description': 'TODO' } },
'ParentTags': ('page',),
'Description': 'TODO' },
--- 162,190 ----
'Required': 1,
'Unique': 1,
'Typecast': GTypecast.name,
! 'Description': 'A unique ID for the widget.The name of the
widget. No blocks or datasources can share the same name without causing
namespace collisions in user triggers.' },
'rows': {
'Typecast': GTypecast.whole,
! 'Description': 'Any widgets inside the block will display this
number of copies in a verticle column. Simulates a very crude grid entry
system. Serves the same purpose as the visibleCount attribute on some
widgets.'},
'rowSpacer': {
'Typecast': GTypecast.whole,
! 'Description': 'Adjusts the vertical gap of this number of
rows between duplicated widgets. Serves the same purpose as some of the gap
attributes on individual widgets.' },
'transparentBlock':{
'Typecast': GTypecast.boolean,
'Default': 0,
! 'Description': 'If set then the you can tab out of the block
via next or previous field events. Makes navigation in mutliblock forms easier.
' },
'restrictDelete':{
'Typecast': GTypecast.boolean,
'Default': 0,
! 'Description': 'If set then the user will be unable to request
that a record be deleted via the user interface.' },
'restrictInsert':{
'Typecast': GTypecast.boolean,
'Default': 0,
! 'Description': 'If set then the user will be unable to request
that new records be inserted into the block' },
'datasource': {
'References': (('datasource','name'),),
'Typecast': GTypecast.name,
! 'Description': 'The name of a datasource (defined in by a
_<datasource>_ tag.) that provides this block with it\'s data.' } },
'ParentTags': ('page',),
'Description': 'TODO' },
***************
*** 193,203 ****
'name': {
'Unique': 1,
'Typecast': GTypecast.name,
! 'Description': 'TODO' },
'text': {
'Required': 1,
'Typecast': GTypecast.text,
! 'Description': 'TODO' },
'alignment': {
'Typecast': GTypecast.name,
'ValueSet': {
--- 194,204 ----
'name': {
'Unique': 1,
'Typecast': GTypecast.name,
! 'Description': 'The unique ID of the label.' },
'text': {
'Required': 1,
'Typecast': GTypecast.text,
! 'Description': 'The text to be displayed.' },
'alignment': {
'Typecast': GTypecast.name,
'ValueSet': {
***************
*** 205,228 ****
'right': {},
'center': {} },
'Default': "left",
! 'Description': 'TODO'},
'width': {
'Typecast': GTypecast.whole,
! 'Description': 'TODO' },
'rows': {
'Typecast': GTypecast.whole,
! 'Description': 'TODO' },
'rowSpacer': {
'Typecast': GTypecast.whole,
! 'Description': 'TODO' },
'x': {
'Required': 1,
'Typecast': GTypecast.whole,
! 'Description': 'TODO' },
'y': {
'Required': 1,
'Typecast': GTypecast.whole,
! 'Description': 'TODO' } },
'ParentTags': ('page','block',),
'Description': 'TODO' },
--- 206,229 ----
'right': {},
'center': {} },
'Default': "left",
! 'Description': 'The justification of the label. Can be one of
the following: _left_, _right_, or _center_. Requires that the _width_
attribute be set.'},
'width': {
'Typecast': GTypecast.whole,
! 'Description': 'The width of the label in text columns.
Defaults to the width of the text. Only really usefull when used with the
justification attribute.' },
'rows': {
'Typecast': GTypecast.whole,
! 'Description': 'Overrides the rows setting defined at the
block level. ' },
'rowSpacer': {
'Typecast': GTypecast.whole,
! 'Description': 'Overriders the rowSpace setting defined at the
block level.' },
'x': {
'Required': 1,
'Typecast': GTypecast.whole,
! 'Description': 'The text column starting position of the
widget . Based upon leftmost column of screen being 0. ' },
'y': {
'Required': 1,
'Typecast': GTypecast.whole,
! 'Description': 'The text row starting position of the widget.
Based upon the top row of the screen being 0.' } },
'ParentTags': ('page','block',),
'Description': 'TODO' },
***************
*** 236,255 ****
'Required': 1,
'Unique': 1,
'Typecast': GTypecast.name,
! 'Description': 'TODO' },
'field': {
'Typecast': GTypecast.name,
! 'Description': 'TODO' },
'height': {
'Typecast': GTypecast.whole,
'Default': 1,
! 'Description': 'TODO' },
'width': {
'Typecast': GTypecast.whole,
! 'Description': 'TODO' },
'max_length': {
'Typecast': GTypecast.whole,
! 'Description': 'TODO' },
'visibleCount':{
'Typecast': GTypecast.whole,
'Deprecated': 'Use the <block> "rows" attribute instead.' },
--- 237,259 ----
'Required': 1,
'Unique': 1,
'Typecast': GTypecast.name,
! 'Description': 'The unique ID of the entry. Referenced in '
! 'master/detail setups as well as triggers.' },
'field': {
'Typecast': GTypecast.name,
! 'Description': 'The name of the field in the datasource to '
! 'which this widget is tied.' },
'height': {
'Typecast': GTypecast.whole,
'Default': 1,
! 'Description': 'The height of the entry in text rows. ' },
'width': {
'Typecast': GTypecast.whole,
! 'Description': 'The width of the entry in text columns.' },
'max_length': {
'Typecast': GTypecast.whole,
! 'Description': 'The maximum number of characters the user is '
! 'allowed to enter into the entry.' },
'visibleCount':{
'Typecast': GTypecast.whole,
'Deprecated': 'Use the <block> "rows" attribute instead.' },
***************
*** 264,270 ****
'Description': 'TODO' },
'readonly': {
'Typecast': GTypecast.boolean,
! 'Description': 'TODO',
'Default': 0 },
'required': {
'Description': 'This object cannot have an empty value prior '
--- 268,276 ----
'Description': 'TODO' },
'readonly': {
'Typecast': GTypecast.boolean,
! 'Description': 'It defined the user will be unable to alter '
! 'the contents of this entry. Triggers can still
'
! 'alter the value.',
'Default': 0 },
'required': {
'Description': 'This object cannot have an empty value prior '
***************
*** 286,292 ****
'hidden': {
'Typecast': GTypecast.boolean,
'Default': 0,
! 'Description': 'TODO' },
'style': {
'Typecast': GTypecast.name,
'ValueSet': {
--- 292,301 ----
'hidden': {
'Typecast': GTypecast.boolean,
'Default': 0,
! 'Description': 'If defined the entry widget will not be '
! 'displayed on the form. This is usefull for '
! 'fields the user doesn\'t need to know about '
! 'that you wish to update via triggers.' },
'style': {
'Typecast': GTypecast.name,
'ValueSet': {
***************
*** 295,301 ****
'checkbox': {},
'label': {} },
'Default': 'default',
! 'Description': 'TODO' },
'case': {
'Typecast': GTypecast.name,
'ValueSet': {
--- 304,315 ----
'checkbox': {},
'label': {} },
'Default': 'default',
! 'Description': 'The style of entry widget requested. Currently
'
! 'either _text_, _label_, _checkbox_, or
_dropdown_. To '
! 'use _dropdown_ you are required to use both
the '
! '_fk_source_, _fk_key_, and _fk_description_ '
! 'attributes. The _label_ style implies the '
! '_readonly_ attribute.' },
'case': {
'Typecast': GTypecast.name,
'ValueSet': {
***************
*** 311,317 ****
'number': {},
'date': {} },
'Default': 'text',
! 'Description': 'TODO'},
'formatmask': {
'Typecast': GTypecast.text,
'Description': 'TODO' },
--- 325,332 ----
'number': {},
'date': {} },
'Default': 'text',
! 'Description': 'The type of data the entry widget will accept.
'
! 'Possible values are _text_, _number_,
_date_.'},
'formatmask': {
'Typecast': GTypecast.text,
'Description': 'TODO' },
***************
*** 326,335 ****
'Description': 'TODO' },
'foreign_key': {
'Typecast': GTypecast.name,
! 'Deprecated': 'Use fk_source="..." and fk_key="..." instead.'
},
'foreign_key_description': {
'Typecast': GTypecast.text,
! 'Deprecated': 'Use fk_description="..." instead.' },
'fk_source': {
'Typecast': GTypecast.name,
'Description': 'TODO' },
--- 341,359 ----
'Description': 'TODO' },
'foreign_key': {
'Typecast': GTypecast.name,
! 'Deprecated': 'Use fk_source="..." and fk_key="..." instead.',
! 'Description': 'Set in the format datasource.field This forces
any '
! 'input into this entry to match the values
stored '
! 'in the datasource.field' },
'foreign_key_description': {
'Typecast': GTypecast.text,
! 'Deprecated': 'Use fk_description="..." instead.',
! 'Description': 'The description used if a style of dropdown is
'
! 'selected. This fields value is displayed in
the '
! 'dropdown but the foreign_key value is actually
'
! 'stored in the field. This allows you to
display '
! 'something like the full name of a US state but
'
! 'only store it\'s 2 character abrievation.' },
'fk_source': {
'Typecast': GTypecast.name,
'Description': 'TODO' },
***************
*** 341,357 ****
'Description': 'TODO' },
'default': {
'Typecast': GTypecast.text,
! 'Description': 'TODO' },
'queryDefault':{
'Typecast': GTypecast.text,
! 'Description': 'TODO' },
'sloppyQuery': {
'Typecast': GTypecast.text,
! 'Description': 'TODO' },
'ignoreCaseOnQuery': {
'Typecast': GTypecast.boolean,
'Default': 0,
! 'Description': 'TODO' },
'editOnNull': {
'Description': 'Only allow this object to be edited if it '
'is currently empty.',
--- 365,390 ----
'Description': 'TODO' },
'default': {
'Typecast': GTypecast.text,
! 'Description': 'The default value for any new records created.
'
! 'If the field is visible the user can override '
! 'the value.' },
'queryDefault':{
'Typecast': GTypecast.text,
! 'Description': 'The form will be populated with this value '
! 'automatically when a query is requested. If '
! 'the field is visible the user can still '
! 'override the value.' },
'sloppyQuery': {
'Typecast': GTypecast.text,
! 'Description': 'When set, whatever value the user enters for '
! 'the query mask is rewritten with % between '
! 'each character. Thus _example_ would be '
! 'queried as _%e%x%a%m%p%l%e%_' },
'ignoreCaseOnQuery': {
'Typecast': GTypecast.boolean,
'Default': 0,
! 'Description': 'If defined the entry widget ignores the case '
! 'of the information entered into the query
mask.' },
'editOnNull': {
'Description': 'Only allow this object to be edited if it '
'is currently empty.',
***************
*** 373,383 ****
'x': {
'Required': 1,
'Typecast': GTypecast.whole,
! 'Description': 'TODO' },
'y': {
'Required': 1,
'Typecast': GTypecast.whole,
! 'Description': 'TODO' } },
'ParentTags': ('block','box'),
'Description': 'TODO' },
--- 406,419 ----
'x': {
'Required': 1,
'Typecast': GTypecast.whole,
! 'Description': 'The text column starting position of the '
! 'widget. Based upon leftmost column of screen '
! 'being 0.' },
'y': {
'Required': 1,
'Typecast': GTypecast.whole,
! 'Description': 'The text row starting position of the widget. '
! 'Based upon the top row of the screen being 0.'
} },
'ParentTags': ('block','box'),
'Description': 'TODO' },
***************
*** 387,405 ****
'width': {
'Required': 1,
'Typecast': GTypecast.whole,
! 'Description': 'TODO' },
'height': {
'Required': 1,
'Typecast': GTypecast.whole,
! 'Description': 'TODO' },
'x': {
'Required': 1,
'Typecast': GTypecast.whole,
! 'Description': 'TODO' },
'y': {
'Required': 1,
'Typecast': GTypecast.whole,
! 'Description': 'TODO' } },
'ParentTags': ('page','block','box'),
'Description': 'TODO' },
--- 423,441 ----
'width': {
'Required': 1,
'Typecast': GTypecast.whole,
! 'Description': 'The width of the box in text columns.' },
'height': {
'Required': 1,
'Typecast': GTypecast.whole,
! 'Description': 'The height of the box in text rows.' },
'x': {
'Required': 1,
'Typecast': GTypecast.whole,
! 'Description': 'The text column starting position of the
widget . Based upon leftmost column of screen being 0. ' },
'y': {
'Required': 1,
'Typecast': GTypecast.whole,
! 'Description': 'The text row starting position of the widget.
Based upon the top row of the screen being 0.' } },
'ParentTags': ('page','block','box'),
'Description': 'TODO' },
***************
*** 412,437 ****
'Description': 'TODO' },
'label': {
'Typecast': GTypecast.text,
! 'Description': 'TODO' },
'width': {
'Required': 1,
'Typecast': GTypecast.whole,
! 'Description': 'TODO' },
'height': {
'Required': 1,
'Typecast': GTypecast.whole,
! 'Description': 'TODO' },
'focusorder': {
'Typecast': GTypecast.whole,
'Description': 'TODO' },
'x': {
'Required': 1,
'Typecast': GTypecast.whole,
! 'Description': 'TODO' },
'y': {
'Required': 1,
'Typecast': GTypecast.whole,
! 'Description': 'TODO' } },
'ParentTags': ('page','block',),
'Description': 'TODO' },
--- 448,473 ----
'Description': 'TODO' },
'label': {
'Typecast': GTypecast.text,
! 'Description': 'An optional text label that will be displayed
on the border.' },
'width': {
'Required': 1,
'Typecast': GTypecast.whole,
! 'Description': 'The width of the box in text columns.' },
'height': {
'Required': 1,
'Typecast': GTypecast.whole,
! 'Description': 'The height of the box in text rows.' },
'focusorder': {
'Typecast': GTypecast.whole,
'Description': 'TODO' },
'x': {
'Required': 1,
'Typecast': GTypecast.whole,
! 'Description': 'The text column starting position of the
widget . Based upon leftmost column of screen being 0. ' },
'y': {
'Required': 1,
'Typecast': GTypecast.whole,
! 'Description': 'The text row starting position of the widget.
Based upon the top row of the screen being 0.' } },
'ParentTags': ('page','block',),
'Description': 'TODO' },
***************
*** 442,473 ****
'name': {
'Unique': 1,
'Typecast': GTypecast.name,
! 'Description': 'TODO' },
'trigger': {
'Typecast': GTypecast.name,
! 'Description': 'TODO' },
'focusorder': {
'Typecast': GTypecast.whole,
'Description': 'TODO'},
'label': {
'Typecast': GTypecast.name,
! 'Description': 'TODO' },
'width': {
'Required': 1,
'Typecast': GTypecast.whole,
! 'Description': 'TODO' },
'height': {
'Required': 1,
'Typecast': GTypecast.whole,
! 'Description': 'TODO' },
'x': {
'Required': 1,
'Typecast': GTypecast.whole,
! 'Description': 'TODO' },
'y': {
'Required': 1,
'Typecast': GTypecast.whole,
! 'Description': 'TODO' } },
'ParentTags': ('page','block','box'),
'Description': 'TODO' },
--- 478,509 ----
'name': {
'Unique': 1,
'Typecast': GTypecast.name,
! 'Description': 'A unique ID for the widget. Useful for
importable buttons. ' },
'trigger': {
'Typecast': GTypecast.name,
! 'Description': 'The name of a named trigger that this button
will fire when pressed.' },
'focusorder': {
'Typecast': GTypecast.whole,
'Description': 'TODO'},
'label': {
'Typecast': GTypecast.name,
! 'Description': 'The text that should appear on the button' },
'width': {
'Required': 1,
'Typecast': GTypecast.whole,
! 'Description': 'The width of the entry in text columns.' },
'height': {
'Required': 1,
'Typecast': GTypecast.whole,
! 'Description': 'The height of the entry in text rows. ' },
'x': {
'Required': 1,
'Typecast': GTypecast.whole,
! 'Description': 'The text column starting position of the
widget . Based upon leftmost column of screen being 0.' },
'y': {
'Required': 1,
'Typecast': GTypecast.whole,
! 'Description': 'The text row starting position of the widget.
Based upon the top row of the screen being 0.' } },
'ParentTags': ('page','block','box'),
'Description': 'TODO' },