commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gnue/gnue-common/gnue/common/dbdrivers/_dbsig D...


From: Jason Cater
Subject: gnue/gnue-common/gnue/common/dbdrivers/_dbsig D...
Date: Tue, 05 Jun 2001 22:24:40 -0700

CVSROOT:        /home/cvs
Module name:    gnue
Changes by:     Jason Cater <address@hidden>    01/06/05 22:24:40

Modified files:
        gnue-common/gnue/common/dbdrivers/_dbsig: DBdriver.py 

Log message:
        Fixed a few mistypings causing problems with parameters in reports

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue-common/gnue/common/dbdrivers/_dbsig/DBdriver.py.diff?cvsroot=OldCVS&tr1=1.6&tr2=1.7&r1=text&r2=text

Patches:
Index: gnue/gnue-common/gnue/common/dbdrivers/_dbsig/DBdriver.py
diff -u gnue/gnue-common/gnue/common/dbdrivers/_dbsig/DBdriver.py:1.6 
gnue/gnue-common/gnue/common/dbdrivers/_dbsig/DBdriver.py:1.7
--- gnue/gnue-common/gnue/common/dbdrivers/_dbsig/DBdriver.py:1.6       Tue Jun 
 5 18:22:55 2001
+++ gnue/gnue-common/gnue/common/dbdrivers/_dbsig/DBdriver.py   Tue Jun  5 
22:24:40 2001
@@ -146,11 +146,11 @@
 
 
   # Used to convert a condition tree to an sql where clause
-  def _conditionToSQL (condition): 
+  def _conditionToSQL (self, condition): 
     if condition == {} or condition == None: 
       return ""
     elif type(condition) == types.DictType: 
-      cond = GConditions.buildConditionFromDict(cond)
+      cond = GConditions.buildConditionFromDict(condition)
     else: 
       cond = condition
   
@@ -162,10 +162,10 @@
       _and = GConditions.GCand(cond)
       _and._children = chillun
   
-    return " WHERE (%s)" % (this.__conditionToSQL (cond._children[0]))
+    return " WHERE (%s)" % (self.__conditionToSQL (cond._children[0]))
   
   # Used internally by _conditionToSQL
-  def __conditionToSQL (element): 
+  def __conditionToSQL (self, element): 
     if type(element) != types.InstanceType: 
       return "%s" % element
     else: 
@@ -178,7 +178,7 @@
         return "'%s'" % element.getValue()
       elif self.conditionElements.has_key(otype): 
         for i in range(0, len(element._children)): 
-          element._children[i] = __conditionToSQL(element._children[i])
+          element._children[i] = self.__conditionToSQL(element._children[i])
         if len(element._children) < self.conditionElements[otype][0]: 
           raise GConditions.ConditionError, \
             'Condition element "%s" expects at least %s arguments; found %s' % 
\



reply via email to

[Prev in Thread] Current Thread [Next in Thread]