(self, curs, objs, log = None)
Issues DROP statements for requested set of objects.
Issues DROP statements for requested set of objects.
Issues DROP statements for requested set of objects .
def drop(self, curs, objs, log = None):
        """Issues DROP statements for requested set of objects."""
        # make sure the creating & dropping happen in reverse order
        olist = self.object_list[:]
        olist.reverse()
        for o in olist:
            if o.type & objs:
                sql = o.get_drop_sql(curs)
                if not sql:
                    continue
                if log:
                    log.info('Dropping %s' % o.name)
                    log.debug(sql)
                curs.execute(sql)
def drop ( self , curs , objs , log = None ) : # make sure the creating & dropping happen in reverse order olist = self . object_list [ : ] olist . reverse ( ) for o in olist : if o . type & objs : sql = o . get_drop_sql ( curs ) if not sql : continue if log : log . info ( 'Dropping %s' % o . name ) log . debug ( sql ) curs . execute ( sql )