Revision 2302
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/sql_gen.py | ||
---|---|---|
8 | 8 |
|
9 | 9 |
##### SQL code objects |
10 | 10 |
|
11 |
class Code: |
|
11 |
class Code(strings.DebugPrintable):
|
|
12 | 12 |
def to_str(self, db): raise NotImplemented() |
13 |
|
|
14 |
def __str__(self): return util.class_name(self)+repr(self.__dict__) |
|
15 |
|
|
16 |
def __repr__(self): return str(self) |
|
17 | 13 |
|
18 | 14 |
class CustomCode(Code): |
19 | 15 |
def __init__(self, str_): self.str_ = str_ |
Also available in: Unified diff
sql_gen.py: Code: Extend new strings.DebugPrintable instead of implementing str(), repr() itself