Re: Can someone tell me what this code does ?

Поиск
Список
Период
Сортировка
От Murtuza Zabuawala
Тема Re: Can someone tell me what this code does ?
Дата
Msg-id CAKKotZTQR8Hho2rvCnS1vxFrE8ouWo1_DfTQuLGYU8MJntrg7A@mail.gmail.com
обсуждение исходный текст
Ответ на Can someone tell me what this code does ?  (Dave Cramer <davecramer@gmail.com>)
Ответы Re: Can someone tell me what this code does ?  (Dave Cramer <davecramer@gmail.com>)
Список pgadmin-hackers
Hi,

This piece of code allow us to dynamically import all the available driver modules from '../utils/driver/' directory into our application.

--
Regards,
Murtuza Zabuawala
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

https://community.postgresrocks.net/

On Tue, Aug 8, 2017 at 4:20 AM, Dave Cramer <davecramer@gmail.com> wrote:
I'm fairly new to Python so excuse my naiveté. 

This code: in web/pgadmin/utils/driver/__init__.py  does not appear to load the drivers into the drivers dictionary ? Or am I missing something

def init_app(app):
drivers = dict()

setattr(app, '_pgadmin_server_drivers', drivers)
DriverRegistry.load_drivers()

return drivers


Dave Cramer

В списке pgadmin-hackers по дате отправления:

Предыдущее
От: Wenlin Zhang
Дата:
Сообщение: Re: [gpAdmin4][patch] query history updates
Следующее
От: Ashesh Vashi
Дата:
Сообщение: Re: [pgAdmin4][Patch][RM_2567] : Default privileges don't show onProperties tab for database.