src/dirbs/schema_migrators/v85_upgrade.py
def _permit_listgen_on_barred_lists(self, logger, conn):
        """Method to grant permisions to dirbs_core_listgen on barred list, barred tac list."""
        with conn.cursor() as cursor:
            logger.debug('Granting SELECT permission on barred_list To dirbs_core_listgen...')
            cursor.execute('GRANT SELECT ON barred_list TO dirbs_core_listgen')
            logger.debug('Granting SELECT permission on barred_tac_list To dirbs_core_listgen...')
            cursor.execute('GRANT SELECT ON barred_tac_list TO dirbs_core_listgen')
Method to grant permisions to dirbs_core_listgen on barred list, barred tac list.
Method to grant permisions to dirbs_core_listgen on barred list, barred tac list.
Method to grant permisions to dirbs_core_listgen on barred list barred tac list .
def _permit_listgen_on_barred_lists(self, logger, conn):
        with conn.cursor() as cursor:
            logger.debug('Granting SELECT permission on barred_list To dirbs_core_listgen...')
            cursor.execute('GRANT SELECT ON barred_list TO dirbs_core_listgen')
            logger.debug('Granting SELECT permission on barred_tac_list To dirbs_core_listgen...')
            cursor.execute('GRANT SELECT ON barred_tac_list TO dirbs_core_listgen')
def _permit_listgen_on_barred_lists ( self , logger , conn ) : with conn . cursor ( ) as cursor : logger . debug ( 'Granting SELECT permission on barred_list To dirbs_core_listgen...' ) cursor . execute ( 'GRANT SELECT ON barred_list TO dirbs_core_listgen' ) logger . debug ( 'Granting SELECT permission on barred_tac_list To dirbs_core_listgen...' ) cursor . execute ( 'GRANT SELECT ON barred_tac_list TO dirbs_core_listgen' )
Method to grant permisions to dirbs_core_listgen on barred list, barred tac list.
Method to grant permisions to dirbs_core_listgen on barred list barred tac list .
"""Method to grant permisions to dirbs_core_listgen on barred list, barred tac list."""
self
logger
conn