Re: [FEATURE] Add schema option to all relevant objects

From: Jasmin Dizdarevic <jasmin(dot)dizdarevic(at)gmail(dot)com>
To: Thom Brown <thom(at)linux(dot)com>
Cc: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: [FEATURE] Add schema option to all relevant objects
Date: 2011-07-05 20:23:53
Message-ID: CAOveQuPi--178-g+MCrQ84ha3PJ44Wj=naMwza+cxnpJLOQXhg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Me too...it's quite hard to get in ;)

GetNodePath returns a string representing an language dependent node path:
Server Groups/localhost/Databases/myDb/Schemas/mySchema/Tables/myTable....
SetCurrentNodePath accpet the string node path and select's the desired
object.

During implementing search object I've done some improvements to this
methods, so you should maybe wait for Guillaume committing my patch.

2011/7/5 Thom Brown <thom(at)linux(dot)com>

> On 5 July 2011 21:14, Jasmin Dizdarevic <jasmin(dot)dizdarevic(at)gmail(dot)com>
> wrote:
> >> > > Did you fix the issue with the refresh of the browser? (I can't
> check
> >> > > yet, I'm doing a last time compile of Jasmin's patch :) )
> >> >
> >> > I got it refreshing the node in the original schema, but not the
> >> > destination one.
> >> >
> >>
> >> Which is an issue. People may understand that pgadmin doesn't know about
> >> new or altered objects if the object is created or changed outside of
> >> the UI. But inside the UI, it should refresh its browser.
> >
> > He Tom,
> > can't you use frmMain::GetNodePath and frmMain::SetCurrentNode to do
> this?
> > I don't exactly know what you're doing, but it should be possible to
> replace
> > old schema name with the new one.
> > 1. Extract path of old object
> > 2. replace old schema name with new one
> > 3. select the object in the new schema
> > ?
>
> I'm not at all familiar with PgAdmin's codebase, I'm just feeling in
> the dark so I don't know how easy it is to do that.
>
> --
> Thom Brown
> Twitter: @darkixion
> IRC (freenode): dark_ixion
> Registered Linux user: #516935
>
> EnterpriseDB UK: http://www.enterprisedb.com
> The Enterprise PostgreSQL Company
>

In response to

Browse pgadmin-hackers by date

  From Date Subject
Next Message Thom Brown 2011-07-05 20:25:38 Re: Changing extension schema silently fails
Previous Message Thom Brown 2011-07-05 20:23:49 Changing extension schema silently fails