Project

General

Profile

« Previous | Next » 

Revision 2228

sql_gen.py: Added str() to base classes for debugging

View differences:

sql_gen.py
8 8

  
9 9
class Code:
10 10
    def to_str(self, db): raise NotImplemented()
11
    
12
    def __str__(self): return str(self.__dict__)
11 13

  
12 14
class Literal(Code):
13 15
    def __init__(self, value): self.value = value
......
60 62
        @param left_value The Code object that the condition is being applied on
61 63
        '''
62 64
        raise NotImplemented()
65
    
66
    def __str__(self): return str(self.__dict__)
63 67

  
64 68
class CompareCond(ValueCond):
65 69
    def __init__(self, value, operator='='):

Also available in: Unified diff