[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
r5799 - trunk/gnue-common/src/datasources
From: |
jcater |
Subject: |
r5799 - trunk/gnue-common/src/datasources |
Date: |
Sun, 9 May 2004 00:16:27 -0500 (CDT) |
Author: jcater
Date: 2004-05-09 00:16:26 -0500 (Sun, 09 May 2004)
New Revision: 5799
Modified:
trunk/gnue-common/src/datasources/GDataSource.py
Log:
added labels/descriptions to datasource parser defs so designer's property
editor will be easier to understand
Modified: trunk/gnue-common/src/datasources/GDataSource.py
===================================================================
--- trunk/gnue-common/src/datasources/GDataSource.py 2004-05-09 05:13:47 UTC
(rev 5798)
+++ trunk/gnue-common/src/datasources/GDataSource.py 2004-05-09 05:16:26 UTC
(rev 5799)
@@ -468,19 +468,24 @@
'Unique': True,
'Typecast': GTypecast.name },
'type': {
+ 'Label': _('Data Object Type'),
'Typecast': GTypecast.name,
'Default': "object" },
'connection': {
+ 'Label': _('Connection Name'),
'Typecast': GTypecast.name },
'database': {
'Typecast': GTypecast.name,
'Deprecated': 'Use {connection} attribute instead' },
'table': {
+ 'Label': _('Table Name'),
'Typecast': GTypecast.name },
'cache': {
+ 'Label': _('Cache Size'),
'Typecast': GTypecast.whole,
'Default': 5 },
'prequery': {
+ 'Label': _('Query on Startup'),
'Typecast': GTypecast.boolean,
'Default': False },
'distinct': {
@@ -489,15 +494,35 @@
'order_by': {
'Typecast': GTypecast.text },
'master': {
+ 'Label': _('M/D Master DataSource'),
+ 'Description': 'If this datasource is the child in a '
+ 'master/detail relationship, this property '
+ 'contains the name of the master datasource.',
'Typecast': GTypecast.name },
'masterlink': {
+ 'Label': _('M/D Master Field'),
+ 'Description': 'If this datasource is the child in a '
+ 'master/detail relationship, this property '
+ 'contains a comma-separated list of the '
+ 'master datasource\'s field(s) used for '
+ 'linking.',
'Typecast': GTypecast.text },
'detaillink': {
+ 'Label': _('M/D Detail Field'),
+ 'Description': 'If this datasource is the child in a '
+ 'master/detail relationship, this property '
+ 'contains a comma-separated list of the '
+ 'this (child\'s) datasource\'s field(s) used '
+ 'for linking.',
'Typecast': GTypecast.text },
# TODO: Short-term hack
'explicitfields': {
+ 'Label': _('Explicit Fields'),
+
'Typecast': GTypecast.text },
'primarykey': {
+ 'Label': _('Primary Key Field(s)'),
+ 'Description': 'Comma-separated list of the fields that make up
the primary key.',
'Typecast': GTypecast.text } },
'ParentTags': None },
'staticset': {
@@ -526,7 +551,7 @@
'sql': {
'BaseClass': GSql,
'MixedContent': True,
- 'KeepWhitespace': True,
+ 'KeepWhitespace': True,
'ParentTags': ('datasource',) },
'connection': {
'BaseClass': GConnection,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- r5799 - trunk/gnue-common/src/datasources,
jcater <=