So what is the policy of the project? Ideally the cruft should be removed.Would a patch doing so be committed?
Dave CramerOn 9 August 2017 at 00:28, Murtuza Zabuawala <murtuza.zabuawala@enterprisedb.com> wrote:Yes, you are correct, at a moment that's all it does.On Tue, Aug 8, 2017 at 6:37 PM, Dave Cramer <davecramer@gmail.com> wrote:Hi,I guess my question was a bit vague. I get that it loads drivers. But note it does not actually put them anywhere.First it creates a dictsets the attribute in the apploads the drivers dynamicallyand returns an empty dict.From what I can tell this:DriverRegistry.load_drivers()is all it does?Dave CramerOn 7 August 2017 at 23:35, Murtuza Zabuawala <murtuza.zabuawala@enterprisedb.com> wrote:Hi,This piece of code allow us to dynamically import all the available driver modules from '../utils/driver/' directory into our application.--Regards,Murtuza ZabuawalaEnterpriseDB: http://www.enterprisedb.comThe Enterprise PostgreSQL CompanyOn 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 somethingdef init_app(app): drivers = dict() setattr(app, '_pgadmin_server_drivers', drivers) DriverRegistry.load_drivers() return driversDave Cramer
Yes, you are correct, at a moment that's all it does.On Tue, Aug 8, 2017 at 6:37 PM, Dave Cramer <davecramer@gmail.com> wrote:Hi,I guess my question was a bit vague. I get that it loads drivers. But note it does not actually put them anywhere.First it creates a dictsets the attribute in the apploads the drivers dynamicallyand returns an empty dict.From what I can tell this:DriverRegistry.load_drivers()is all it does?Dave CramerOn 7 August 2017 at 23:35, Murtuza Zabuawala <murtuza.zabuawala@enterprisedb.com> wrote:Hi,This piece of code allow us to dynamically import all the available driver modules from '../utils/driver/' directory into our application.--Regards,Murtuza ZabuawalaEnterpriseDB: http://www.enterprisedb.comThe Enterprise PostgreSQL CompanyOn 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 somethingdef init_app(app): drivers = dict() setattr(app, '_pgadmin_server_drivers', drivers) DriverRegistry.load_drivers() return driversDave Cramer
Hi,I guess my question was a bit vague. I get that it loads drivers. But note it does not actually put them anywhere.First it creates a dictsets the attribute in the apploads the drivers dynamicallyand returns an empty dict.From what I can tell this:DriverRegistry.load_drivers()is all it does?Dave CramerOn 7 August 2017 at 23:35, Murtuza Zabuawala <murtuza.zabuawala@enterprisedb.com> wrote:Hi,This piece of code allow us to dynamically import all the available driver modules from '../utils/driver/' directory into our application.--Regards,Murtuza ZabuawalaEnterpriseDB: http://www.enterprisedb.comThe Enterprise PostgreSQL CompanyOn 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 somethingdef init_app(app): drivers = dict() setattr(app, '_pgadmin_server_drivers', drivers) DriverRegistry.load_drivers() return driversDave Cramer
DriverRegistry.load_drivers()
is all it does?
Hi,This piece of code allow us to dynamically import all the available driver modules from '../utils/driver/' directory into our application.--Regards,Murtuza ZabuawalaEnterpriseDB: http://www.enterprisedb.comThe Enterprise PostgreSQL CompanyOn 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 somethingdef init_app(app): drivers = dict() setattr(app, '_pgadmin_server_drivers', drivers) DriverRegistry.load_drivers() return driversDave Cramer
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 somethingdef init_app(app): drivers = dict() setattr(app, '_pgadmin_server_drivers', drivers) DriverRegistry.load_drivers() return driversDave Cramer
def init_app(app): drivers = dict() setattr(app, '_pgadmin_server_drivers', drivers) DriverRegistry.load_drivers() return drivers
pgadmin-hackers by date:
Соглашаюсь с условиями обработки персональных данных