Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bgwQs-0002Qr-KL for pgadmin-hackers@arkaria.postgresql.org; Mon, 05 Sep 2016 16:07:38 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bgwQs-0005Ja-6y for pgadmin-hackers@arkaria.postgresql.org; Mon, 05 Sep 2016 16:07:38 +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 1bgwQr-0005JT-TF for pgadmin-hackers@postgresql.org; Mon, 05 Sep 2016 16:07:38 +0000 Received: from mail-it0-x22c.google.com ([2607:f8b0:4001:c0b::22c]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bgwQo-0007Bu-AL for pgadmin-hackers@postgresql.org; Mon, 05 Sep 2016 16:07:37 +0000 Received: by mail-it0-x22c.google.com with SMTP id c198so153398625ith.1 for ; Mon, 05 Sep 2016 09:07:34 -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:from:date:message-id:subject:to :cc; bh=1KbdOQuGefTSXSIaJNqTI3fBIPI6bA1EkTXuHoJT1/g=; b=T0uJSCUo+zi2XPlfgxXJlmz2lJovzHdnm1GteS/6o1/qusgdspIERZVuUTPVZFJI5b npJUqoA0Fb449DS8WuXSRuUntFZDGL/Zklp3DQUW++mg3Xz7nk6Z2yRj3RgUtatw+oQk UVidgbmLmxjzvbYiL71UhNcqF94qwOicL4Y2dtqW/mPq/TfDDrVUrwwinhBMXHh7KAm6 TwcEK5f8K3+khmRBwCGIF0WlQcUQKqNDbU9JeA48LucqQo+rJxrwPfykh+0U521bUgyw fM2/3mRUlnSKi65k8SsRRrj6yWKZmwo4n+pJi8QCsLsffXVhNxs5pwNK5bs4EhZrMWJO oLHw== 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:from:date :message-id:subject:to:cc; bh=1KbdOQuGefTSXSIaJNqTI3fBIPI6bA1EkTXuHoJT1/g=; b=Yix8Y9oRiWKJ60Z24CEJ/fbDDmcpcDOORJPfrCamrBkpykXaOk+QropXfOIhrY5KwB 1Jk8YNQu/NHxVNIWDzKNay4ckWjxX+hLqpeztZS6OcfRH5uGEa4JaQ9lTOYm8no9spJV kvq12NKe0uCbg0qZ4JYrRPj9fcK66IC5lJ3vVL4BYbpzczLhaAgys+TNggQWFirm/5fk PQ9q2h0kUMRYF3EdvtomBxiuQzggnl+4tmEuwht8YAeODBzkeFPk3UfJt+rZe8kRvLCS kB6q1T3+eBp1rP5T+6Sjxg7eXtWChoMnxG0Db+8xLHpegi002Hg/gtGLkfySSx1uRP1G UGWQ== X-Gm-Message-State: AE9vXwOGPBEAu70PYmpNXewzMXY0r8c7wZGzK1lSrlSQL0y/gKme1wCR1IDjOk65QAW0lBNeM9tGNL6JqzBoPA== X-Received: by 10.107.20.11 with SMTP id 11mr89571iou.70.1473091652617; Mon, 05 Sep 2016 09:07:32 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.1.203 with HTTP; Mon, 5 Sep 2016 09:07:32 -0700 (PDT) In-Reply-To: References: From: Dave Page Date: Mon, 5 Sep 2016 17:07:32 +0100 Message-ID: Subject: Re: [pgAdmin4][Patch]: Wrong listing of directories in File Manager in Windows Only. To: Surinder Kumar 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, applied. On Mon, Sep 5, 2016 at 10:51 AM, Surinder Kumar wrote: > Hi > > Issue: > FileManager: when Select File dialog is opened in query tool in Runtime > Mode, it was listing wrong directory. instead it should list drives such as > C:\, D:\, E:\ etc if no STORAGE_DIR path is set in config_local.py. This is > a regression of RM 1937. > > Solution: > we do list drives, If platform is Windows and If self.dir is set to None, > but self.dir is set to empty string inside __init__ constructor. This is the > reason it wasn't listing drives. > I have taken care it in this patch and tested it for following platforms: > Windows, > Ubuntu and > Mac. > > Please find attached patch and review. > > > Thanks, > Surinder Kumar > > > -- > Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgadmin-hackers > -- 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