Project

General

Profile

« Previous | Next » 

Revision 3509

sql_gen.py: Added BaseExcHandler and inherit from it in ExcHandlers

View differences:

lib/sql_gen.py
566 566
    def to_str(self, db):
567 567
        return 'RETURN QUERY\n'+strings.indent(self.query.to_str(db))+';\n'
568 568

  
569
class ExcHandler(BasicObject):
569
class BaseExcHandler(BasicObject):
570
    def to_str(self, db, body): raise NotImplementedError()
571

  
572
class ExcHandler(BaseExcHandler):
570 573
    def __init__(self, exc, handler=None):
571 574
        if handler != None: handler = as_Code(handler)
572 575
        

Also available in: Unified diff