Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aoAbC-0008GH-9m for pgadmin-hackers@arkaria.postgresql.org; Thu, 07 Apr 2016 14:07: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 1aoAbB-0007mm-8Y for pgadmin-hackers@arkaria.postgresql.org; Thu, 07 Apr 2016 14:07:53 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1aoAax-0007XW-Ub for pgadmin-hackers@postgresql.org; Thu, 07 Apr 2016 14:07:39 +0000 Received: from mail-ig0-f175.google.com ([209.85.213.175]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1aoAaq-0002S6-GY for pgadmin-hackers@postgresql.org; Thu, 07 Apr 2016 14:07:39 +0000 Received: by mail-ig0-f175.google.com with SMTP id f1so154090051igr.1 for ; Thu, 07 Apr 2016 07:07:31 -0700 (PDT) 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:date:message-id:subject:from:to :cc; bh=EWXZXC8oan8aXX7jfmEpU3zCgQnNl/TheUsWYbaAI0I=; b=OGxv2Z7qVMDhwd7Ec/9w8Z12vfEySLUFpy4uXXb+CQGX6sLitVHjecLVyBE/67TaPb ob7rBRHNrQxYcc63Fa8d4LMtCxqdYggzMMrOVvzj9BNNszoRebecxa2fSWIonNuFsC58 Ghqj8lwc8xts9xD1HY1/eJV+phr6VF1Mh+s3J0/nuN5qHjwaU9JO3msD5MBrLezLm1d5 3xqNQlhsMsMymGRWQmLCUARusLfxUDYDaEK89KqUL4cg9IxfdohEtSU6Rp5s98WdExis E07W1i58ixfERo58TsKyID0IS3PF+jnQ8HQFOizfaGjU/Iw8UWP9Ssn+WEKaFIU244UP up2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=EWXZXC8oan8aXX7jfmEpU3zCgQnNl/TheUsWYbaAI0I=; b=Cfav7bFNhHUvhqG+KoIXhRQAxMvy3ct+9XceoTO0B5U+wJ91gjDYuHUMZfNiRpSs5O s98HEe86UvvWK90EAr9VUT2vVa4ZHpJ/Fzo/n0VwWzQ/nsRTLePMgSxpO3TP7NOa2/5B Yet4YG2hoTwZzSXmBq1ni+sGUXKMNPQa3dDlFhyzcl4Vy4P1+JNKtL4IBTaLa9fqMFRa fp7tAyME7lFiFjnhR/Gr3MrFevegTq19XF1HYIWqyFC/PWgVa3oPVd5Ic8z6lM29zncB jqiK9cLMIX37KO8ryxH8jifjvtelO8LugJ2F0kxT6ioHzxkBlkltXY8IDCVJyVmOM19D 0sgA== X-Gm-Message-State: AD7BkJKWPhaz5OF4vA4QhevD7TaRoUEdByk/TP4oX/pJ8AD8xuUU71BkB6SO6Myp4sBZmoBwEmo4rlLBLPe1bA== MIME-Version: 1.0 X-Received: by 10.50.138.5 with SMTP id qm5mr3774782igb.69.1460037734881; Thu, 07 Apr 2016 07:02:14 -0700 (PDT) Received: by 10.64.105.131 with HTTP; Thu, 7 Apr 2016 07:02:14 -0700 (PDT) In-Reply-To: References: Date: Thu, 7 Apr 2016 15:02:14 +0100 Message-ID: Subject: Re: PATCH: PGADMIN 4 - FTS templates node From: Dave Page To: Sanket Mehta Cc: pgadmin-hackers Content-Type: text/plain; charset=UTF-8 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 Thanks - committed. On Thu, Apr 7, 2016 at 2:47 PM, Sanket Mehta wrote: > Hi, > > Sorry about that issue, > > Its resolved now. > > PFA the right patch with this mail. > > > Regards, > Sanket Mehta > Sr Software engineer > Enterprisedb > > On Thu, Apr 7, 2016 at 2:39 PM, Dave Page wrote: >> >> Hi >> >> On Mon, Mar 28, 2016 at 10:01 AM, Sanket Mehta >> wrote: >> > Hi Dave, >> > >> > I have found out the root cause of this issue. >> > >> > This issue is occurring at your side as you are using python 2.7 so in >> > that >> > case sql query returned from sql template is of type 'unicode'. >> > And in __init__.py file we have checked if the sql query is of string >> > type >> > then only we would proceed further. >> > >> > I was not getting this issue as I was using python 3.0 >> > >> > I have resolved this issue and some other typo errors in comments and >> > patch >> > is attached with this mail. >> > >> > Please do review it and let me know in case of any issues. >> >> Did you send the right patch? I'm still getting the error >> (specifically, when rendering update.sql, render_template throws an >> exception "can't adapt type 'Undefined'") >> >> -- >> Dave Page >> Blog: http://pgsnake.blogspot.com >> Twitter: @pgsnake >> >> EnterpriseDB UK: http://www.enterprisedb.com >> The Enterprise PostgreSQL Company > > -- Dave Page Blog: http://pgsnake.blogspot.com Twitter: @pgsnake EnterpriseDB UK: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgadmin-hackers