[Checkins] SVN: Sandbox/adamg/ocql/trunk/src/ocql/queryobject/queryobject.py add missing variable to represent the class

Charith Paranaliyanage paranaliyanage at gmail.com
Tue Aug 19 04:23:19 EDT 2008


Log message for revision 89997:
  add missing variable to represent the class

Changed:
  U   Sandbox/adamg/ocql/trunk/src/ocql/queryobject/queryobject.py

-=-
Modified: Sandbox/adamg/ocql/trunk/src/ocql/queryobject/queryobject.py
===================================================================
--- Sandbox/adamg/ocql/trunk/src/ocql/queryobject/queryobject.py	2008-08-19 08:22:42 UTC (rev 89996)
+++ Sandbox/adamg/ocql/trunk/src/ocql/queryobject/queryobject.py	2008-08-19 08:23:18 UTC (rev 89997)
@@ -353,8 +353,9 @@
         self.setProp('expr', expr)
 
     def __repr__(self):
-        return "(%s)" % (
-            self.__class__.__name__
+        return "(%s, %s)" % (
+            self.__class__.__name__,
+            str(self.expr)
             )
 
 class Quanted(Child):
@@ -369,6 +370,12 @@
         self.setProp('quantor', quantor)
         self.setProp('expression', expression)
 
+    def __repr__(self):
+        return "%s(%s, %s)" % (
+            self.__class__.__name__,
+            str(self.quantor), str(self.expression)
+            )
+
 # Quantors
 class Every(Quantor):
     implements(IEvery)



More information about the Checkins mailing list