[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnue/appserver/src/_featuretest GodlParser.py
From: |
Daniel E. Baumann |
Subject: |
gnue/appserver/src/_featuretest GodlParser.py |
Date: |
Wed, 04 Sep 2002 00:15:58 -0400 |
CVSROOT: /cvsroot/gnue
Module name: gnue
Changes by: Daniel E. Baumann <address@hidden> 02/09/04 00:15:58
Modified files:
appserver/src/_featuretest: GodlParser.py
Log message:
Little bit of parser work...must sleep.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/appserver/src/_featuretest/GodlParser.py.diff?tr1=1.1&tr2=1.2&r1=text&r2=text
Patches:
Index: gnue/appserver/src/_featuretest/GodlParser.py
diff -c gnue/appserver/src/_featuretest/GodlParser.py:1.1
gnue/appserver/src/_featuretest/GodlParser.py:1.2
*** gnue/appserver/src/_featuretest/GodlParser.py:1.1 Tue Sep 3 00:02:20 2002
--- gnue/appserver/src/_featuretest/GodlParser.py Wed Sep 4 00:15:58 2002
***************
*** 19,37 ****
# write to the Free Software Foundation, Inc., 59 Temple Place
# - Suite 330, Boston, MA 02111-1307, USA.
#
! # $Id: GodlParser.py,v 1.1 2002/09/03 04:02:20 baumannd Exp $
import Objects
from gnue.common import GTypecast, GParser
import copy, types
#######################################################
! # This method loads a report from an XML file and returns
! # a GSSchema object.
#######################################################
def loadDefinition(buffer, connections, initialize=1):
! return GParser.loadXMLObject (buffer, xmlGodlHandler, 'GSSchema', 'schema',
initialize, attributes={})
xmlElements = None
--- 19,37 ----
# write to the Free Software Foundation, Inc., 59 Temple Place
# - Suite 330, Boston, MA 02111-1307, USA.
#
! # $Id: GodlParser.py,v 1.2 2002/09/04 04:15:58 baumannd Exp $
import Objects
from gnue.common import GTypecast, GParser
import copy, types
#######################################################
! # This method loads an object spec from an XML file and
! # returns a GodlSpec object.
#######################################################
def loadDefinition(buffer, connections, initialize=1):
! return GParser.loadXMLObject (buffer, xmlGodlHandler, 'GodlSpec',
'odl_specification',
initialize, attributes={})
xmlElements = None
***************
*** 44,218 ****
#
#
! xmlElements = {
! 'schema': {
! 'BaseClass': Objects.GSSchema,
! 'Required': 1,
! 'SingleInstance': 1,
! 'Attributes': {
! 'title': {
! 'Typecast': GTypecast.text },
! 'author': {
! 'Typecast': GTypecast.text },
! 'version': {
! 'Typecast': GTypecast.text },
! 'description': {
! 'Typecast': GTypecast.text } } ,
! 'ParentTags': None },
!
! 'tables': {
! 'BaseClass': Objects.GSTables,
! 'SingleInstance': 1,
! 'ParentTags': ('schema',) },
!
! 'table': {
! 'BaseClass': Objects.GSTable,
! 'Attributes': {
! 'name': {
! 'Required': 1,
! 'Unique': 1,
! 'Typecast': GTypecast.name },
! 'description': {
! 'Typecast': GTypecast.text } },
! 'ParentTags': ('tables',) },
!
! 'fields': {
! 'BaseClass': Objects.GSFields,
! 'SingleInstance': 1,
! 'ParentTags': ('table',) },
!
! 'field': {
! 'BaseClass': Objects.GSField,
! 'Attributes': {
! 'name': {
! 'Required': 1,
! 'Unique': 1,
! 'Typecast': GTypecast.name },
! 'description': {
! 'Typecast': GTypecast.text },
! 'type': {
! 'Required': 1,
! 'Typecast': GTypecast.name },
! 'size': {
! 'Typecast': GTypecast.whole },
! 'nullable': {
! 'Typecast': GTypecast.boolean,
! 'Default': 1 },
! 'default': {
! 'Typecast': GTypecast.text } },
! 'ParentTags': ('fields',) },
!
! 'primarykey': {
! 'BaseClass': Objects.GSPrimaryKey,
! 'SingleInstance': 1,
! 'Attributes': {
! 'name': {
! 'Required': 1,
! 'Typecast': GTypecast.name } },
! 'ParentTags': ('table',) },
!
! 'pkfield': {
! 'BaseClass': Objects.GSPKField,
! 'Attributes': {
! 'name': {
! 'Required': 1,
! 'Typecast': GTypecast.name } },
! 'ParentTags': ('primarykey',) },
!
! 'constraints': {
! 'BaseClass': Objects.GSConstraints,
! 'SingleInstance': 1,
! 'ParentTags': ('table',) },
!
! 'constraint': {
! 'BaseClass': Objects.GSConstraint,
! 'Attributes': {
! 'name': {
! 'Required': 1,
! 'Typecast': GTypecast.name },
! 'type': {
! 'Typecast': GTypecast.name } },
! 'ParentTags': ('constraints',) },
!
! 'constraintfield': {
! 'BaseClass': Objects.GSConstraintField,
! 'Attributes': {
! 'name': {
! 'Required': 1,
! 'Typecast': GTypecast.name } },
! 'ParentTags': ('constraint',) },
!
! 'constraintref': {
! 'BaseClass': Objects.GSConstraintField,
! 'Attributes': {
! 'name': {
! 'Required': 1,
! 'Typecast': GTypecast.name },
! 'table': {
! 'Required': 1,
! 'Typecast': GTypecast.name } },
! 'ParentTags': ('constraint',) },
!
! 'indexes': {
! 'BaseClass': Objects.GSIndexes,
! 'SingleInstance': 1,
! 'ParentTags': ('table',) },
! 'index': {
! 'BaseClass': Objects.GSIndex,
! 'Attributes': {
! 'name': {
! 'Required': 1,
! 'Typecast': GTypecast.name },
! 'unique': {
! 'Typecast': GTypecast.boolean } },
! 'ParentTags': ('indexes',) },
!
! 'indexfield': {
! 'BaseClass': Objects.GSIndexField,
! 'Attributes': {
! 'name': {
! 'Required': 1,
! 'Typecast': GTypecast.name } },
! 'ParentTags': ('index',) },
!
! 'data': {
! 'BaseClass': Objects.GSData,
! 'SingleInstance': 1,
! 'ParentTags': ('schema',) },
!
! 'tabledata': {
! 'BaseClass': Objects.GSTableData,
! 'Attributes': {
! 'name': {
! 'Required': 1,
! 'Typecast': GTypecast.name },
! 'tablename': {
! 'Required': 1,
! 'Typecast': GTypecast.name } },
! 'ParentTags': ('data',) },
!
!
! 'rows': {
! 'BaseClass': Objects.GSRows,
! 'SingleInstance': 1,
! 'ParentTags': ('tabledata',) },
!
! 'row': {
! 'BaseClass': Objects.GSRow,
! 'ParentTags': ('rows',) },
!
! 'value': {
! 'BaseClass': Objects.GSValue,
! 'Attributes': {
! 'field': {
! 'Required': 0,
! 'Typecast': GTypecast.name },
! 'type': {
! 'Required': 0,
! 'Typecast': GTypecast.name,
! 'Default': 'text' } },
! 'ParentTags': ('row',),
! 'MixedContent': 1, },
}
--- 44,221 ----
#
#
! xmlElements =
! {
! 'odl_specification':
! {
! 'BaseClass': Objects.GodlSpec,
! 'Required': 1,
! 'SingleInstance': 0,
! 'ParentTags': (None, 'module',)
! },
!
! 'odl_definition':
! {
! 'BaseClass': Objects.GodlDefinition,
! 'SingleInstance': 0,
! 'ParentTags': ('odl_specification',)
! },
!
! 'module':
! {
! 'BaseClass': Objects.GodlModule,
! 'Attributes':
! {
! 'id':
! {
! 'Required': 1,
! 'Unique': 1,
! 'Typecast': GTypecast.name
! }
! },
! 'ParentTags': ('odl_definition',)
! },
!
! 'typedef':
! {
! 'BaseClass': Objects.GodlTypedef,
! 'SingleInstance': 0,
! 'ParentTags': ('odl_definition',)
! },
!
! # 'field': {
! # 'BaseClass': Objects.GSField,
! # 'Attributes': {
! # 'name': {
! # 'Required': 1,
! # 'Unique': 1,
! # 'Typecast': GTypecast.name },
! # 'description': {
! # 'Typecast': GTypecast.text },
! # 'type': {
! # 'Required': 1,
! # 'Typecast': GTypecast.name },
! # 'size': {
! # 'Typecast': GTypecast.whole },
! # 'nullable': {
! # 'Typecast': GTypecast.boolean,
! # 'Default': 1 },
! # 'default': {
! # 'Typecast': GTypecast.text } },
! #
! # 'ParentTags': ('fields',) },
! #
! # 'primarykey': {
! # 'BaseClass': Objects.GSPrimaryKey,
! # 'SingleInstance': 1,
! # 'Attributes': {
! # 'name': {
! # 'Required': 1,
! # 'Typecast': GTypecast.name } },
! # 'ParentTags': ('table',) },
! #
! # 'pkfield': {
! # 'BaseClass': Objects.GSPKField,
! # 'Attributes': {
! # 'name': {
! # 'Required': 1,
! # 'Typecast': GTypecast.name } },
! # 'ParentTags': ('primarykey',) },
! #
! # 'constraints': {
! # 'BaseClass': Objects.GSConstraints,
! # 'SingleInstance': 1,
! # 'ParentTags': ('table',) },
! #
! # 'constraint': {
! # 'BaseClass': Objects.GSConstraint,
! # 'Attributes': {
! # 'name': {
! # 'Required': 1,
! # 'Typecast': GTypecast.name },
! # 'type': {
! # 'Typecast': GTypecast.name } },
! # 'ParentTags': ('constraints',) },
! #
! # 'constraintfield': {
! # 'BaseClass': Objects.GSConstraintField,
! # 'Attributes': {
! # 'name': {
! # 'Required': 1,
! # 'Typecast': GTypecast.name } },
! # 'ParentTags': ('constraint',) },
! #
! # 'constraintref': {
! # 'BaseClass': Objects.GSConstraintField,
! # 'Attributes': {
! # 'name': {
! # 'Required': 1,
! # 'Typecast': GTypecast.name },
! # 'table': {
! # 'Required': 1,
! # 'Typecast': GTypecast.name } },
! # 'ParentTags': ('constraint',) },
! #
! # 'indexes': {
! # 'BaseClass': Objects.GSIndexes,
! # 'SingleInstance': 1,
! # 'ParentTags': ('table',) },
! # 'index': {
! # 'BaseClass': Objects.GSIndex,
! # 'Attributes': {
! # 'name': {
! # 'Required': 1,
! # 'Typecast': GTypecast.name },
! # 'unique': {
! # 'Typecast': GTypecast.boolean } },
! # 'ParentTags': ('indexes',) },
! #
! # 'indexfield': {
! # 'BaseClass': Objects.GSIndexField,
! # 'Attributes': {
! # 'name': {
! # 'Required': 1,
! # 'Typecast': GTypecast.name } },
! # 'ParentTags': ('index',) },
! #
! # 'data': {
! # 'BaseClass': Objects.GSData,
! # 'SingleInstance': 1,
! # 'ParentTags': ('schema',) },
! #
! # 'tabledata': {
! # 'BaseClass': Objects.GSTableData,
! # 'Attributes': {
! # 'name': {
! # 'Required': 1,
! # 'Typecast': GTypecast.name },
! # 'tablename': {
! # 'Required': 1,
! # 'Typecast': GTypecast.name } },
! # 'ParentTags': ('data',) },
! #
! #
! # 'rows': {
! # 'BaseClass': Objects.GSRows,
! # 'SingleInstance': 1,
! # 'ParentTags': ('tabledata',) },
! #
! # 'row': {
! # 'BaseClass': Objects.GSRow,
! # 'ParentTags': ('rows',) },
! #
! # 'value': {
! # 'BaseClass': Objects.GSValue,
! # 'Attributes': {
! # 'field': {
! # 'Required': 0,
! # 'Typecast': GTypecast.name },
! # 'type': {
! # 'Required': 0,
! # 'Typecast': GTypecast.name,
! # 'Default': 'text' } },
! # 'ParentTags': ('row',),
! # 'MixedContent': 1, },
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- gnue/appserver/src/_featuretest GodlParser.py,
Daniel E. Baumann <=