[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
r5219 - trunk/gnue-appserver/src/classrep
From: |
johannes |
Subject: |
r5219 - trunk/gnue-appserver/src/classrep |
Date: |
Thu, 4 Mar 2004 12:24:55 -0600 (CST) |
Author: johannes
Date: 2004-03-04 12:24:54 -0600 (Thu, 04 Mar 2004)
New Revision: 5219
Modified:
trunk/gnue-appserver/src/classrep/SchemaSupport.py
Log:
load classdefs with classes.values () instead of classes.keys (), so exporting
all classes will work.
Modified: trunk/gnue-appserver/src/classrep/SchemaSupport.py
===================================================================
--- trunk/gnue-appserver/src/classrep/SchemaSupport.py 2004-03-04 15:54:05 UTC
(rev 5218)
+++ trunk/gnue-appserver/src/classrep/SchemaSupport.py 2004-03-04 18:24:54 UTC
(rev 5219)
@@ -46,7 +46,7 @@
# =============================================================================
class EInvalidType (ESchemaSupport):
def __init__ (self, etype):
- ESchemaSupport.__init__ (self, _("Invalid export type: '%s'." % etype))
+ ESchemaSupport.__init__ (self, _("Invalid export type: '%s'.") % etype)
class EInvalidValue (ESchemaSupport):
@@ -54,7 +54,7 @@
EInvalidValue is raised if a value doesn't match it's datatype.
"""
def __init__ (self, native, text):
- ESchemaSupport.__init__ (self, _("'%s' %s") % (native, text))
+ ESchemaSupport.__init__ (self, "'%s' %s" % (repr (native), text))
# =============================================================================
@@ -84,7 +84,7 @@
# If no specific items are requested, we will use classes
if items is None or len (items) == 0:
- classdefs = self.__classes.keys ()
+ classdefs = self.__classes.values ()
# otherwise check all items and create the classlist
else:
@@ -126,10 +126,10 @@
dest = open (filename, 'w')
dest.write ('<?xml version="1.0" encoding="UTF-8"?>\n')
- dest.write (_('<!-- Schema definition created by GNUe Appserver\'s ') + \
- _('Schema Support. -->\n'))
- dest.write (_("<!-- run this file through gnue-schema to create SQL ") + \
- _("scripts -->\n"))
+ dest.write (_('<!-- Schema definition created by GNUe Appserver\'s ' + \
+ 'Schema Support. -->\n'))
+ dest.write (_("<!-- run this file through gnue-schema to create SQL " + \
+ "scripts -->\n"))
dest.write (schema.dumpXML ().encode ('utf-8'))
dest.close ()
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- r5219 - trunk/gnue-appserver/src/classrep,
johannes <=