[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnue] r7007 - in trunk/gnue-common/src: . apps datasources datasources/
From: |
reinhard |
Subject: |
[gnue] r7007 - in trunk/gnue-common/src: . apps datasources datasources/drivers/Base datasources/drivers/DBSIG2 datasources/drivers/adodbapi/Schema/Discovery datasources/drivers/adodbapi/adodbapi datasources/drivers/csv/Schema/Discovery datasources/drivers/csv/csv datasources/drivers/db2/Schema/Discovery datasources/drivers/db2/db2 datasources/drivers/dbf/Schema/Discovery datasources/drivers/dbf/dbf datasources/drivers/gadfly/Schema/Discovery datasources/drivers/gadfly/gadfly datasources/drivers/informix/Schema/Discovery datasources/drivers/informix/informix datasources/drivers/ingres/Schema/Discovery datasources/drivers/ingres/ingres datasources/drivers/interbase/Schema/Discovery datasources/drivers/interbase/interbase datasources/drivers/ldap datasources/drivers/mysql/mysql datasources/drivers/odbc/wodbc datasources/drivers/oracle/Base datasources/drivers/oracle/Schema/Discovery datasources/drivers/postgresql/Base datasources/drivers/postgresql/pygresql datasources/drivers/sapdb/sapdb datasources/drivers/special/configfile datasources/drivers/special/static datasources/drivers/special/unbound datasources/drivers/sqlite/sqlite datasources/drivers/sqlrelay/sqlrelay datasources/drivers/sybase/Schema/Discovery datasources/drivers/sybase/sybase definitions events formatting formatting/masks logic logic/adapters rpc/drivers/_helpers rpc/drivers/pyro rpc/drivers/soap/soappy rpc/drivers/xmlrpc/pw_xmlrpc rpc/drivers/xmlrpc/py_xmlrpc schema/scripter |
Date: |
Fri, 11 Feb 2005 10:19:03 -0600 (CST) |
Author: reinhard
Date: 2005-02-11 10:18:59 -0600 (Fri, 11 Feb 2005)
New Revision: 7007
Modified:
trunk/gnue-common/src/GMenu.py
trunk/gnue-common/src/apps/GBaseApp.py
trunk/gnue-common/src/apps/GConfig.py
trunk/gnue-common/src/apps/GLogger.py
trunk/gnue-common/src/apps/GServerApp.py
trunk/gnue-common/src/apps/plugin.py
trunk/gnue-common/src/datasources/ConnectionTriggerObj.py
trunk/gnue-common/src/datasources/GConnections.py
trunk/gnue-common/src/datasources/GDataSource.py
trunk/gnue-common/src/datasources/drivers/Base/DataObject.py
trunk/gnue-common/src/datasources/drivers/Base/RecordSet.py
trunk/gnue-common/src/datasources/drivers/Base/ResultSet.py
trunk/gnue-common/src/datasources/drivers/DBSIG2/Connection.py
trunk/gnue-common/src/datasources/drivers/DBSIG2/DataObject.py
trunk/gnue-common/src/datasources/drivers/DBSIG2/RecordSet.py
trunk/gnue-common/src/datasources/drivers/DBSIG2/ResultSet.py
trunk/gnue-common/src/datasources/drivers/adodbapi/Schema/Discovery/Introspection.py
trunk/gnue-common/src/datasources/drivers/adodbapi/adodbapi/Connection.py
trunk/gnue-common/src/datasources/drivers/adodbapi/adodbapi/DataObject.py
trunk/gnue-common/src/datasources/drivers/csv/Schema/Discovery/Introspection.py
trunk/gnue-common/src/datasources/drivers/csv/csv/Connection.py
trunk/gnue-common/src/datasources/drivers/csv/csv/DataObject.py
trunk/gnue-common/src/datasources/drivers/db2/Schema/Discovery/Introspection.py
trunk/gnue-common/src/datasources/drivers/db2/db2/Connection.py
trunk/gnue-common/src/datasources/drivers/dbf/Schema/Discovery/Introspection.py
trunk/gnue-common/src/datasources/drivers/dbf/dbf/Connection.py
trunk/gnue-common/src/datasources/drivers/dbf/dbf/DataObject.py
trunk/gnue-common/src/datasources/drivers/dbf/dbf/RecordSet.py
trunk/gnue-common/src/datasources/drivers/dbf/dbf/ResultSet.py
trunk/gnue-common/src/datasources/drivers/gadfly/Schema/Discovery/Introspection.py
trunk/gnue-common/src/datasources/drivers/gadfly/gadfly/Connection.py
trunk/gnue-common/src/datasources/drivers/gadfly/gadfly/DataObject.py
trunk/gnue-common/src/datasources/drivers/gadfly/gadfly/RecordSet.py
trunk/gnue-common/src/datasources/drivers/gadfly/gadfly/ResultSet.py
trunk/gnue-common/src/datasources/drivers/informix/Schema/Discovery/Introspection.py
trunk/gnue-common/src/datasources/drivers/informix/informix/Connection.py
trunk/gnue-common/src/datasources/drivers/informix/informix/DataObject.py
trunk/gnue-common/src/datasources/drivers/informix/informix/RecordSet.py
trunk/gnue-common/src/datasources/drivers/informix/informix/ResultSet.py
trunk/gnue-common/src/datasources/drivers/ingres/Schema/Discovery/Introspection.py
trunk/gnue-common/src/datasources/drivers/ingres/ingres/Connection.py
trunk/gnue-common/src/datasources/drivers/ingres/ingres/DataObject.py
trunk/gnue-common/src/datasources/drivers/ingres/ingres/RecordSet.py
trunk/gnue-common/src/datasources/drivers/ingres/ingres/ResultSet.py
trunk/gnue-common/src/datasources/drivers/interbase/Schema/Discovery/Introspection.py
trunk/gnue-common/src/datasources/drivers/interbase/interbase/Connection.py
trunk/gnue-common/src/datasources/drivers/ldap/Driver.py
trunk/gnue-common/src/datasources/drivers/mysql/mysql/Connection.py
trunk/gnue-common/src/datasources/drivers/odbc/wodbc/Connection.py
trunk/gnue-common/src/datasources/drivers/odbc/wodbc/DataObject.py
trunk/gnue-common/src/datasources/drivers/odbc/wodbc/RecordSet.py
trunk/gnue-common/src/datasources/drivers/odbc/wodbc/ResultSet.py
trunk/gnue-common/src/datasources/drivers/oracle/Base/Connection.py
trunk/gnue-common/src/datasources/drivers/oracle/Base/DataObject.py
trunk/gnue-common/src/datasources/drivers/oracle/Schema/Discovery/Introspection.py
trunk/gnue-common/src/datasources/drivers/postgresql/Base/Connection.py
trunk/gnue-common/src/datasources/drivers/postgresql/pygresql/Driver.py
trunk/gnue-common/src/datasources/drivers/sapdb/sapdb/Connection.py
trunk/gnue-common/src/datasources/drivers/special/configfile/Connection.py
trunk/gnue-common/src/datasources/drivers/special/configfile/DataObject.py
trunk/gnue-common/src/datasources/drivers/special/configfile/RecordSet.py
trunk/gnue-common/src/datasources/drivers/special/configfile/ResultSet.py
trunk/gnue-common/src/datasources/drivers/special/static/Connection.py
trunk/gnue-common/src/datasources/drivers/special/static/DataObject.py
trunk/gnue-common/src/datasources/drivers/special/static/RecordSet.py
trunk/gnue-common/src/datasources/drivers/special/static/ResultSet.py
trunk/gnue-common/src/datasources/drivers/special/unbound/Driver.py
trunk/gnue-common/src/datasources/drivers/sqlite/sqlite/Connection.py
trunk/gnue-common/src/datasources/drivers/sqlrelay/sqlrelay/Connection.py
trunk/gnue-common/src/datasources/drivers/sqlrelay/sqlrelay/DataObject.py
trunk/gnue-common/src/datasources/drivers/sqlrelay/sqlrelay/RecordSet.py
trunk/gnue-common/src/datasources/drivers/sqlrelay/sqlrelay/ResultSet.py
trunk/gnue-common/src/datasources/drivers/sybase/Schema/Discovery/Introspection.py
trunk/gnue-common/src/datasources/drivers/sybase/sybase/Connection.py
trunk/gnue-common/src/datasources/drivers/sybase/sybase/DataObject.py
trunk/gnue-common/src/datasources/drivers/sybase/sybase/RecordSet.py
trunk/gnue-common/src/datasources/drivers/sybase/sybase/ResultSet.py
trunk/gnue-common/src/definitions/GObjects.py
trunk/gnue-common/src/definitions/GParser.py
trunk/gnue-common/src/events/Event.py
trunk/gnue-common/src/events/EventAware.py
trunk/gnue-common/src/events/EventController.py
trunk/gnue-common/src/formatting/BaseMask.py
trunk/gnue-common/src/formatting/DateMask.py
trunk/gnue-common/src/formatting/GTypecast.py
trunk/gnue-common/src/formatting/NumberMask.py
trunk/gnue-common/src/formatting/TextMask.py
trunk/gnue-common/src/formatting/masks/Masks.py
trunk/gnue-common/src/logic/GFormula.py
trunk/gnue-common/src/logic/GTrigger.py
trunk/gnue-common/src/logic/NamespaceCore.py
trunk/gnue-common/src/logic/adapters/ecmascript.py
trunk/gnue-common/src/rpc/drivers/_helpers/AsyncSocketServer.py
trunk/gnue-common/src/rpc/drivers/_helpers/DirectoryServer.py
trunk/gnue-common/src/rpc/drivers/_helpers/ObjectEnabler.py
trunk/gnue-common/src/rpc/drivers/_helpers/ObjectLibrarian.py
trunk/gnue-common/src/rpc/drivers/pyro/ClientAdapter.py
trunk/gnue-common/src/rpc/drivers/pyro/ServerAdapter.py
trunk/gnue-common/src/rpc/drivers/soap/soappy/Driver.py
trunk/gnue-common/src/rpc/drivers/xmlrpc/pw_xmlrpc/ServerAdapter.py
trunk/gnue-common/src/rpc/drivers/xmlrpc/py_xmlrpc/ServerAdapter.py
trunk/gnue-common/src/schema/scripter/Scripter.py
Log:
Reorganized debug levels.
Modified: trunk/gnue-common/src/GMenu.py
===================================================================
--- trunk/gnue-common/src/GMenu.py 2005-02-11 15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/GMenu.py 2005-02-11 16:18:59 UTC (rev 7007)
@@ -29,7 +29,6 @@
# HISTORY:
#
-from gnue.common.apps import GDebug
from gnue.common.datasources import GDataObjects
from gnue.common.definitions import GObjects
import sys, string
Modified: trunk/gnue-common/src/apps/GBaseApp.py
===================================================================
--- trunk/gnue-common/src/apps/GBaseApp.py 2005-02-11 15:34:54 UTC (rev
7006)
+++ trunk/gnue-common/src/apps/GBaseApp.py 2005-02-11 16:18:59 UTC (rev
7007)
@@ -34,8 +34,7 @@
from gnue import paths
-from gnue.common.apps import GConfig, errors
-from gnue.common.apps import GDebug
+from gnue.common.apps import errors, GConfig, GDebug
from gnue.common.datasources import GConnections
from CommandOption import CommandOption
@@ -272,9 +271,9 @@
raise StartupError, \
_('The debug_level option ("-d") expects numerical values.')
- gDebug (1, "Python %s" % sys.version)
- gDebug (1, "Run Options: %s" % opt)
- gDebug (1, "Run Arguments: %s" % self.ARGUMENTS)
+ gDebug (2, "Python %s" % sys.version)
+ gDebug (2, "Run Options: %s" % opt)
+ gDebug (2, "Run Arguments: %s" % self.ARGUMENTS)
# Read the config files
if application:
@@ -298,7 +297,7 @@
# Get the connection definitions
if connections != None:
- GDebug.printMesg(1,"Reusing connections instance")
+ gDebug(7,"Reusing connections instance")
self.connections = connections
elif self.USE_CONNECTIONS:
@@ -317,7 +316,7 @@
else:
self.connections_file = os.path.join (paths.config, "connections.conf")
- GDebug.printMesg(1, 'Connection Definition: "%s"' %
self.connections_file)
+ gDebug(2, 'Connection Definition: "%s"' % self.connections_file)
try:
self.connections = GConnections.GConnections (self.connections_file,
@@ -486,7 +485,7 @@
'Parameter "%s" specified, but no value supplied.' % psplit[0]
parameters[string.lower(psplit[0])] = psplit[1]
- GDebug.printMesg(2,'Param "%s"="%s" ' % \
+ gDebugg(2,'Param "%s"="%s" ' % \
(string.lower(psplit[0]), psplit[1]))
return parameters
Modified: trunk/gnue-common/src/apps/GConfig.py
===================================================================
--- trunk/gnue-common/src/apps/GConfig.py 2005-02-11 15:34:54 UTC (rev
7006)
+++ trunk/gnue-common/src/apps/GConfig.py 2005-02-11 16:18:59 UTC (rev
7007)
@@ -29,10 +29,10 @@
from ConfigParser import *
import os, sys, string
from gnue import paths
+from gnue.common.apps import GDebug
from gnue.common.utils.FileUtils import openResource
from gnue.common.utils.TextUtils import lineWrap
from gnue.common import GCConfig
-from gnue.common.apps import GDebug
import copy
class InvalidFormatError (StandardError):
@@ -67,7 +67,7 @@
#
def loadApplicationConfig(self, configFilename="gnue.conf",
homeConfigDir=".gnue", section="DEFAULT", defaults = None):
- GDebug.printMesg(1,'Reading configuration info from %s section %s' %
(configFilename, section))
+ gDebug(2,'Reading configuration info from %s section %s' %
(configFilename, section))
#
# Create parser and populate it if it doesn't exist
@@ -100,7 +100,7 @@
#
try:
parser.read(fileLocations)
- GDebug.printMesg(1,'Configuration files were read in this order: %s'
% \
+ gDebug(2,'Configuration files were read in this order: %s' % \
(fileLocations) )
except DuplicateSectionError:
raise InvalidFormatError, _('The file has duplicate source
definitions.')
Modified: trunk/gnue-common/src/apps/GLogger.py
===================================================================
--- trunk/gnue-common/src/apps/GLogger.py 2005-02-11 15:34:54 UTC (rev
7006)
+++ trunk/gnue-common/src/apps/GLogger.py 2005-02-11 16:18:59 UTC (rev
7007)
@@ -76,7 +76,7 @@
for messageset in messages:
for message in string.split("%s" % messageset,'\n'):
- GDebug.printMesg(2,'>> Logger: [%s] %s' % (timestamp, message))
+ gDebug(2,'>> Logger: [%s] %s' % (timestamp, message))
try:
self._filehandle.write('[%s] %s\n' % (timestamp, message))
except IOError, mesg:
Modified: trunk/gnue-common/src/apps/GServerApp.py
===================================================================
--- trunk/gnue-common/src/apps/GServerApp.py 2005-02-11 15:34:54 UTC (rev
7006)
+++ trunk/gnue-common/src/apps/GServerApp.py 2005-02-11 16:18:59 UTC (rev
7007)
@@ -41,18 +41,7 @@
class GServerApp(GBaseApp):
def __init__(self, connections=None, application=None, defaults=None):
-## #
-## # i18n support
-## #
-## import gettext
-## try:
-##
gettext.install('gnue',GConfig.getInstalledBase('install_prefix')+'/translations')
-## except IOError:
-## GDebug.printMesg(1,'Unable to load locale information falling back to
default English language translations.')
-## import __builtin__
-## __builtin__.__dict__['_'] = lambda string:string
-
self.COMMAND_OPTIONS.append (
[ 'foreground','Z','no-detach',0,0, None,
_("Do not send the server into the background. For a POSIX system, "
Modified: trunk/gnue-common/src/apps/plugin.py
===================================================================
--- trunk/gnue-common/src/apps/plugin.py 2005-02-11 15:34:54 UTC (rev
7006)
+++ trunk/gnue-common/src/apps/plugin.py 2005-02-11 16:18:59 UTC (rev
7007)
@@ -61,7 +61,7 @@
import sys
import traceback
-from gnue.common.apps import GDebug, i18n
+from gnue.common.apps import i18n
# =============================================================================
# Exceptions
Modified: trunk/gnue-common/src/datasources/ConnectionTriggerObj.py
===================================================================
--- trunk/gnue-common/src/datasources/ConnectionTriggerObj.py 2005-02-11
15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/datasources/ConnectionTriggerObj.py 2005-02-11
16:18:59 UTC (rev 7007)
@@ -66,7 +66,7 @@
try:
conn = connections.getConnection(name)
except:
- GDebug.printMesg(5,"Cannot add connection %s to trigger namespace" %
name)
+ gDebug(1,"Cannot add connection %s to trigger namespace" % name)
continue
gobjNamespace.constructTriggerObject(ConnectionTriggerObj(conn, name))
-
\ No newline at end of file
+
Modified: trunk/gnue-common/src/datasources/GConnections.py
===================================================================
--- trunk/gnue-common/src/datasources/GConnections.py 2005-02-11 15:34:54 UTC
(rev 7006)
+++ trunk/gnue-common/src/datasources/GConnections.py 2005-02-11 16:18:59 UTC
(rev 7007)
@@ -89,7 +89,7 @@
self._authenticatedUsers = {}
self._eventHandler=eventhandler
- gDebug (1, 'Conn File: "%s"' % location)
+ gDebug (2, 'Conn File: "%s"' % location)
if len(location):
fileHandle = openResource(location)
@@ -293,7 +293,7 @@
try:
dd = connection.supportedDataObjects[connection_type](connection)
- gDebug (1, 'Attaching to %s (%s)' \
+ gDebug (7, 'Attaching to %s (%s)' \
% (dd.__class__.__name__, connection_type))
return dd
except KeyError:
@@ -367,11 +367,11 @@
netrcData = netrc.netrc ().authenticators ("'gnue://%s/'" \
% connection_base)
if netrcData is not None:
- gDebug (5, 'Read the user\'s .netrc file')
+ gDebug (7, 'Read the user\'s .netrc file')
loginData ['_username'] = netrcData [0][1:-1]
loginData ['_password'] = netrcData [2][1:-1]
- gDebug (5, "Found useful stuff for connection %s in "
+ gDebug (7, "Found useful stuff for connection %s in "
"the user\'s .netrc file" % connection_name)
except (IOError, netrc.NetrcParseError, KeyError):
@@ -414,7 +414,7 @@
else:
attempts = 4
- gDebug (5, 'Getting new data connection to %s' % connection_name)
+ gDebug (7, 'Getting new data connection to %s' % connection_name)
errortext = None
while attempts:
Modified: trunk/gnue-common/src/datasources/GDataSource.py
===================================================================
--- trunk/gnue-common/src/datasources/GDataSource.py 2005-02-11 15:34:54 UTC
(rev 7006)
+++ trunk/gnue-common/src/datasources/GDataSource.py 2005-02-11 16:18:59 UTC
(rev 7007)
@@ -121,7 +121,7 @@
try:
for field in string.split(self.explicitfields,','):
- gDebug (5, "Explicit field %s" % field)
+ gDebug (7, "Explicit field %s" % field)
self._fieldReferences[field] = True
except AttributeError:
pass
@@ -385,7 +385,7 @@
def primaryInit(self):
self._topObject = self.findParentOfType(self._toplevelParent)
- gDebug (10, "Setting %s to connect mgr %s" \
+ gDebug (9, "Setting %s to connect mgr %s" \
% (self.name, self._topObject._connections))
self.__getSortOrder ()
self.setConnectionManager(self._topObject._connections)
@@ -404,7 +404,7 @@
if hasattr(self, 'master') and self.master:
self.master = string.lower(self.master)
- gDebug (3, "Linking detail '%s' to master '%s'" \
+ gDebug (7, "Linking detail '%s' to master '%s'" \
% (self.name, self.master))
if self._topObject._datasourceDictionary.has_key(self.master):
Modified: trunk/gnue-common/src/datasources/drivers/Base/DataObject.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/Base/DataObject.py
2005-02-11 15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/datasources/drivers/Base/DataObject.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -121,7 +121,7 @@
dataObject.__dict__.update(params)
- GDebug.printMesg (1,"Adding a master/detail relationship to DataObject")
+ GDebug.printMesg (8,"Adding a master/detail relationship to DataObject")
dataObject._masterObject = self
dataObject._masterfields = string.split ( \
@@ -152,11 +152,11 @@
self._dataConnection = self._connection.native
def commit(self):
- GDebug.printMesg(3,'WARNING: The use of DataObject.commit() is deprecated')
+ GDebug.printMesg(1,'WARNING: The use of DataObject.commit() is deprecated')
self._connection.commit()
def rollback(self):
- GDebug.printMesg(3,'WARNING: The use of DataObject.rollback() is
deprecated')
+ GDebug.printMesg(1,'WARNING: The use of DataObject.rollback() is
deprecated')
self._connection.rollback()
@@ -184,7 +184,7 @@
# Called when new record master in master/detail is queried
def _masterRecordChanged(self, master):
- GDebug.printMesg (5, 'Master Record Changed')
+ GDebug.printMesg (8, 'Master Record Changed')
criteria = {}
# If a detail result set has already been created for a particular
@@ -195,7 +195,7 @@
not master.current._cachedDetailResultSets[self].isPending() ):
doQuery = None
for i in range(0, len(self._masterfields)):
- GDebug.printMesg(10,"Adding criteria")
+ GDebug.printMesg(8,"Adding criteria")
criteria[string.strip(self._detailfields[i])] = \
master.current.getField(string.strip(self._masterfields[i]))
@@ -204,7 +204,7 @@
#datasources.
doQuery = doQuery or
master.current.getField(string.strip(self._masterfields[i]))
- GDebug.printMesg(10,master.current.getField(self._masterfields[i]))
+ GDebug.printMesg(8,master.current.getField(self._masterfields[i]))
if doQuery:
master.current.addDetailResultSet(self.createResultSet(\
conditions=criteria, masterRecordSet=master.current))
Modified: trunk/gnue-common/src/datasources/drivers/Base/RecordSet.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/Base/RecordSet.py 2005-02-11
15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/datasources/drivers/Base/RecordSet.py 2005-02-11
16:18:59 UTC (rev 7007)
@@ -63,7 +63,7 @@
self._fields = {}
self._fields.update (defaultData)
- gDebug (3, "Initial Data: %s" % self._fields)
+ gDebug (8, "Initial Data: %s" % self._fields)
# ===========================================================================
@@ -157,7 +157,7 @@
# If trackMod is set to 0 then the modification flag isn't raised
def setField(self, field, value, trackMod = 1):
do = self._parent._dataObject
- gDebug (3, "setField: %s to %s" % (field, value))
+ gDebug (8, "setField: %s to %s" % (field, value))
# If this field is bound to a datasource and the datasource is read only,
# generate an error.
if self._parent.isFieldBound(field) and self._parent.isReadOnly():
@@ -185,7 +185,7 @@
def setFields(self, updateDict, trackMod = 1):
# If this field is bound to a datasource and the datasource is read only,
# generate an error.
- gDebug (4, "calling setField from updateDict: %s" % updateDict)
+ gDebug (8, "calling setField from updateDict: %s" % updateDict)
for field in updateDict.keys():
self.setField(field, updateDict[field], trackMod)
@@ -228,7 +228,7 @@
# It does no harm to attempt to post since nothing will be posted,
# But does this allow sloppy programming?
- gDebug (5, 'Preparing to post datasource %s' \
+ gDebug (8, 'Preparing to post datasource %s' \
% self._parent._dataObject.name)
# Save the initial status so we know if any triggers changed us
@@ -254,7 +254,7 @@
if self.isPending():
- gDebug (5, 'Posting datasource %s' % self._parent._dataObject.name)
+ gDebug (8, 'Posting datasource %s' % self._parent._dataObject.name)
self._postChanges (recordNumber)
Modified: trunk/gnue-common/src/datasources/drivers/Base/ResultSet.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/Base/ResultSet.py 2005-02-11
15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/datasources/drivers/Base/ResultSet.py 2005-02-11
16:18:59 UTC (rev 7007)
@@ -198,7 +198,7 @@
tmsg = _("Attempted to insert into a read only datasource")
raise Exceptions.ReadOnlyError, tmsg
else:
- gDebug (7,'Inserting a blank record')
+ gDebug (8,'Inserting a blank record')
self._currentRecord += 1
self._cachedRecords.insert(self._currentRecord,
self._createEmptyRecord())
self._recordCount += 1
@@ -206,19 +206,19 @@
# Set any dataobject-wide default values
for field in self._dataObject._defaultValues.keys():
- gDebug (4, "DataObject-Wide default for %s" % field)
+ gDebug (8, "DataObject-Wide default for %s" % field)
self.current.setField(field,
self._dataObject._defaultValues[field],False)
# Set any resultset specific values
for field in self._defaultValues.keys():
- gDebug (4, "ResultSet-specific default for %s" % field)
+ gDebug (8, "ResultSet-specific default for %s" % field)
self.current.setField(field, self._defaultValues[field],False)
# Pull any primary keys from a master record set
if self._masterRecordSet != None and hasattr(self._dataObject,
'_masterfields'):
i = 0
for field in self._dataObject._masterfields:
- gDebug (4, "Value for %s to %s" % (field, \
+ gDebug (8, "Value for %s to %s" % (field, \
self._masterRecordSet.getField (field)))
self.current.setField(self._dataObject._detailfields[i],self._masterRecordSet.getField(field),False)
i += 1
@@ -409,7 +409,7 @@
# self._currentRecord = self._recordCount - 1
def notifyDetailObjects(self):
- gDebug (5,'Master record changed; Notifying Detail Objects')
+ gDebug (8,'Master record changed; Notifying Detail Objects')
for detail in self._dataObject._detailObjects:
if detail[1]:
detail[1].masterResultSetChanged(self,
Modified: trunk/gnue-common/src/datasources/drivers/DBSIG2/Connection.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/DBSIG2/Connection.py
2005-02-11 15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/datasources/drivers/DBSIG2/Connection.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -75,7 +75,7 @@
return [['_username', _('User Name'),0],['_password', _('Password'),1]]
def commit(self):
- gDebug (5,"DB-SIG database driver: commit()")
+ gDebug (8,"DB-SIG database driver: commit()")
try:
self.native.commit()
@@ -86,7 +86,7 @@
self._beginTransaction()
def rollback(self):
- gDebug (5,"DB-SIG database driver: rollback()")
+ gDebug (8,"DB-SIG database driver: rollback()")
try:
self.native.rollback()
@@ -285,8 +285,8 @@
else:
p = None
- gDebug (1, "DBSIG2 Statement: %s" % s)
- gDebug (1, "DBSIG2 Parameters: %s" % p)
+ gDebug (3, "DBSIG2 Statement: %s" % s)
+ gDebug (3, "DBSIG2 Parameters: %s" % p)
# Create DBSIG2 cursor and execute statement
try:
Modified: trunk/gnue-common/src/datasources/drivers/DBSIG2/DataObject.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/DBSIG2/DataObject.py
2005-02-11 15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/datasources/drivers/DBSIG2/DataObject.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -104,7 +104,7 @@
def __init__(self, *args, **params):
BaseDataObject.__init__(self, *args, **params)
- gDebug (1, "DB-SIG database driver backend initializing")
+ gDebug (8, "DB-SIG database driver backend initializing")
# TODO: uh, hmm..
@@ -147,7 +147,7 @@
elif type(value) == types.StringType:
if self._unicodeMode:
- gDebug (0, 'WARNING: non-unicode passed to the dbdriver (%s)' %
value)
+ gDebug (1, 'WARNING: non-unicode passed to the dbdriver (%s)' %
value)
return "'%s'" % replace(value,
"'",
@@ -169,7 +169,7 @@
err = u_("Object of unknown type (%s) passed to DBSIG2 based
dbdriver.") % type(value)
# FIXME: raise an error instead of just printing a warning, after some
transition time
#raise GDataObjects.UnknownDataType, err
- gDebug (0, err)
+ gDebug (1, err)
return "'%s'" % replace(str(value),
"'",
"%s'" % self._escapeSingleQuote)
@@ -233,7 +233,7 @@
_and._children = chillun
where = " WHERE (%s)" % (self.__conditionToSQL (cond._children[0]))
- gDebug (5, where)
+ gDebug (8, where)
return where
#
@@ -303,7 +303,7 @@
class DataObject_Object(DataObject):
def _buildQuery(self, conditions={}, forDetail=None, additionalSQL=""):
- gDebug (7, 'DBSIG2-DO::Implicit Fields: %s' % self._fieldReferences)
+ gDebug (8, 'DBSIG2-DO::Implicit Fields: %s' % self._fieldReferences)
if self.distinct:
distinct = "distinct "
else:
@@ -351,7 +351,7 @@
q = "%s ORDER BY %s " % (q, string.join (order, ", "))
- gDebug (5, q)
+ gDebug (8, q)
return q
@@ -366,7 +366,7 @@
q = "SELECT count(*) FROM %s%s" % (self.table, whereClause)
- gDebug (5, q)
+ gDebug (8, q)
return q
Modified: trunk/gnue-common/src/datasources/drivers/DBSIG2/RecordSet.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/DBSIG2/RecordSet.py
2005-02-11 15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/datasources/drivers/DBSIG2/RecordSet.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -82,7 +82,7 @@
# when useParameters is set
(statement, parameters) = (s, None)
- gDebug (5, "_postChanges: statement=%s" % statement)
+ gDebug (8, "_postChanges: statement=%s" % statement)
try:
do._connection.sql (statement, parameters)
Modified: trunk/gnue-common/src/datasources/drivers/DBSIG2/ResultSet.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/DBSIG2/ResultSet.py
2005-02-11 15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/datasources/drivers/DBSIG2/ResultSet.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -60,16 +60,16 @@
if not isinstance (t[0], types.UnicodeType):
name = unicode (name, self._dataObject._connection._encoding)
- gDebug (6, "Field from Cursordescription: %s new %s" % (t[0], name))
+ gDebug (8, "Field from Cursordescription: %s new %s" % (t[0], name))
self._fieldNames.append (name)
self._dataObject._fieldReferences [name] = ""
- gDebug (5, "DBSIG2::Fields from cursor set to %s" % self._fieldNames)
+ gDebug (8, "DBSIG2::Fields from cursor set to %s" % self._fieldNames)
self._recordCount = self._cursor.rowcount or 0
- gDebug (5, 'ResultSet created')
+ gDebug (8, 'ResultSet created')
def _loadNextRecord(self):
if self._cursor:
Modified:
trunk/gnue-common/src/datasources/drivers/adodbapi/Schema/Discovery/Introspection.py
===================================================================
---
trunk/gnue-common/src/datasources/drivers/adodbapi/Schema/Discovery/Introspection.py
2005-02-11 15:34:54 UTC (rev 7006)
+++
trunk/gnue-common/src/datasources/drivers/adodbapi/Schema/Discovery/Introspection.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -34,7 +34,7 @@
from string import lower, join, split
import sys
-from gnue.common.apps import GDebug, GConfig
+from gnue.common.apps import GConfig
from gnue.common.datasources import GIntrospection
DESCRIPTION_NAME = 0
Modified:
trunk/gnue-common/src/datasources/drivers/adodbapi/adodbapi/Connection.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/adodbapi/adodbapi/Connection.py
2005-02-11 15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/datasources/drivers/adodbapi/adodbapi/Connection.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -61,7 +61,7 @@
}
def connect(self, connectData={}):
- GDebug.printMesg(1,"Adodbapi database driver initializing")
+ GDebug.printMesg(9,"Adodbapi database driver initializing")
try:
connPar = {'Provider': connectData['oledb_provider'],
@@ -78,7 +78,7 @@
connPar[oledbName] = connectData[gnueName]
connStr = ';'.join([r"%s=%s" % (k,v) for k,v in connPar.items()])
- GDebug.printMesg(1,'Adodbapi connection string="%s"' % connStr)
+ GDebug.printMesg(9,'Adodbapi connection string="%s"' % connStr)
self.native = SIG2api.connect(connStr)
Modified:
trunk/gnue-common/src/datasources/drivers/adodbapi/adodbapi/DataObject.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/adodbapi/adodbapi/DataObject.py
2005-02-11 15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/datasources/drivers/adodbapi/adodbapi/DataObject.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -30,7 +30,6 @@
__all__ = ['DataObject_SQL','DataObject_Object']
from gnue.common.datasources import GDataObjects, GConditions, GConnections
-from gnue.common.apps import GDebug
from gnue.common.datasources.drivers import DBSIG2
Modified:
trunk/gnue-common/src/datasources/drivers/csv/Schema/Discovery/Introspection.py
===================================================================
---
trunk/gnue-common/src/datasources/drivers/csv/Schema/Discovery/Introspection.py
2005-02-11 15:34:54 UTC (rev 7006)
+++
trunk/gnue-common/src/datasources/drivers/csv/Schema/Discovery/Introspection.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -32,7 +32,7 @@
from string import lower, join, split
import sys
-from gnue.common.apps import GDebug, GConfig
+from gnue.common.apps import GConfig
from gnue.common.datasources import GIntrospection
class Introspection(GIntrospection.Introspection):
Modified: trunk/gnue-common/src/datasources/drivers/csv/csv/Connection.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/csv/csv/Connection.py
2005-02-11 15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/datasources/drivers/csv/csv/Connection.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -56,7 +56,7 @@
# We don't do connections (we are connectionless)
def connect(self, connectData={}):
try:
- GDebug.printMesg(3,'Open file: %s' % (connectData['dbname']))
+ GDebug.printMesg(9,'Open file: %s' % (connectData['dbname']))
self.native = csv.DictReader(file(connectData['dbname']),[])
except IOError:
tmsg = _('CSV file not found.')
Modified: trunk/gnue-common/src/datasources/drivers/csv/csv/DataObject.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/csv/csv/DataObject.py
2005-02-11 15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/datasources/drivers/csv/csv/DataObject.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -32,7 +32,6 @@
import string
import csv
-from gnue.common.apps import GDebug
from gnue.common.datasources.GDataObjects import *
from gnue.common.datasources.drivers.special.static.DataObject import
STATIC_DataObject
from gnue.common.datasources.drivers.special.static.ResultSet import
STATIC_ResultSet
Modified:
trunk/gnue-common/src/datasources/drivers/db2/Schema/Discovery/Introspection.py
===================================================================
---
trunk/gnue-common/src/datasources/drivers/db2/Schema/Discovery/Introspection.py
2005-02-11 15:34:54 UTC (rev 7006)
+++
trunk/gnue-common/src/datasources/drivers/db2/Schema/Discovery/Introspection.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -33,7 +33,6 @@
import sys
from gnue.common.apps import GDebug, GConfig
-from gnue.common.apps import GDebug, GConfig
from gnue.common.datasources import GIntrospection
class Introspection(GIntrospection.Introspection):
@@ -84,7 +83,7 @@
% (string.join(where_type,"','"), where_user) + \
"order by tabname "
- GDebug.printMesg(5,statement)
+ gDebug(3,statement)
cursor = self._connection.native.cursor()
cursor.execute(statement)
@@ -118,7 +117,7 @@
% (name, schema) + \
"order by tabname "
- GDebug.printMesg(5,statement)
+ gDebug(3,statement)
cursor = self._connection.native.cursor()
cursor.execute(statement)
@@ -153,7 +152,7 @@
"from syscat.tables " + \
"where tabschema = '%s' and tabname='%s'" % (schema, name)
- GDebug.printMesg(5,statement)
+ gDebug(3,statement)
cursor.execute(statement)
rs = cursor.fetchone()
@@ -166,7 +165,7 @@
"where tabschema = '%s' and tabname = '%s' " % (schema, name) + \
"order by colno"
- GDebug.printMesg(5,statement)
+ gDebug(3,statement)
cursor.execute(statement)
Modified: trunk/gnue-common/src/datasources/drivers/db2/db2/Connection.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/db2/db2/Connection.py
2005-02-11 15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/datasources/drivers/db2/db2/Connection.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -61,7 +61,7 @@
def connect(self, connectData={}):
- GDebug.printMesg(1,"DB2 database driver initializing")
+ GDebug.printMesg(9,"DB2 database driver initializing")
try:
self.native = DB2.connect(uid=connectData['_username'],
pwd=connectData['_password'],
Modified:
trunk/gnue-common/src/datasources/drivers/dbf/Schema/Discovery/Introspection.py
===================================================================
---
trunk/gnue-common/src/datasources/drivers/dbf/Schema/Discovery/Introspection.py
2005-02-11 15:34:54 UTC (rev 7006)
+++
trunk/gnue-common/src/datasources/drivers/dbf/Schema/Discovery/Introspection.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -33,7 +33,6 @@
import sys
from gnue.common.apps import GDebug, GConfig
-from gnue.common.apps import GDebug, GConfig
from gnue.common.datasources import GIntrospection
class Introspection(GIntrospection.Introspection):
Modified: trunk/gnue-common/src/datasources/drivers/dbf/dbf/Connection.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/dbf/dbf/Connection.py
2005-02-11 15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/datasources/drivers/dbf/dbf/Connection.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -59,7 +59,7 @@
try:
filename = os.path.join (connectData ['directory'],
connectData ['dbname'])
- gDebug (3,'Open file: %s' % filename)
+ gDebug (9,'Open file: %s' % filename)
self.native = dbf.dbf (filename)
except IOError:
Modified: trunk/gnue-common/src/datasources/drivers/dbf/dbf/DataObject.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/dbf/dbf/DataObject.py
2005-02-11 15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/datasources/drivers/dbf/dbf/DataObject.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -30,7 +30,6 @@
__all__ = ['DataObject']
-from gnue.common.apps import GDebug
import string
from gnue.common.datasources.GDataObjects import *
from gnue.common.datasources.drivers.special.static import *
Modified: trunk/gnue-common/src/datasources/drivers/dbf/dbf/RecordSet.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/dbf/dbf/RecordSet.py
2005-02-11 15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/datasources/drivers/dbf/dbf/RecordSet.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -56,7 +56,7 @@
# We don't do connections (we are connectionless)
def connect(self, connectData={}):
try:
- GDebug.printMesg(3,'Open file: %s' %
(connectData['directory']+connectData['dbname']))
+ gDebug(9,'Open file: %s' %
(connectData['directory']+connectData['dbname']))
self._dataConnection = dbf.dbf(connectData['directory']+\
connectData['dbname'])
except IOError:
@@ -126,7 +126,7 @@
elif field[1] == 'L':
attrs['datatype']='boolean'
else:
- GDebug.printMesg(1,'WARNING: dbf native type error: %s' % field[1])
+ GDebug(1,'WARNING: dbf native type error: %s' % field[1])
list.append(Schema(attrs=attrs))
Modified: trunk/gnue-common/src/datasources/drivers/dbf/dbf/ResultSet.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/dbf/dbf/ResultSet.py
2005-02-11 15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/datasources/drivers/dbf/dbf/ResultSet.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -56,7 +56,7 @@
# We don't do connections (we are connectionless)
def connect(self, connectData={}):
try:
- GDebug.printMesg(3,'Open file: %s' %
(connectData['directory']+connectData['dbname']))
+ gDebug(9,'Open file: %s' %
(connectData['directory']+connectData['dbname']))
self._dataConnection = dbf.dbf(connectData['directory']+\
connectData['dbname'])
except IOError:
@@ -126,7 +126,7 @@
elif field[1] == 'L':
attrs['datatype']='boolean'
else:
- GDebug.printMesg(1,'WARNING: dbf native type error: %s' % field[1])
+ gDebug(1,'WARNING: dbf native type error: %s' % field[1])
list.append(Schema(attrs=attrs))
Modified:
trunk/gnue-common/src/datasources/drivers/gadfly/Schema/Discovery/Introspection.py
===================================================================
---
trunk/gnue-common/src/datasources/drivers/gadfly/Schema/Discovery/Introspection.py
2005-02-11 15:34:54 UTC (rev 7006)
+++
trunk/gnue-common/src/datasources/drivers/gadfly/Schema/Discovery/Introspection.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -33,7 +33,6 @@
import sys
from gnue.common.apps import GDebug, GConfig
-from gnue.common.apps import GDebug, GConfig
from gnue.common.datasources import GIntrospection
class Introspection(GIntrospection.Introspection):
@@ -68,7 +67,7 @@
statement = "select * from __table_names__"
cursor = self._connection.native.cursor()
- GDebug.printMesg(1,"** Executing: %s **" % statement)
+ GDebug.printMesg(3,"** Executing: %s **" % statement)
cursor.execute(statement)
list = []
@@ -88,7 +87,7 @@
statement = "SELECT * from __table_names__ WHERE TABLE_NAME='%s'" % (name)
cursor = self._connection.native.cursor()
- GDebug.printMesg(1,"** Executing: %s **" % statement)
+ GDebug.printMesg(3,"** Executing: %s **" % statement)
cursor.execute(statement)
rs = cursor.fetchone()
@@ -112,7 +111,7 @@
statement = "SELECT * FROM __COLUMNS__ WHERE TABLE_NAME='%s'" % parent.id
cursor = self._connection.native.cursor()
- GDebug.printMesg(1,"** Executing: %s **" % statement)
+ GDebug.printMesg(3,"** Executing: %s **" % statement)
cursor.execute(statement)
columns = cursor.description
Modified: trunk/gnue-common/src/datasources/drivers/gadfly/gadfly/Connection.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/gadfly/gadfly/Connection.py
2005-02-11 15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/datasources/drivers/gadfly/gadfly/Connection.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -79,7 +79,7 @@
}
def connect(self, connectData={}):
- GDebug.printMesg(1,"Gadfly database driver initializing")
+ gDebug(9,"Gadfly database driver initializing")
#GDebug.printMesg(1,"Connecting with %s, %s" %( connectData['_dbname'],
connectData['directory']))
try:
self.native = gadfly.gadfly(connectData['dbname'],
Modified: trunk/gnue-common/src/datasources/drivers/gadfly/gadfly/DataObject.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/gadfly/gadfly/DataObject.py
2005-02-11 15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/datasources/drivers/gadfly/gadfly/DataObject.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -120,7 +120,7 @@
def connect(self, connectData={}):
- GDebug.printMesg(1,"Gadfly database driver initializing")
+ gDebug(9,"Gadfly database driver initializing")
#GDebug.printMesg(1,"Connecting with %s, %s" %( connectData['_dbname'],
connectData['directory']))
try:
self._dataConnection = gadfly.gadfly(connectData['dbname'],
Modified: trunk/gnue-common/src/datasources/drivers/gadfly/gadfly/RecordSet.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/gadfly/gadfly/RecordSet.py
2005-02-11 15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/datasources/drivers/gadfly/gadfly/RecordSet.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -118,7 +118,7 @@
def connect(self, connectData={}):
- GDebug.printMesg(1,"Gadfly database driver initializing")
+ gDebug(9,"Gadfly database driver initializing")
#GDebug.printMesg(1,"Connecting with %s, %s" %( connectData['_dbname'],
connectData['directory']))
try:
self._dataConnection = gadfly.gadfly(connectData['dbname'],
Modified: trunk/gnue-common/src/datasources/drivers/gadfly/gadfly/ResultSet.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/gadfly/gadfly/ResultSet.py
2005-02-11 15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/datasources/drivers/gadfly/gadfly/ResultSet.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -120,7 +120,7 @@
def connect(self, connectData={}):
- GDebug.printMesg(1,"Gadfly database driver initializing")
+ gDebug(9,"Gadfly database driver initializing")
#GDebug.printMesg(1,"Connecting with %s, %s" %( connectData['_dbname'],
connectData['directory']))
try:
self._dataConnection = gadfly.gadfly(connectData['dbname'],
Modified:
trunk/gnue-common/src/datasources/drivers/informix/Schema/Discovery/Introspection.py
===================================================================
---
trunk/gnue-common/src/datasources/drivers/informix/Schema/Discovery/Introspection.py
2005-02-11 15:34:54 UTC (rev 7006)
+++
trunk/gnue-common/src/datasources/drivers/informix/Schema/Discovery/Introspection.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -32,8 +32,7 @@
from string import lower, join, split
import sys
-from gnue.common.apps import GDebug, GConfig
-from gnue.common.apps import GDebug, GConfig
+from gnue.common.apps import GConfig
from gnue.common.datasources import GIntrospection
class Introspection(GIntrospection.Introspection):
Modified:
trunk/gnue-common/src/datasources/drivers/informix/informix/Connection.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/informix/informix/Connection.py
2005-02-11 15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/datasources/drivers/informix/informix/Connection.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -61,7 +61,7 @@
}
def connect(self, connectData={}):
- GDebug.printMesg(1,"Informix database driver initializing")
+ GDebug.printMesg(9,"Informix database driver initializing")
try:
if connectData.has_key('host') and len(connectData['host']):
db = connectData['dbname'] + "@" + connectData['host']
Modified:
trunk/gnue-common/src/datasources/drivers/informix/informix/DataObject.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/informix/informix/DataObject.py
2005-02-11 15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/datasources/drivers/informix/informix/DataObject.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -70,7 +70,7 @@
def connect(self, connectData={}):
- GDebug.printMesg(1,"Informix database driver initializing")
+ GDebug.printMesg(9,"Informix database driver initializing")
try:
if connectData.has_key('host') and len(connectData['host']):
db = connectData['dbname'] + "@" + connectData['host']
Modified:
trunk/gnue-common/src/datasources/drivers/informix/informix/RecordSet.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/informix/informix/RecordSet.py
2005-02-11 15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/datasources/drivers/informix/informix/RecordSet.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -71,7 +71,7 @@
def connect(self, connectData={}):
- GDebug.printMesg(1,"Informix database driver initializing")
+ GDebug.printMesg(9,"Informix database driver initializing")
try:
if connectData.has_key('host') and len(connectData['host']):
db = connectData['dbname'] + "@" + connectData['host']
Modified:
trunk/gnue-common/src/datasources/drivers/informix/informix/ResultSet.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/informix/informix/ResultSet.py
2005-02-11 15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/datasources/drivers/informix/informix/ResultSet.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -71,7 +71,7 @@
def connect(self, connectData={}):
- GDebug.printMesg(1,"Informix database driver initializing")
+ GDebug.printMesg(9,"Informix database driver initializing")
try:
if connectData.has_key('host') and len(connectData['host']):
db = connectData['dbname'] + "@" + connectData['host']
Modified:
trunk/gnue-common/src/datasources/drivers/ingres/Schema/Discovery/Introspection.py
===================================================================
---
trunk/gnue-common/src/datasources/drivers/ingres/Schema/Discovery/Introspection.py
2005-02-11 15:34:54 UTC (rev 7006)
+++
trunk/gnue-common/src/datasources/drivers/ingres/Schema/Discovery/Introspection.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -32,8 +32,7 @@
from string import lower, join, split
import sys
-from gnue.common.apps import GDebug, GConfig
-from gnue.common.apps import GDebug, GConfig
+from gnue.common.apps import GConfig
from gnue.common.datasources import GIntrospection
class Introspection(GIntrospection.Introspection):
Modified: trunk/gnue-common/src/datasources/drivers/ingres/ingres/Connection.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/ingres/ingres/Connection.py
2005-02-11 15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/datasources/drivers/ingres/ingres/Connection.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -62,7 +62,7 @@
}
def connect(self, connectData={}):
- GDebug.printMesg(1,"Ingres database driver initializing")
+ GDebug.printMesg(9,"Ingres database driver initializing")
try:
# TODO: I have no clue how to pass a Password!!!!!
self.native = SIG2api.connect(connectData['dbname'], \
Modified: trunk/gnue-common/src/datasources/drivers/ingres/ingres/DataObject.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/ingres/ingres/DataObject.py
2005-02-11 15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/datasources/drivers/ingres/ingres/DataObject.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -68,7 +68,7 @@
def connect(self, connectData={}):
- GDebug.printMesg(1,"Ingres database driver initializing")
+ GDebug.printMesg(9,"Ingres database driver initializing")
try:
# TODO: I have no clue how to pass a Password!!!!!
self._dataConnection = SIG2api.connect(connectData['dbname'], \
Modified: trunk/gnue-common/src/datasources/drivers/ingres/ingres/RecordSet.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/ingres/ingres/RecordSet.py
2005-02-11 15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/datasources/drivers/ingres/ingres/RecordSet.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -70,7 +70,7 @@
def connect(self, connectData={}):
- GDebug.printMesg(1,"Ingres database driver initializing")
+ GDebug.printMesg(9,"Ingres database driver initializing")
try:
# TODO: I have no clue how to pass a Password!!!!!
self._dataConnection = SIG2api.connect(connectData['dbname'], \
Modified: trunk/gnue-common/src/datasources/drivers/ingres/ingres/ResultSet.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/ingres/ingres/ResultSet.py
2005-02-11 15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/datasources/drivers/ingres/ingres/ResultSet.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -68,7 +68,7 @@
def connect(self, connectData={}):
- GDebug.printMesg(1,"Ingres database driver initializing")
+ GDebug.printMesg(9,"Ingres database driver initializing")
try:
# TODO: I have no clue how to pass a Password!!!!!
self._dataConnection = SIG2api.connect(connectData['dbname'], \
Modified:
trunk/gnue-common/src/datasources/drivers/interbase/Schema/Discovery/Introspection.py
===================================================================
---
trunk/gnue-common/src/datasources/drivers/interbase/Schema/Discovery/Introspection.py
2005-02-11 15:34:54 UTC (rev 7006)
+++
trunk/gnue-common/src/datasources/drivers/interbase/Schema/Discovery/Introspection.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -57,7 +57,7 @@
no element could be found.
"""
- gDebug (3, "Looking for '%s' of type '%s'" % (name, type))
+ gDebug (9, "Looking for '%s' of type '%s'" % (name, type))
result = []
cond = ["rdb$system_flag = 0"]
Modified:
trunk/gnue-common/src/datasources/drivers/interbase/interbase/Connection.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/interbase/interbase/Connection.py
2005-02-11 15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/datasources/drivers/interbase/interbase/Connection.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -85,7 +85,7 @@
def connect(self, connectData={}):
- gDebug (1, "Interbase database driver initializing")
+ gDebug (9, "Interbase database driver initializing")
try:
ib_encoding = ib_encTable [self._encoding]
@@ -97,7 +97,7 @@
ib_encoding = ''
if ib_encoding:
- gDebug (1, u_("Setting interbase client_encoding to %(new)s (%(old)s)") \
+ gDebug (9, u_("Setting interbase client_encoding to %(new)s (%(old)s)") \
% {'new': ib_encoding, 'old': self._encoding})
try:
Modified: trunk/gnue-common/src/datasources/drivers/ldap/Driver.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/ldap/Driver.py 2005-02-11
15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/datasources/drivers/ldap/Driver.py 2005-02-11
16:18:59 UTC (rev 7007)
@@ -120,7 +120,7 @@
def remove(self,dn):
- GDebug.printMesg(6, 'remove entry dn=%s' % dn)
+ GDebug.printMesg(9, 'remove entry dn=%s' % dn)
self._ldapCon.delete_s(dn)
@@ -138,7 +138,7 @@
# create new DN
dn="%s=%s,%s,%s" % (pk_field,pk_value,searchdn,self._basedn)
- GDebug.printMesg(6, 'add new entry dn=%s fields=%s' % (dn,modlist))
+ GDebug.printMesg(9, 'add new entry dn=%s fields=%s' % (dn,modlist))
self._ldapCon.add_s(dn,modlist)
@@ -147,7 +147,7 @@
# build new DN
newdn="%s=%s,%s,%s" % (pk_field,pk_value,searchdn,self._basedn)
- GDebug.printMesg(6, 'FQDN rename operation change fqdn=%s -> %s' % \
+ GDebug.printMesg(9, 'FQDN rename operation change fqdn=%s -> %s' % \
(dn,newdn))
dataCon.modrdn_s(dn,newdn)
@@ -165,7 +165,7 @@
modlist.append((ldap.MOD_REPLACE,f,values))
- GDebug.printMesg(6, 'modified entry dn=%s fields=%s' % (dn,modlist))
+ GDebug.printMesg(9, 'modified entry dn=%s fields=%s' % (dn,modlist))
self._ldapCon.modify_s(dn,modlist)
@@ -203,7 +203,7 @@
if 1==1:
# try:
if self._deleteFlag:
- GDebug.printMesg(5, 'LDAP database driver: Instance deleted')
+ GDebug.printMesg(9, 'LDAP database driver: Instance deleted')
# TODO: check result
dataCon.remove(self._fqdn)
@@ -218,7 +218,7 @@
self._fields[primarykey],
searchdn)
- GDebug.printMesg(5, 'LDAP database driver: new Instance ' + \
+ GDebug.printMesg(9, 'LDAP database driver: new Instance ' + \
'created and inserted')
elif self._updateFlag:
@@ -244,7 +244,7 @@
self._fields[primarykey],
searchdn)
- GDebug.printMesg(5, 'LDAP database driver: Instance updated')
+ GDebug.printMesg(9, 'LDAP database driver: Instance updated')
## except ldap.INVALID_SYNTAX:
@@ -277,7 +277,7 @@
# Populate field names
self._fieldNames = self._dataObject.getFields(self._dataObject.table)
- GDebug.printMesg(5, 'ResultSet created')
+ GDebug.printMesg(9, 'ResultSet created')
def _loadNextRecord(self):
@@ -291,7 +291,7 @@
except IndexError,TypeError:
return
- GDebug.printMesg(8, 'Add record %s with data %s' % (dn,data))
+ GDebug.printMesg(9, 'Add record %s with data %s' % (dn,data))
record=self._recordSetClass(parent=self,initialData=data)
@@ -381,13 +381,13 @@
def __init__(self):
GDataObjects.DataObject.__init__(self)
- GDebug.printMesg (1,"LDAP database driver backend initializing")
+ GDebug.printMesg (9,"LDAP database driver backend initializing")
self._resultSetClass = LDAP_ResultSet
self._DatabaseError = ldap.LDAPError
def connect(self, connectData={}):
- GDebug.printMesg(1,"LDAP database driver connecting...")
+ GDebug.printMesg(9,"LDAP database driver connecting...")
try:
@@ -395,14 +395,14 @@
uri = "ldap://%s:%s/" % (connectData['host'],connectData['port'])
- GDebug.printMesg(3,"Initialize connection to %s." % uri)
+ GDebug.printMesg(9,"Initialize connection to %s." % uri)
ldapCon = ldap.initialize(uri,
trace_level=0,
trace_file=sys.stdout)
else:
- GDebug.printMesg(3,"Open connection to %s." % connectData['host'])
+ GDebug.printMesg(9,"Open connection to %s." % connectData['host'])
if connectData.has_key("port"):
@@ -412,7 +412,7 @@
ldapCon = ldap.open(connectData['host'])
- GDebug.printMesg (5,"Connection established.")
+ GDebug.printMesg (9,"Connection established.")
except ldap.LDAPError , msg:
@@ -424,9 +424,9 @@
# a the moment python-ldap supports SIMPLE_AUTH only
#
- GDebug.printMesg(3,"Authentificate against LDAP server")
+ GDebug.printMesg(9,"Authentificate against LDAP server")
- GDebug.printMesg(3,"User '%s' Password '%s' " % \
+ GDebug.printMesg(9,"User '%s' Password '%s' " % \
(connectData['_username'],
connectData['_password']))
@@ -439,7 +439,7 @@
ldapCon.simple_bind_s(connectData['_username'],
connectData['_password'])
- GDebug.printMesg (5,"Successfully bound to LDAP server.")
+ GDebug.printMesg (9,"Successfully bound to LDAP server.")
except:
@@ -480,7 +480,7 @@
else:
scope=ldap.SCOPE_ONELEVEL
- GDebug.printMesg(3,"Wrong setting for scope parameter '%s'"\
+ GDebug.printMesg(1,"Wrong setting for scope parameter '%s'"\
% connectData['scope'])
self._dataConnection = LDAP_DataConnection(ldapCon,
@@ -506,7 +506,7 @@
query = self.__conditionToLDAPQuery(None,cond._children[0])
- GDebug.printMesg(7,'Full query in : %s' % query)
+ GDebug.printMesg(3,'Full query in : %s' % query)
return query
@@ -601,7 +601,7 @@
seperator=", "
count = count - 2
- GDebug.printMesg (5,"Converting tablename '%s' into search DN '%s'." % \
+ GDebug.printMesg (9,"Converting tablename '%s' into search DN '%s'." % \
(tablename,searchdn))
return searchdn
@@ -619,24 +619,24 @@
filter = ""
if conditions:
- GDebug.printMesg (5,"Setting Conditions ...")
+ GDebug.printMesg (9,"Setting Conditions ...")
filter=self._buildQuery(conditions)
- GDebug.printMesg (6," %s -> %s" % (conditions, filter))
+ GDebug.printMesg (9," %s -> %s" % (conditions, filter))
if hasattr(self,"order_by"):
- GDebug.printMesg (5,"FIXME: Sorting for LDAP not implemented "+\
+ GDebug.printMesg (1,"FIXME: Sorting for LDAP not implemented "+\
"(order_by='%s')" % self.order_by)
if not hasattr(self,"primarykey"):
self.primarykey = 'cn'
- GDebug.printMesg (5,"Use '%s' as FQDN base field" %\
+ GDebug.printMesg (9,"Use '%s' as FQDN base field" %\
self.primarykey)
try:
- GDebug.printMesg (0,"Started search for matching LDAP entries " +\
+ GDebug.printMesg (9,"Started search for matching LDAP entries " +\
"(DN=%s,Filter=%s)" % (searchdn , filter))
cursor=self._dataConnection.search(searchdn, filter, self.primarykey)
@@ -661,10 +661,10 @@
# through the _post method of the RecordSet class.
def commit(self):
- GDebug.printMesg (5,"LDAP database driver: fake commit")
+ GDebug.printMesg (9,"LDAP database driver: fake commit")
def rollback(self):
- GDebug.printMesg (5,"LDAP database driver: fake rollback")
+ GDebug.printMesg (9,"LDAP database driver: fake rollback")
Modified: trunk/gnue-common/src/datasources/drivers/mysql/mysql/Connection.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/mysql/mysql/Connection.py
2005-02-11 15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/datasources/drivers/mysql/mysql/Connection.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -70,7 +70,7 @@
}
def connect(self, connectData={}):
- gDebug (1,"Mysql database driver initializing")
+ gDebug (9,"Mysql database driver initializing")
# 1. just allow string type username/password 2. None -> ''
user = connectData ['_username'] or ''
Modified: trunk/gnue-common/src/datasources/drivers/odbc/wodbc/Connection.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/odbc/wodbc/Connection.py
2005-02-11 15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/datasources/drivers/odbc/wodbc/Connection.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -62,7 +62,7 @@
elif self._updateFlag:
statement = self._buildUpdateStatement()
- GDebug.printMesg(5, "_postChanges: statement=%s" % statement)
+ GDebug.printMesg(9, "_postChanges: statement=%s" % statement)
try:
self._parent._update_cursor.execute(statement)
@@ -187,7 +187,7 @@
self._primaryIdField = None
self._primaryIdFormat = "__gnue__ = '%s'"
- GDebug.printMesg(5, 'ResultSet created')
+ GDebug.printMesg(9, 'ResultSet created')
def _loadNextRecord(self):
if self._cursor:
@@ -245,7 +245,7 @@
def __init__(self, strictQueryCount=1):
GDataObjects.DataObject.__init__(self)
- GDebug.printMesg (1,"DB-SIG database driver backend initializing")
+ GDebug.printMesg (9,"DB-SIG database driver backend initializing")
self._resultSetClass = ODBC_ResultSet
self._DatabaseError = None
@@ -259,7 +259,7 @@
def connect(self, connectData={}):
- GDebug.printMesg(1,"ODBC database driver initializing")
+ GDebug.printMesg(9,"ODBC database driver initializing")
self._DatabaseError = odbc.error
try:
@@ -335,12 +335,12 @@
def _buildQueryCount(self, conditions={}):
q = "SELECT count(*) FROM %s%s" % (self.table,
self._conditionToSQL(conditions))
- GDebug.printMesg(5,q)
+ GDebug.printMesg(9,q)
return q
def commit(self):
- GDebug.printMesg (5,"DB-SIG database driver: commit()")
+ GDebug.printMesg (9,"DB-SIG database driver: commit()")
try:
self.native.commit()
@@ -350,7 +350,7 @@
self._beginTransaction()
def rollback(self):
- GDebug.printMesg (5,"DB-SIG database driver: rollback()")
+ GDebug.printMesg (9,"DB-SIG database driver: rollback()")
try:
self.native.rollback()
@@ -384,7 +384,7 @@
where = " WHERE (%s)" % (self.__conditionToSQL (cond._children[0]))
- GDebug.printMesg(5, where)
+ GDebug.printMesg(9, where)
return where
# Used internally by _conditionToSQL
@@ -439,7 +439,7 @@
class ODBC_DataObject_Object(ODBC_DataObject):
def _buildQuery(self, conditions={}):
- GDebug.printMesg(7,'Implicit Fields: %s' % self._fieldReferences)
+ GDebug.printMesg(9,'Implicit Fields: %s' % self._fieldReferences)
if len(self._fieldReferences):
q = "SELECT %s FROM %s%s" % \
(string.join(self._fieldReferences.keys(),","), self.table,
@@ -450,7 +450,7 @@
if hasattr(self,'order_by'):
q = "%s ORDER BY %s " % (q, self.order_by)
- GDebug.printMesg(5,q)
+ GDebug.printMesg(9,q)
return q
Modified: trunk/gnue-common/src/datasources/drivers/odbc/wodbc/DataObject.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/odbc/wodbc/DataObject.py
2005-02-11 15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/datasources/drivers/odbc/wodbc/DataObject.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -59,7 +59,7 @@
elif self._updateFlag:
statement = self._buildUpdateStatement()
- GDebug.printMesg(5, "_postChanges: statement=%s" % statement)
+ GDebug.printMesg(9, "_postChanges: statement=%s" % statement)
try:
self._parent._update_cursor.execute(statement)
@@ -184,7 +184,7 @@
self._primaryIdField = None
self._primaryIdFormat = "__gnue__ = '%s'"
- GDebug.printMesg(5, 'ResultSet created')
+ GDebug.printMesg(9, 'ResultSet created')
def _loadNextRecord(self):
if self._cursor:
@@ -242,7 +242,7 @@
def __init__(self, strictQueryCount=1):
GDataObjects.DataObject.__init__(self)
- GDebug.printMesg (1,"DB-SIG database driver backend initializing")
+ GDebug.printMesg (9,"DB-SIG database driver backend initializing")
self._resultSetClass = ODBC_ResultSet
self._DatabaseError = None
@@ -256,7 +256,7 @@
def connect(self, connectData={}):
- GDebug.printMesg(1,"ODBC database driver initializing")
+ GDebug.printMesg(9,"ODBC database driver initializing")
self._DatabaseError = odbc.error
try:
@@ -332,12 +332,12 @@
def _buildQueryCount(self, conditions={}):
q = "SELECT count(*) FROM %s%s" % (self.table,
self._conditionToSQL(conditions))
- GDebug.printMesg(5,q)
+ GDebug.printMesg(9,q)
return q
def commit(self):
- GDebug.printMesg (5,"DB-SIG database driver: commit()")
+ GDebug.printMesg (9,"DB-SIG database driver: commit()")
try:
self._dataConnection.commit()
@@ -347,7 +347,7 @@
self._beginTransaction()
def rollback(self):
- GDebug.printMesg (5,"DB-SIG database driver: rollback()")
+ GDebug.printMesg (9,"DB-SIG database driver: rollback()")
try:
self._dataConnection.rollback()
@@ -381,7 +381,7 @@
where = " WHERE (%s)" % (self.__conditionToSQL (cond._children[0]))
- GDebug.printMesg(5, where)
+ GDebug.printMesg(9, where)
return where
# Used internally by _conditionToSQL
@@ -438,7 +438,7 @@
class ODBC_DataObject_Object(ODBC_DataObject):
def _buildQuery(self, conditions={}):
- GDebug.printMesg(7,'Implicit Fields: %s' % self._fieldReferences)
+ GDebug.printMesg(9,'Implicit Fields: %s' % self._fieldReferences)
if len(self._fieldReferences):
q = "SELECT %s FROM %s%s" % \
(string.join(self._fieldReferences.keys(),","), self.table,
@@ -449,7 +449,7 @@
if hasattr(self,'order_by'):
q = "%s ORDER BY %s " % (q, self.order_by)
- GDebug.printMesg(5,q)
+ GDebug.printMesg(9,q)
return q
Modified: trunk/gnue-common/src/datasources/drivers/odbc/wodbc/RecordSet.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/odbc/wodbc/RecordSet.py
2005-02-11 15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/datasources/drivers/odbc/wodbc/RecordSet.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -59,7 +59,7 @@
elif self._updateFlag:
statement = self._buildUpdateStatement()
- GDebug.printMesg(5, "_postChanges: statement=%s" % statement)
+ GDebug.printMesg(9, "_postChanges: statement=%s" % statement)
try:
self._parent._update_cursor.execute(statement)
@@ -184,7 +184,7 @@
self._primaryIdField = None
self._primaryIdFormat = "__gnue__ = '%s'"
- GDebug.printMesg(5, 'ResultSet created')
+ GDebug.printMesg(9, 'ResultSet created')
def _loadNextRecord(self):
if self._cursor:
@@ -242,7 +242,7 @@
def __init__(self, strictQueryCount=1):
GDataObjects.DataObject.__init__(self)
- GDebug.printMesg (1,"DB-SIG database driver backend initializing")
+ GDebug.printMesg (9,"DB-SIG database driver backend initializing")
self._resultSetClass = ODBC_ResultSet
self._DatabaseError = None
@@ -256,7 +256,7 @@
def connect(self, connectData={}):
- GDebug.printMesg(1,"ODBC database driver initializing")
+ GDebug.printMesg(9,"ODBC database driver initializing")
self._DatabaseError = odbc.error
try:
@@ -332,12 +332,12 @@
def _buildQueryCount(self, conditions={}):
q = "SELECT count(*) FROM %s%s" % (self.table,
self._conditionToSQL(conditions))
- GDebug.printMesg(5,q)
+ GDebug.printMesg(9,q)
return q
def commit(self):
- GDebug.printMesg (5,"DB-SIG database driver: commit()")
+ GDebug.printMesg (9,"DB-SIG database driver: commit()")
try:
self._dataConnection.commit()
@@ -347,7 +347,7 @@
self._beginTransaction()
def rollback(self):
- GDebug.printMesg (5,"DB-SIG database driver: rollback()")
+ GDebug.printMesg (9,"DB-SIG database driver: rollback()")
try:
self._dataConnection.rollback()
@@ -381,7 +381,7 @@
where = " WHERE (%s)" % (self.__conditionToSQL (cond._children[0]))
- GDebug.printMesg(5, where)
+ GDebug.printMesg(9, where)
return where
# Used internally by _conditionToSQL
@@ -437,7 +437,7 @@
class ODBC_DataObject_Object(ODBC_DataObject):
def _buildQuery(self, conditions={}):
- GDebug.printMesg(7,'Implicit Fields: %s' % self._fieldReferences)
+ GDebug.printMesg(9,'Implicit Fields: %s' % self._fieldReferences)
if len(self._fieldReferences):
q = "SELECT %s FROM %s%s" % \
(string.join(self._fieldReferences.keys(),","), self.table,
@@ -448,7 +448,7 @@
if hasattr(self,'order_by'):
q = "%s ORDER BY %s " % (q, self.order_by)
- GDebug.printMesg(5,q)
+ GDebug.printMesg(9,q)
return q
Modified: trunk/gnue-common/src/datasources/drivers/odbc/wodbc/ResultSet.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/odbc/wodbc/ResultSet.py
2005-02-11 15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/datasources/drivers/odbc/wodbc/ResultSet.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -59,7 +59,7 @@
elif self._updateFlag:
statement = self._buildUpdateStatement()
- GDebug.printMesg(5, "_postChanges: statement=%s" % statement)
+ GDebug.printMesg(9, "_postChanges: statement=%s" % statement)
try:
self._parent._update_cursor.execute(statement)
@@ -184,7 +184,7 @@
self._primaryIdField = None
self._primaryIdFormat = "__gnue__ = '%s'"
- GDebug.printMesg(5, 'ResultSet created')
+ GDebug.printMesg(9, 'ResultSet created')
def _loadNextRecord(self):
if self._cursor:
@@ -242,7 +242,7 @@
def __init__(self, strictQueryCount=1):
GDataObjects.DataObject.__init__(self)
- GDebug.printMesg (1,"DB-SIG database driver backend initializing")
+ GDebug.printMesg (9,"DB-SIG database driver backend initializing")
self._resultSetClass = ODBC_ResultSet
self._DatabaseError = None
@@ -256,7 +256,7 @@
def connect(self, connectData={}):
- GDebug.printMesg(1,"ODBC database driver initializing")
+ GDebug.printMesg(9,"ODBC database driver initializing")
self._DatabaseError = odbc.error
try:
@@ -332,12 +332,12 @@
def _buildQueryCount(self, conditions={}):
q = "SELECT count(*) FROM %s%s" % (self.table,
self._conditionToSQL(conditions))
- GDebug.printMesg(5,q)
+ GDebug.printMesg(9,q)
return q
def commit(self):
- GDebug.printMesg (5,"DB-SIG database driver: commit()")
+ GDebug.printMesg (9,"DB-SIG database driver: commit()")
try:
self._dataConnection.commit()
@@ -347,7 +347,7 @@
self._beginTransaction()
def rollback(self):
- GDebug.printMesg (5,"DB-SIG database driver: rollback()")
+ GDebug.printMesg (9,"DB-SIG database driver: rollback()")
try:
self._dataConnection.rollback()
@@ -381,7 +381,7 @@
where = " WHERE (%s)" % (self.__conditionToSQL (cond._children[0]))
- GDebug.printMesg(5, where)
+ GDebug.printMesg(9, where)
return where
# Used internally by _conditionToSQL
@@ -436,7 +436,7 @@
class ODBC_DataObject_Object(ODBC_DataObject):
def _buildQuery(self, conditions={}):
- GDebug.printMesg(7,'Implicit Fields: %s' % self._fieldReferences)
+ GDebug.printMesg(9,'Implicit Fields: %s' % self._fieldReferences)
if len(self._fieldReferences):
q = "SELECT %s FROM %s%s" % \
(string.join(self._fieldReferences.keys(),","), self.table,
@@ -447,7 +447,7 @@
if hasattr(self,'order_by'):
q = "%s ORDER BY %s " % (q, self.order_by)
- GDebug.printMesg(5,q)
+ GDebug.printMesg(9,q)
return q
Modified: trunk/gnue-common/src/datasources/drivers/oracle/Base/Connection.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/oracle/Base/Connection.py
2005-02-11 15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/datasources/drivers/oracle/Base/Connection.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -60,7 +60,7 @@
#
# Connect to database
def connect(self, connectData={}):
- gDebug (1,"Oracle database driver initializing")
+ gDebug (9,"Oracle database driver initializing")
if not hasattr(self,'_DatabaseError'):
self._DatabaseError = self._driver.DatabaseError
Modified: trunk/gnue-common/src/datasources/drivers/oracle/Base/DataObject.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/oracle/Base/DataObject.py
2005-02-11 15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/datasources/drivers/oracle/Base/DataObject.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -54,10 +54,10 @@
self._primaryIdSelect = "ROWIDTOCHAR(ROWID) as GNUE__ROWID__"
self._primaryIdField = "gnue__rowid__" # Keep this lowercase!!!
self._primaryIdFormat = "ROWID = CHARTOROWID('%s')"
- gDebug(5,'View %s is using ROWID identifier' % self.table)
+ gDebug(9,'View %s is using ROWID identifier' % self.table)
except self._DatabaseError:
- gDebug (5, 'View %s has no internal ROWID' % self.table)
+ gDebug (1, 'View %s has no internal ROWID' % self.table)
class DataObject_SQL(_Base, DBSIG2.DataObject_SQL):
pass
Modified:
trunk/gnue-common/src/datasources/drivers/oracle/Schema/Discovery/Introspection.py
===================================================================
---
trunk/gnue-common/src/datasources/drivers/oracle/Schema/Discovery/Introspection.py
2005-02-11 15:34:54 UTC (rev 7006)
+++
trunk/gnue-common/src/datasources/drivers/oracle/Schema/Discovery/Introspection.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -33,7 +33,6 @@
import sys
from gnue.common.apps import GDebug, GConfig
-from gnue.common.apps import GDebug, GConfig
from gnue.common.datasources import GIntrospection
class Introspection(GIntrospection.Introspection):
@@ -85,7 +84,7 @@
% (string.join(where_type,"','"), where_user) + \
" order by table_name "
- GDebug.printMesg(5,statement)
+ GDebug.printMesg(3,statement)
cursor = self._connection.native.cursor()
cursor.execute(statement)
@@ -115,7 +114,7 @@
" from all_catalog where %s " \
% (where)
- GDebug.printMesg(5,statement)
+ GDebug.printMesg(3,statement)
cursor = self._connection.native.cursor()
cursor.execute(statement)
@@ -146,7 +145,7 @@
"from all_synonyms " + \
"where owner = '%s' and synonym_name='%s'" % (owner, name)
- GDebug.printMesg(5,statement)
+ GDebug.printMesg(3,statement)
cursor.execute(statement)
rs = cursor.fetchone()
@@ -163,7 +162,7 @@
"where owner = '%s' and table_name = '%s' " % (owner, name) + \
"order by column_id"
- GDebug.printMesg(5,statement)
+ GDebug.printMesg(3,statement)
cursor.execute(statement)
Modified:
trunk/gnue-common/src/datasources/drivers/postgresql/Base/Connection.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/postgresql/Base/Connection.py
2005-02-11 15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/datasources/drivers/postgresql/Base/Connection.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -66,7 +66,7 @@
except:
self._DatabaseError = self._driver.DatabaseError
- gDebug (1, "Postgresql database driver initializing")
+ gDebug (9, "Postgresql database driver initializing")
try:
port = connectData.get ('port', '5432')
@@ -96,7 +96,7 @@
dtfmt = connectData.get ('datetimeformat', "%Y-%m-%d %H:%M:%S")
self._dateTimeFormat = "'%s'" % dtfmt
- gDebug (1, "datetime-format set to %s" % self._dateTimeFormat)
+ gDebug (9, "datetime-format set to %s" % self._dateTimeFormat)
# FIXME: Why isn't this generally done for any new connection?
self._beginTransaction ()
Modified:
trunk/gnue-common/src/datasources/drivers/postgresql/pygresql/Driver.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/postgresql/pygresql/Driver.py
2005-02-11 15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/datasources/drivers/postgresql/pygresql/Driver.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -46,7 +46,7 @@
_DatabaseError = pgdb.Error
def connect(self, connectData={}):
- GDebug.printMesg(1,"Postgresql database driver initializing")
+ GDebug.printMesg(9,"Postgresql database driver initializing")
try:
self.native = pgdb.connect(user=connectData['_username'],
password=connectData['_password'],
@@ -59,7 +59,7 @@
if connectData.has_key ('encoding'):
encoding = connectData['encoding']
- GDebug.printMesg(1,'Setting postgresql client_encoding to %s' % encoding)
+ GDebug.printMesg(9,'Setting postgresql client_encoding to %s' % encoding)
self.sql ("SET CLIENT_ENCODING TO '%s'" % encoding)
self._pg_encoding = encoding
else:
Modified: trunk/gnue-common/src/datasources/drivers/sapdb/sapdb/Connection.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/sapdb/sapdb/Connection.py
2005-02-11 15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/datasources/drivers/sapdb/sapdb/Connection.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -64,7 +64,7 @@
"""
"""
- gDebug (1, "SAP database driver initializing")
+ gDebug (9, "SAP database driver initializing")
try:
options = {'autocommit': 'off'}
Modified:
trunk/gnue-common/src/datasources/drivers/special/configfile/Connection.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/special/configfile/Connection.py
2005-02-11 15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/datasources/drivers/special/configfile/Connection.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -69,7 +69,7 @@
_DatabaseError = Configfile_Error
def connect(self, connectData={}):
- GDebug.printMesg(1,"Configfile database driver connecting...")
+ GDebug.printMesg(9,"Configfile database driver connecting...")
try:
# get filename
if connectData.has_key("filename"):
Modified:
trunk/gnue-common/src/datasources/drivers/special/configfile/DataObject.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/special/configfile/DataObject.py
2005-02-11 15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/datasources/drivers/special/configfile/DataObject.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -65,7 +65,7 @@
def __init__(self, connection):
DataObject.__init__(self, connection)
- GDebug.printMesg (1,"Configfile database driver backend initializing")
+ GDebug.printMesg (9,"Configfile database driver backend initializing")
self._resultSetClass = Configfile_ResultSet
# never load an empty results
@@ -98,7 +98,7 @@
return rs
def commit(self):
- GDebug.printMesg (5,"Configfile database driver: commit()")
+ GDebug.printMesg (9,"Configfile database driver: commit()")
try:
file=open(self._connection._filename,"w+")
self._dataConnection.write(file)
@@ -107,7 +107,7 @@
raise GDataObjects.ConnectionError, value
def rollback(self):
- GDebug.printMesg (5,"Configfile database driver: rollback()")
+ GDebug.printMesg (9,"Configfile database driver: rollback()")
return
### The folowing methods are not working
Modified:
trunk/gnue-common/src/datasources/drivers/special/configfile/RecordSet.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/special/configfile/RecordSet.py
2005-02-11 15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/datasources/drivers/special/configfile/RecordSet.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -48,13 +48,13 @@
# delete
if self._deleteFlag:
- GDebug.printMesg(5, 'Configfile database driver: Section removed')
+ GDebug.printMesg(9, 'Configfile database driver: Section removed')
# section should be removed
dataCon.remove_section(section)
# insert
if self._insertFlag:
- GDebug.printMesg(5, 'Configfile database driver: new Section '+\
+ GDebug.printMesg(9, 'Configfile database driver: new Section '+\
'created and inserted')
# check if name already exists
Modified:
trunk/gnue-common/src/datasources/drivers/special/configfile/ResultSet.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/special/configfile/ResultSet.py
2005-02-11 15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/datasources/drivers/special/configfile/ResultSet.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -42,7 +42,7 @@
ResultSet.__init__(self, dataObject, cursor, defaultValues,
masterRecordSet)
self._recordSetClass = Configfile_RecordSet
- GDebug.printMesg(5, 'ResultSet created')
+ GDebug.printMesg(9, 'ResultSet created')
def _loadNextRecord(self):
Modified: trunk/gnue-common/src/datasources/drivers/special/static/Connection.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/special/static/Connection.py
2005-02-11 15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/datasources/drivers/special/static/Connection.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -29,7 +29,7 @@
__all__ = ['Connection']
-from gnue.common.apps import GDebug, GConfig
+from gnue.common.apps import GConfig
from gnue.common.datasources.GDataObjects import *
from DataObject import *
Modified: trunk/gnue-common/src/datasources/drivers/special/static/DataObject.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/special/static/DataObject.py
2005-02-11 15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/datasources/drivers/special/static/DataObject.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -30,7 +30,6 @@
__all__ = ['STATIC_DataObject']
-from gnue.common.apps import GDebug
from gnue.common.datasources.GDataObjects import DataObject
from ResultSet import STATIC_ResultSet
Modified: trunk/gnue-common/src/datasources/drivers/special/static/RecordSet.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/special/static/RecordSet.py
2005-02-11 15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/datasources/drivers/special/static/RecordSet.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -30,7 +30,6 @@
__all__ = ['STATIC_RecordSet']
-from gnue.common.apps import GDebug
import string
from gnue.common.datasources.GDataObjects import *
Modified: trunk/gnue-common/src/datasources/drivers/special/static/ResultSet.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/special/static/ResultSet.py
2005-02-11 15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/datasources/drivers/special/static/ResultSet.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -30,7 +30,6 @@
__all__ = ["STATIC_ResultSet"]
-from gnue.common.apps import GDebug
from gnue.common.datasources.GDataObjects import *
from RecordSet import STATIC_RecordSet
Modified: trunk/gnue-common/src/datasources/drivers/special/unbound/Driver.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/special/unbound/Driver.py
2005-02-11 15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/datasources/drivers/special/unbound/Driver.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -28,7 +28,6 @@
# Primarily used by unbound forms blocks
#
-from gnue.common.apps import GDebug
import string
from gnue.common.datasources.GDataObjects import *
Modified: trunk/gnue-common/src/datasources/drivers/sqlite/sqlite/Connection.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/sqlite/sqlite/Connection.py
2005-02-11 15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/datasources/drivers/sqlite/sqlite/Connection.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -113,7 +113,7 @@
@param connectData: dictionary with parameters used for the connection
"""
- gDebug (1, "SQLite database driver initializing <%s>")
+ gDebug (9, "SQLite database driver initializing <%s>")
if not hasattr (self, '_DatabaseError'):
try:
Modified:
trunk/gnue-common/src/datasources/drivers/sqlrelay/sqlrelay/Connection.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/sqlrelay/sqlrelay/Connection.py
2005-02-11 15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/datasources/drivers/sqlrelay/sqlrelay/Connection.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -72,7 +72,7 @@
def connect(self, connectData={}):
- GDebug.printMesg(1,"SQLRelay database driver initializing")
+ GDebug.printMesg(9,"SQLRelay database driver initializing")
host = connectData['host']
try:
Modified:
trunk/gnue-common/src/datasources/drivers/sqlrelay/sqlrelay/DataObject.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/sqlrelay/sqlrelay/DataObject.py
2005-02-11 15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/datasources/drivers/sqlrelay/sqlrelay/DataObject.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -73,7 +73,7 @@
def connect(self, connectData={}):
- GDebug.printMesg(1,"SQLRelay database driver initializing")
+ GDebug.printMesg(9,"SQLRelay database driver initializing")
try:
host, port = string.split(connectData['host'],':')
Modified:
trunk/gnue-common/src/datasources/drivers/sqlrelay/sqlrelay/RecordSet.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/sqlrelay/sqlrelay/RecordSet.py
2005-02-11 15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/datasources/drivers/sqlrelay/sqlrelay/RecordSet.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -73,7 +73,7 @@
def connect(self, connectData={}):
- GDebug.printMesg(1,"SQLRelay database driver initializing")
+ GDebug.printMesg(9,"SQLRelay database driver initializing")
try:
host, port = string.split(connectData['host'],':')
Modified:
trunk/gnue-common/src/datasources/drivers/sqlrelay/sqlrelay/ResultSet.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/sqlrelay/sqlrelay/ResultSet.py
2005-02-11 15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/datasources/drivers/sqlrelay/sqlrelay/ResultSet.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -73,7 +73,7 @@
def connect(self, connectData={}):
- GDebug.printMesg(1,"SQLRelay database driver initializing")
+ GDebug.printMesg(9,"SQLRelay database driver initializing")
try:
host, port = string.split(connectData['host'],':')
Modified:
trunk/gnue-common/src/datasources/drivers/sybase/Schema/Discovery/Introspection.py
===================================================================
---
trunk/gnue-common/src/datasources/drivers/sybase/Schema/Discovery/Introspection.py
2005-02-11 15:34:54 UTC (rev 7006)
+++
trunk/gnue-common/src/datasources/drivers/sybase/Schema/Discovery/Introspection.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -32,8 +32,7 @@
from string import lower, join, split
import sys
-from gnue.common.apps import GDebug, GConfig
-from gnue.common.apps import GDebug, GConfig
+from gnue.common.apps import GConfig
from gnue.common.datasources import GIntrospection
class Introspection(GIntrospection.Introspection):
Modified: trunk/gnue-common/src/datasources/drivers/sybase/sybase/Connection.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/sybase/sybase/Connection.py
2005-02-11 15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/datasources/drivers/sybase/sybase/Connection.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -63,7 +63,7 @@
}
def connect(self, connectData):
- GDebug.printMesg(1,"Sybase database driver initializing")
+ GDebug.printMesg(9,"Sybase database driver initializing")
try:
if connectData.has_key('dbname'):
self.native = SIG2api.connect( \
Modified: trunk/gnue-common/src/datasources/drivers/sybase/sybase/DataObject.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/sybase/sybase/DataObject.py
2005-02-11 15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/datasources/drivers/sybase/sybase/DataObject.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -74,7 +74,7 @@
def connect(self, connectData={}):
- GDebug.printMesg(1,"Sybase database driver initializing")
+ GDebug.printMesg(9,"Sybase database driver initializing")
try:
if connectData.has_key('dbname'):
self._dataConnection = SIG2api.connect( \
Modified: trunk/gnue-common/src/datasources/drivers/sybase/sybase/RecordSet.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/sybase/sybase/RecordSet.py
2005-02-11 15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/datasources/drivers/sybase/sybase/RecordSet.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -74,7 +74,7 @@
def connect(self, connectData={}):
- GDebug.printMesg(1,"Sybase database driver initializing")
+ GDebug.printMesg(9,"Sybase database driver initializing")
try:
if connectData.has_key('dbname'):
self._dataConnection = SIG2api.connect( \
Modified: trunk/gnue-common/src/datasources/drivers/sybase/sybase/ResultSet.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/sybase/sybase/ResultSet.py
2005-02-11 15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/datasources/drivers/sybase/sybase/ResultSet.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -74,7 +74,7 @@
def connect(self, connectData={}):
- GDebug.printMesg(1,"Sybase database driver initializing")
+ GDebug.printMesg(9,"Sybase database driver initializing")
try:
if connectData.has_key('dbname'):
self._dataConnection = SIG2api.connect( \
Modified: trunk/gnue-common/src/definitions/GObjects.py
===================================================================
--- trunk/gnue-common/src/definitions/GObjects.py 2005-02-11 15:34:54 UTC
(rev 7006)
+++ trunk/gnue-common/src/definitions/GObjects.py 2005-02-11 16:18:59 UTC
(rev 7007)
@@ -135,7 +135,7 @@
inits = self._inits
if (len(inits) > phase) and inits[phase]:
- GDebug.printMesg(6,"%s: Init Phase %s" % (self._type, phase+1))
+ GDebug.printMesg(7,"%s: Init Phase %s" % (self._type, phase+1))
inits[phase]()
for child in self._children:
Modified: trunk/gnue-common/src/definitions/GParser.py
===================================================================
--- trunk/gnue-common/src/definitions/GParser.py 2005-02-11 15:34:54 UTC
(rev 7006)
+++ trunk/gnue-common/src/definitions/GParser.py 2005-02-11 16:18:59 UTC
(rev 7007)
@@ -162,7 +162,7 @@
object.walk(addAttributesWalker,attributes=attributes)
if initialize:
- gDebug (10, "Initializing the object tree starting at %s" %(object))
+ gDebug (7, "Initializing the object tree starting at %s" %(object))
object.phaseInit(dh._phaseInitCount)
@@ -292,7 +292,7 @@
#
# No namespace qualifier
#
- gDebug (50, "<%s>" % name)
+ gDebug (7, "<%s>" % name)
try:
baseAttrs = self.xmlElements[name].get('Attributes',{})
@@ -396,7 +396,7 @@
# namespace qualifier and we are masquerading
#
- gDebug (50, "<%s:%s>" % (ns,name))
+ gDebug (7, "<%s:%s>" % (ns,name))
for qattr in saxattrs.keys():
attrns, attr = qattr
@@ -487,7 +487,7 @@
inits = child._buildObject()
self._phaseInitCount = (inits != None and inits > self._phaseInitCount \
and inits or self._phaseInitCount)
- gDebug (50, "</%s>" % name)
+ gDebug (7, "</%s>" % name)
@@ -540,7 +540,7 @@
for key in self._loadedxmlattrs.keys():
if key[0] != '_':
rv.__dict__[key] = self._loadedxmlattrs[key]
- gDebug (5, ">>> Moving %s" % key)
+ gDebug (7, ">>> Moving %s" % key)
rv._buildObject()
else:
raise MarkupError, \
Modified: trunk/gnue-common/src/events/Event.py
===================================================================
--- trunk/gnue-common/src/events/Event.py 2005-02-11 15:34:54 UTC (rev
7006)
+++ trunk/gnue-common/src/events/Event.py 2005-02-11 16:18:59 UTC (rev
7007)
@@ -26,9 +26,6 @@
# NOTES:
#
-from gnue.common.apps import GDebug
-import string
-
#
# Basic event passed between items
#
Modified: trunk/gnue-common/src/events/EventAware.py
===================================================================
--- trunk/gnue-common/src/events/EventAware.py 2005-02-11 15:34:54 UTC (rev
7006)
+++ trunk/gnue-common/src/events/EventAware.py 2005-02-11 16:18:59 UTC (rev
7007)
@@ -26,11 +26,6 @@
# NOTES:
#
-# TODO: No longer needed?
-from gnue.common.apps import GDebug
-import string
-
-
#
# Base for an object that sends and receives events
#
Modified: trunk/gnue-common/src/events/EventController.py
===================================================================
--- trunk/gnue-common/src/events/EventController.py 2005-02-11 15:34:54 UTC
(rev 7006)
+++ trunk/gnue-common/src/events/EventController.py 2005-02-11 16:18:59 UTC
(rev 7007)
@@ -26,9 +26,6 @@
# NOTES:
#
-from gnue.common.apps import GDebug
-import string
-
from EventAware import EventAware
from Event import Event
@@ -107,7 +104,6 @@
handlers = handlers + self.__incomingEvents['__after__']
for handler in handlers:
- ## GDebug.printMesg(10, "Event: %s in %s" % (event.__event__, handler))
handler(event)
if event.__error__ or event.__dropped__:
break
Modified: trunk/gnue-common/src/formatting/BaseMask.py
===================================================================
--- trunk/gnue-common/src/formatting/BaseMask.py 2005-02-11 15:34:54 UTC
(rev 7006)
+++ trunk/gnue-common/src/formatting/BaseMask.py 2005-02-11 16:18:59 UTC
(rev 7007)
@@ -120,7 +120,7 @@
# Take a mask string and break it into its elements and map it to handlers
def parseMask(self, mask, edit=0):
- GDebug.printMesg(15,'parseMask("%s")' % mask)
+ GDebug.printMesg(7,'parseMask("%s")' % mask)
maskHandler = []
# Load a predefined mask, if that's what user specified
@@ -349,7 +349,7 @@
#
def processEdit (self, value, str, pos=0, replaces=0):
print "-"*50
- GDebug.printMesg(15,'processEdit(%s,%s,%s,%s)' % (value,str,pos,replaces))
+ GDebug.printMesg(7,'processEdit(%s,%s,%s,%s)' % (value,str,pos,replaces))
nv = value
if pos == len(nv):
@@ -357,7 +357,7 @@
else:
nv = "%s%s%s" % (nv[:pos],str,nv[pos+replaces:])
- GDebug.printMesg(15,"inputMaskPos=%s" % self.inputMaskPos)
+ GDebug.printMesg(7,"inputMaskPos=%s" % self.inputMaskPos)
print "pos=%s"%pos
@@ -402,7 +402,7 @@
self.cursor = self.indexToCursor(self.index)
print "after processEdit, index=%s;cursor=%s" % (self.index, self.cursor)
- GDebug.printMesg(15,"<< %s" % nv)
+ GDebug.printMesg(7,"<< %s" % nv)
return nv
Modified: trunk/gnue-common/src/formatting/DateMask.py
===================================================================
--- trunk/gnue-common/src/formatting/DateMask.py 2005-02-11 15:34:54 UTC
(rev 7006)
+++ trunk/gnue-common/src/formatting/DateMask.py 2005-02-11 16:18:59 UTC
(rev 7007)
@@ -127,7 +127,7 @@
def getFormattedInput(self, value, padding=""):
- GDebug.printMesg(15,'getFormattedInput(%s,%s)' % (value,padding))
+ GDebug.printMesg(7,'getFormattedInput(%s,%s)' % (value,padding))
print "**** Formattin dis puppy!"
val = self._buildDate(value, 0)
Modified: trunk/gnue-common/src/formatting/GTypecast.py
===================================================================
--- trunk/gnue-common/src/formatting/GTypecast.py 2005-02-11 15:34:54 UTC
(rev 7006)
+++ trunk/gnue-common/src/formatting/GTypecast.py 2005-02-11 16:18:59 UTC
(rev 7007)
@@ -32,7 +32,6 @@
import string
from types import UnicodeType
-from gnue.common.apps import GDebug
# Raised if a value cannot be typecasted
class TypecastError (ValueError):
Modified: trunk/gnue-common/src/formatting/NumberMask.py
===================================================================
--- trunk/gnue-common/src/formatting/NumberMask.py 2005-02-11 15:34:54 UTC
(rev 7006)
+++ trunk/gnue-common/src/formatting/NumberMask.py 2005-02-11 16:18:59 UTC
(rev 7007)
@@ -52,7 +52,6 @@
#
from BaseMask import BaseMask, MaskSection, Literal
-from gnue.common.apps import GDebug
from gnue.common.utils.GDateTime import GDateTime, InvalidDate
from FormatExceptions import *
Modified: trunk/gnue-common/src/formatting/TextMask.py
===================================================================
--- trunk/gnue-common/src/formatting/TextMask.py 2005-02-11 15:34:54 UTC
(rev 7006)
+++ trunk/gnue-common/src/formatting/TextMask.py 2005-02-11 16:18:59 UTC
(rev 7007)
@@ -41,7 +41,6 @@
#
from BaseMask import BaseMask, MaskSection, Literal
-from gnue.common.apps import GDebug
from gnue.common.utils.GDateTime import GDateTime, InvalidDate
from FormatExceptions import *
Modified: trunk/gnue-common/src/formatting/masks/Masks.py
===================================================================
--- trunk/gnue-common/src/formatting/masks/Masks.py 2005-02-11 15:34:54 UTC
(rev 7006)
+++ trunk/gnue-common/src/formatting/masks/Masks.py 2005-02-11 16:18:59 UTC
(rev 7007)
@@ -51,27 +51,27 @@
key = (numeric, date, mask)
try:
handler = self._inputMaskMap[key]
- gDebug(5,'Reusing existing mask for %s' % mask)
+ gDebug(7,'Reusing existing mask for %s' % mask)
except KeyError:
- gDebug(5,'Creating mask handler for %s' % mask)
+ gDebug(7,'Creating mask handler for %s' % mask)
handler = self._inputMaskMap[key] = _InputMask(mask, numeric, date)
return handler
def getFormatMask(self, mask, style="default", ):
try:
handler = self._maskMap[mask]
- gDebug(5,'Reusing existing mask for %s' % mask)
+ gDebug(7,'Reusing existing mask for %s' % mask)
except KeyError:
- gDebug(5,'Creating mask handler for %s' % mask)
+ gDebug(7,'Creating mask handler for %s' % mask)
handler = self._maskMap[mask] = None
return handler
def getValidationMask(self, mask, style="default", ):
try:
handler = self._maskMap[mask]
- gDebug(5,'Reusing existing mask for %s' % mask)
+ gDebug(7,'Reusing existing mask for %s' % mask)
except KeyError:
- gDebug(5,'Creating mask handler for %s' % mask)
+ gDebug(7,'Creating mask handler for %s' % mask)
handler = self._maskMap[mask] = None
return handler
@@ -82,4 +82,4 @@
library = MaskLibrary()
InputMask = library.getInputMask
FormatMask = library.getFormatMask
-ValidationMask = library.getValidationMask
\ No newline at end of file
+ValidationMask = library.getValidationMask
Modified: trunk/gnue-common/src/logic/GFormula.py
===================================================================
--- trunk/gnue-common/src/logic/GFormula.py 2005-02-11 15:34:54 UTC (rev
7006)
+++ trunk/gnue-common/src/logic/GFormula.py 2005-02-11 16:18:59 UTC (rev
7007)
@@ -320,7 +320,7 @@
for function in self._trigger[key]:
function(self)
else:
- GDebug.printMesg(10, "No triggers to fire")
+ GDebug.printMesg(7, "No triggers to fire")
else:
print self._type,": ",_("Invalid trigger "),key
Modified: trunk/gnue-common/src/logic/GTrigger.py
===================================================================
--- trunk/gnue-common/src/logic/GTrigger.py 2005-02-11 15:34:54 UTC (rev
7006)
+++ trunk/gnue-common/src/logic/GTrigger.py 2005-02-11 16:18:59 UTC (rev
7007)
@@ -314,7 +314,7 @@
if not ignoreAbort:
raise
else:
- GDebug.printMesg(10, "No triggers to fire")
+ GDebug.printMesg(7, "No triggers to fire")
else:
gDebug (0, "%s: %s %s" % (self._type, _("Invalid trigger "), key))
#print self._type,": ",_("Invalid trigger "),key
Modified: trunk/gnue-common/src/logic/NamespaceCore.py
===================================================================
--- trunk/gnue-common/src/logic/NamespaceCore.py 2005-02-11 15:34:54 UTC
(rev 7006)
+++ trunk/gnue-common/src/logic/NamespaceCore.py 2005-02-11 16:18:59 UTC
(rev 7007)
@@ -63,7 +63,7 @@
if objectTree:
self._globalNamespace[self._rname] =
self.constructTriggerObject(objectTree)
else:
- GDebug.printMesg(0,'GObjNamespace was passed an empty object tree')
+ GDebug.printMesg(1,'GObjNamespace was passed an empty object tree')
#
# constructTriggerObject
@@ -191,7 +191,7 @@
if self.__dict__[name]._triggerSet:
self.__dict__[name]._triggerSet(value)
else:
- GDebug.printMesg(0,'Trigger attempting to reset a form object')
+ GDebug.printMesg(1,'Trigger attempting to reset a form object')
else:
self.__dict__[name] = value
@@ -339,7 +339,7 @@
if self._properties[name]['set']:
self._properties[name]['set'](value)
else:
- GDebug.printMesg(0,'Attempt to set readonly property :%s' %(name))
+ GDebug.printMesg(1,'Attempt to set readonly property :%s' %(name))
else:
self.__dict__[name] = value
Modified: trunk/gnue-common/src/logic/adapters/ecmascript.py
===================================================================
--- trunk/gnue-common/src/logic/adapters/ecmascript.py 2005-02-11 15:34:54 UTC
(rev 7006)
+++ trunk/gnue-common/src/logic/adapters/ecmascript.py 2005-02-11 16:18:59 UTC
(rev 7007)
@@ -109,7 +109,7 @@
self._hname,
param,
self._name,param)
- GDebug.printMesg(3, "Adding code to ECMAscript namespace :'%s'" %
self._realcode)
+ GDebug.printMesg(8, "Adding code to ECMAscript namespace :'%s'" %
self._realcode)
# load code into context
try:
self._cx.eval_script(self._realcode)
@@ -164,7 +164,7 @@
self._realcode = '%s = function (%s) {%s};' % (self._name, param,
self._code);
- GDebug.printMesg(3, "Adding code to ECMAscript namespace :'%s'" %
self._realcode)
+ GDebug.printMesg(8, "Adding code to ECMAscript namespace :'%s'" %
self._realcode)
# load code into context
try:
self._cx.eval_script(self._realcode)
Modified: trunk/gnue-common/src/rpc/drivers/_helpers/AsyncSocketServer.py
===================================================================
--- trunk/gnue-common/src/rpc/drivers/_helpers/AsyncSocketServer.py
2005-02-11 15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/rpc/drivers/_helpers/AsyncSocketServer.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -36,9 +36,7 @@
import socket
import string
-from gnue.common.apps import GDebug
-
class AsyncSocketServer(Base.Server):
def __init__(self, bindings, params):
Modified: trunk/gnue-common/src/rpc/drivers/_helpers/DirectoryServer.py
===================================================================
--- trunk/gnue-common/src/rpc/drivers/_helpers/DirectoryServer.py
2005-02-11 15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/rpc/drivers/_helpers/DirectoryServer.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -60,9 +60,9 @@
# to our internal "service directory"
self.mapObjects(rpcdef,bindings)
- gDebug (3, 'XML-RPC Service Directory:\n * %s' % \
+ gDebug (8, 'XML-RPC Service Directory:\n * %s' % \
string.join(self.directory.keys(),'\n * '))
- gDebug (5,'XML-RPC Service Directory:\n%s' % \
+ gDebug (8,'XML-RPC Service Directory:\n%s' % \
self.directory.keys())
self._dispatchers=[self.methodDispatcher]
@@ -109,8 +109,8 @@
# the direct mapping
if bindings.has_key(object.binding):
- gDebug (3, 'GNURPC Binding Information:');
- gDebug (3, ' * %s is bound to \n * %s' % \
+ gDebug (8, 'GNURPC Binding Information:');
+ gDebug (8, ' * %s is bound to \n * %s' % \
(object.binding,bindings[object.binding]))
# for services create an "static" object
@@ -262,7 +262,7 @@
if not self.directory.has_key (method):
raise MethodNotFoundError, method
- gDebug (6, 'GNURPC Directory entry:\n (%s,%s,%s)' % \
+ gDebug (8, 'GNURPC Directory entry:\n (%s,%s,%s)' % \
(self.directory [method]['signature'],\
self.directory [method]['help'],\
self.directory [method]['binding']))
@@ -291,7 +291,7 @@
if rtype:
# check for empty results (not allowed for XMLRPC)
if (result==None) or (result==[None]):
- gDebug (3,'Transform result None into 1')
+ gDebug (8,'Transform result None into 1')
result=1
return result
@@ -353,7 +353,7 @@
mparts.reverse()
calltype=mparts[0]
calltype=calltype[:4]
- gDebug (7,'method %s has calling type %s' % (method,calltype))
+ gDebug (8,'method %s has calling type %s' % (method,calltype))
if calltype=='set_':
# setAttribut method
Modified: trunk/gnue-common/src/rpc/drivers/_helpers/ObjectEnabler.py
===================================================================
--- trunk/gnue-common/src/rpc/drivers/_helpers/ObjectEnabler.py 2005-02-11
15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/rpc/drivers/_helpers/ObjectEnabler.py 2005-02-11
16:18:59 UTC (rev 7007)
@@ -141,7 +141,7 @@
if rtype:
# check for empty results (not allowed for XMLRPC)
if result==None:
- GDebug.printMesg(3,'Transform result None into 1')
+ GDebug.printMesg(8,'Transform result None into 1')
result=1
return result
Modified: trunk/gnue-common/src/rpc/drivers/_helpers/ObjectLibrarian.py
===================================================================
--- trunk/gnue-common/src/rpc/drivers/_helpers/ObjectLibrarian.py
2005-02-11 15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/rpc/drivers/_helpers/ObjectLibrarian.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -118,7 +118,7 @@
if not hasattr(object,"_ObjectLibrarian__myGC"):
if object._ObjectLibrarian__lastusage + self.defaultTimeout < now:
deferenceObject(object)
- GDebug.printMesg(4,"Timeout reached for object %s" & object)
+ GDebug.printMesg(1,"Timeout reached for object %s" & object)
except:
pass
Modified: trunk/gnue-common/src/rpc/drivers/pyro/ClientAdapter.py
===================================================================
--- trunk/gnue-common/src/rpc/drivers/pyro/ClientAdapter.py 2005-02-11
15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/rpc/drivers/pyro/ClientAdapter.py 2005-02-11
16:18:59 UTC (rev 7007)
@@ -39,7 +39,7 @@
from gnue.common.rpc import GCommBase
from gnue.common.rpc import GComm
-from gnue.common.apps import GConfig, GDebug
+from gnue.common.apps import GConfig
from gnue import paths
import string, sys
Modified: trunk/gnue-common/src/rpc/drivers/pyro/ServerAdapter.py
===================================================================
--- trunk/gnue-common/src/rpc/drivers/pyro/ServerAdapter.py 2005-02-11
15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/rpc/drivers/pyro/ServerAdapter.py 2005-02-11
16:18:59 UTC (rev 7007)
@@ -102,9 +102,9 @@
# locate the name server
if not hasattr(self,'ns'):
locator = Pyro.naming.NameServerLocator()
- GDebug.printMesg(3,'PYRO: searching for Naming Service...')
+ GDebug.printMesg(9,'PYRO: searching for Naming Service...')
self.ns = locator.getNS()
- GDebug.printMesg(3,'Naming Service found at %s (%s) %s.' %
(self.ns.URI.address,
+ GDebug.printMesg(9,'Naming Service found at %s (%s) %s.' %
(self.ns.URI.address,
(Pyro.protocol.getHostname(self.ns.URI.address) or '??'),
self.ns.URI.port))
@@ -132,7 +132,7 @@
def serve(self):
# enter the service loop.
- GDebug.printMesg(3,'Starting pyro daemon loop.')
+ GDebug.printMesg(9,'Starting pyro daemon loop.')
try:
# daemon.setTimeout(5)
@@ -168,8 +168,8 @@
# the direct mapping
if bindings.has_key(object.binding):
- GDebug.printMesg(3,'GNURPC Binding Information:');
- GDebug.printMesg(3,' * %s is bound to \n * %s' % \
+ GDebug.printMesg(9,'GNURPC Binding Information:');
+ GDebug.printMesg(9,' * %s is bound to \n * %s' % \
(object.binding,bindings[object.binding]))
# for services create an "static" object
@@ -201,7 +201,7 @@
object._realbinding=getattr(parent._realbinding,\
object.name)
- GDebug.printMesg(8,'* %s is bound to \n * %s' % \
+ GDebug.printMesg(9,'* %s is bound to \n * %s' % \
(object._path,object._realbinding))
except:
tmsg = u_("GNURPC cannot bind service '%(name)s' to service "
@@ -244,7 +244,7 @@
if parent._type == 'RpService':
try:
bindto=getattr(parent._realbinding,object.name)
- GDebug.printMesg(8,'* %s is bound to \n * %s' % \
+ GDebug.printMesg(9,'* %s is bound to \n * %s' % \
(object._path,bindto))
except:
tmsg = u_("GNURPC cannot bind method/attribut '%(name)s' to "
@@ -430,7 +430,7 @@
mparts.reverse()
calltype=mparts[0]
calltype=calltype[:4]
- GDebug.printMesg(7,'method %s has calling type %s' %\
+ GDebug.printMesg(9,'method %s has calling type %s' %\
(method,calltype))
if calltype=='set_':
# setAttribut method
@@ -460,7 +460,7 @@
# check for empty results (not allowed for XMLRPC)
if (result==None) or (result==[None]):
- GDebug.printMesg(3,'Transform result None into 1')
+ GDebug.printMesg(9,'Transform result None into 1')
result=1
return result
Modified: trunk/gnue-common/src/rpc/drivers/soap/soappy/Driver.py
===================================================================
--- trunk/gnue-common/src/rpc/drivers/soap/soappy/Driver.py 2005-02-11
15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/rpc/drivers/soap/soappy/Driver.py 2005-02-11
16:18:59 UTC (rev 7007)
@@ -169,7 +169,7 @@
for i in self.directory.keys():
if i[0:tl]==type:
method="["+objhandle+"]"+i[tl:]
- GDebug.printMesg(1,'Method %s registered to py-xmlrpc ' \
+ GDebug.printMesg(9,'Method %s registered to py-xmlrpc ' \
% method +\
' internal directory.')
self.server.addMethods({method:None})
@@ -187,7 +187,7 @@
for i in self.directory.keys():
if i[0:tl]==type:
method="["+objhandle+"]"+i[tl:]
- GDebug.printMesg(1,'Method %s is deleted from py-xmlrpc ' \
+ GDebug.printMesg(9,'Method %s is deleted from py-xmlrpc ' \
% method +\
' internal directory.')
self.server.removeMethods({method:None})
Modified: trunk/gnue-common/src/rpc/drivers/xmlrpc/pw_xmlrpc/ServerAdapter.py
===================================================================
--- trunk/gnue-common/src/rpc/drivers/xmlrpc/pw_xmlrpc/ServerAdapter.py
2005-02-11 15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/rpc/drivers/xmlrpc/pw_xmlrpc/ServerAdapter.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -321,7 +321,7 @@
mparts.reverse ()
calltype = mparts [0]
calltype = calltype [:4]
- gDebug (7, 'method %s has calling type %s' % (method, calltype))
+ gDebug (9, 'method %s has calling type %s' % (method, calltype))
if calltype == 'set_':
# setAttribut method
@@ -352,7 +352,7 @@
# check for empty results (not allowed for XMLRPC)
if (result is None) or (result == [None]):
- gDebug (3, 'Transform result None into 1')
+ gDebug (9, 'Transform result None into 1')
result = 1
except:
@@ -370,7 +370,7 @@
for i in self.directory.keys():
if i[0:tl]==type:
method="["+objhandle+"]"+i[tl:]
- gDebug (1, 'Method %s registered to py-xmlrpc internal directory.' \
+ gDebug (9, 'Method %s registered to py-xmlrpc internal directory.' \
% method)
# self.server.addMethods({method:None})
@@ -387,7 +387,7 @@
for i in self.directory.keys():
if i[0:tl]==type:
method="["+objhandle+"]"+i[tl:]
- gDebug (1, 'Method %s is deleted from py-xmlrpc ' \
+ gDebug (9, 'Method %s is deleted from py-xmlrpc ' \
% method +\
' internal directory.')
# self.server.removeMethods({method:None})
@@ -412,7 +412,7 @@
class RequestHandler(BaseHTTPRequestHandler):
def log_message (self, format, *args):
- gDebug (1, "%s - - [%s] %s" % \
+ gDebug (9, "%s - - [%s] %s" % \
(self.address_string(), self.log_date_time_string(), format%args))
# override basic handle to test allowed host condition
Modified: trunk/gnue-common/src/rpc/drivers/xmlrpc/py_xmlrpc/ServerAdapter.py
===================================================================
--- trunk/gnue-common/src/rpc/drivers/xmlrpc/py_xmlrpc/ServerAdapter.py
2005-02-11 15:34:54 UTC (rev 7006)
+++ trunk/gnue-common/src/rpc/drivers/xmlrpc/py_xmlrpc/ServerAdapter.py
2005-02-11 16:18:59 UTC (rev 7007)
@@ -201,7 +201,7 @@
for i in self.directory.keys ():
if i[0:tl] == type:
method = force_str ("[" + objhandle + "]" + i [tl:])
- GDebug.printMesg (1, 'Method %s is deleted from py-xmlrpc ' \
+ GDebug.printMesg (9, 'Method %s is deleted from py-xmlrpc ' \
% method + \
' internal directory.')
self.server.removeMethods ({method:None})
Modified: trunk/gnue-common/src/schema/scripter/Scripter.py
===================================================================
--- trunk/gnue-common/src/schema/scripter/Scripter.py 2005-02-11 15:34:54 UTC
(rev 7006)
+++ trunk/gnue-common/src/schema/scripter/Scripter.py 2005-02-11 16:18:59 UTC
(rev 7007)
@@ -716,7 +716,7 @@
for keyField in keyFields:
condition [keyField] = row ['fields'][keyField]
- gDebug (4, "Condition: %s" % condition)
+ gDebug (8, "Condition: %s" % condition)
resultSet = datasource.createResultSet (condition)
if resultSet.firstRecord () is None:
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnue] r7007 - in trunk/gnue-common/src: . apps datasources datasources/drivers/Base datasources/drivers/DBSIG2 datasources/drivers/adodbapi/Schema/Discovery datasources/drivers/adodbapi/adodbapi datasources/drivers/csv/Schema/Discovery datasources/drivers/csv/csv datasources/drivers/db2/Schema/Discovery datasources/drivers/db2/db2 datasources/drivers/dbf/Schema/Discovery datasources/drivers/dbf/dbf datasources/drivers/gadfly/Schema/Discovery datasources/drivers/gadfly/gadfly datasources/drivers/informix/Schema/Discovery datasources/drivers/informix/informix datasources/drivers/ingres/Schema/Discovery datasources/drivers/ingres/ingres datasources/drivers/interbase/Schema/Discovery datasources/drivers/interbase/interbase datasources/drivers/ldap datasources/drivers/mysql/mysql datasources/drivers/odbc/wodbc datasources/drivers/oracle/Base datasources/drivers/oracle/Schema/Discovery datasources/drivers/postgresql/Base datasources/drivers/postgresql/pygresql datasources/drivers/sapdb/sapdb datasources/drivers/special/configfile datasources/drivers/special/static datasources/drivers/special/unbound datasources/drivers/sqlite/sqlite datasources/drivers/sqlrelay/sqlrelay datasources/drivers/sybase/Schema/Discovery datasources/drivers/sybase/sybase definitions events formatting formatting/masks logic logic/adapters rpc/drivers/_helpers rpc/drivers/pyro rpc/drivers/soap/soappy rpc/drivers/xmlrpc/pw_xmlrpc rpc/drivers/xmlrpc/py_xmlrpc schema/scripter,
reinhard <=