Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cQAEc-00066e-D6 for pgadmin-hackers@arkaria.postgresql.org; Sun, 08 Jan 2017 09:57:54 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cQAEc-0002bb-05 for pgadmin-hackers@arkaria.postgresql.org; Sun, 08 Jan 2017 09:57:54 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cQAEM-0001dE-O3 for pgadmin-hackers@postgresql.org; Sun, 08 Jan 2017 09:57:39 +0000 Received: from mail-it0-x22f.google.com ([2607:f8b0:4001:c0b::22f]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1cQAEI-0001bZ-Dm for pgadmin-hackers@postgresql.org; Sun, 08 Jan 2017 09:57:36 +0000 Received: by mail-it0-x22f.google.com with SMTP id r185so5354087ita.0 for ; Sun, 08 Jan 2017 01:57:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pgadmin-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=mhw24u+WZvP13YZJ4LCEeBle+PBFnIKuXwNXRHaMHvk=; b=yU8ovsq/G2fsC3g3QNoYNPNgzQFRcPwTXAgqyF3iqMrMz71B4K5HCd8diresj8zKDK hEIuoaToAfemtM6uzDnGnCrzRIXZDwjnrQjbZhP5eAdJSIQbSMoiGdinlOHBAJk4HbKw xTIEs7ffS6+hM2jMupt/1x80+HA3ssiqPd8xttqDvVpLPQ3rdK9mVmnkZ2FbCtLK3Ajs FRyxCgY5+eDfclbnKzyZ2t7oRF/wkU7M2LG2o6hm6cWObtpeOgfEmGKQqcmszowdhbbG P/xB5e+m9p5yTngbtqlksap2JXsfGVm6IFwIf9/EAtoTHSLc+t0ogoLxMIuysO5c69Ny N7+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=mhw24u+WZvP13YZJ4LCEeBle+PBFnIKuXwNXRHaMHvk=; b=pm7zJ5kRug1mmdZBJjiCgiRvZCxq1qtrtKmLN5mNz0bTU8Tz2OHvZWfXciPpvRXnDn QQcZS1FHvUOVT/MyG4AdIebUVXPnjtRWOd8k6LKj4vZPGQT/ySUfSojFf2rpETMQCty9 l8AhGm3+VaJi1hjB9h8HbxqGkFi+ggDYQCGiIseyKlHYhPkbeqGu+0m04BCNAaO2o+ad Z+tOiMgBVVUh/9LMC66TU9ejVJeZKrPcQyhcDwp54I62tAx/xbYVHYWjQv9ZR54srSIO LCTDST7i/dpUxmf8uv0+E5eA9UXJz47bHh6Jh/Py9DbdGZmcN0MXNE6mlH4NlveR9aQ9 KiaQ== X-Gm-Message-State: AIkVDXLfJgQ1VDu90EYQ54HdAZfPEZzQonshEyQdn9r3wXvKMLQP3wgO1hIPC5CrLn2oLiwiXpYeOHak/Wp/nA== X-Received: by 10.36.175.83 with SMTP id l19mr5355880iti.113.1483869452831; Sun, 08 Jan 2017 01:57:32 -0800 (PST) MIME-Version: 1.0 Received: by 10.64.224.198 with HTTP; Sun, 8 Jan 2017 01:57:31 -0800 (PST) In-Reply-To: References: From: Dave Page Date: Sun, 8 Jan 2017 09:57:31 +0000 Message-ID: Subject: Re: Driver Module To: George Gelashvili Cc: "pgadmin-hackers@postgresql.org" , "plumadmin@pivotal.io" , Ashesh Vashi Content-Type: multipart/alternative; boundary=f403045dadc6a121c105459247f9 X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgadmin-hackers Precedence: bulk Sender: pgadmin-hackers-owner@postgresql.org --f403045dadc6a121c105459247f9 Content-Type: text/plain; charset=UTF-8 Hi On Friday, January 6, 2017, George Gelashvili wrote: > Hi there, > > We are working on connecting Greenplum to pgAdmin4. Currently we are > exploring how modules work in pgAdmin. In an earlier off-thread email it > was suggested we look at "the EDB PPAS" as an example of a driver class. We > are not entirely clear on what that means. > > We found: > - the BaseDriver in web/pgadmin/utils/driver, documented: > https://www.pgadmin.org/docs4/1.x/code_snippets.html? > highlight=driver#basedriver > - things that look EDB-related in web/pgadmin/utils/driver/ > psycopg2/__init__.py > > Is it a good idea to keep looking for EDB PPAS as an example of a driver? > Does anyone know exactly where it lives? > I believe 99% of it is simply inherited from the base driver, and (some of?) the rest of it is in web/pgadmin/browser/server_groups/servers/ppas.py. Ashesh, can you help here? You know that code infinitely better than I do. Thanks. -- Dave Page Blog: http://pgsnake.blogspot.com Twitter: @pgsnake EnterpriseDB UK: http://www.enterprisedb.com The Enterprise PostgreSQL Company --f403045dadc6a121c105459247f9 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi

On Friday, January 6, 2017, George Gelashvili <ggelashvili@pivotal.io> wrote:
Hi there,

We ar= e working on connecting Greenplum to pgAdmin4. Currently we are exploring h= ow modules work in pgAdmin. In an earlier off-thread email it was suggested= we look at "the EDB PPAS" as an example of a driver class. We ar= e not entirely clear on what that means.

We found:=
- the BaseDriver in web/pgadmin/utils/driver, documented: https://www.pgadmin.org/docs4/1.x/code= _snippets.html?highlight=3Ddriver#basedriver
- things th= at look EDB-related in web/pgadmin/utils/driver/psycopg2/__init__.py

Is it a good idea to keep looking for EDB PPAS= as an example of a driver?
Does anyone know exactly where = it lives?

I believe 99% of it i= s simply inherited from the base driver, and (some of?) the rest of it is i= n web/pgadmin/browser/server_groups/servers/ppas.py.

Ashesh, can you help here? You know that code infinitely better than I d= o.

Thanks.=C2=A0


--
Dave Page
= Blog: http://pgsn= ake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.= com
The Enterprise PostgreSQL Company

--f403045dadc6a121c105459247f9--