Error when trying to open 2 plugin status windows

View: New views
3 Messages — Rating Filter:   Alert me  

Error when trying to open 2 plugin status windows

by Nick Hall-6 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

This is a also a problem in 3.1, when a plugin status window is open if
you try to open another one it gives an error.

In viewmanager.py, the __plugin_status method calls get_item_from_id
with a class rather than a window_id.  It can be fixed quickly by
passing id(PluginWindows.PluginStatus) but we should use the
build_window_key function in ManagedWindow.

Nick.


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Gramps-devel mailing list
Gramps-devel@...
https://lists.sourceforge.net/lists/listinfo/gramps-devel

Re: Error when trying to open 2 plugin status windows

by Benny Malengier :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2009/11/5 Nick Hall <nick__hall@...>:
> This is a also a problem in 3.1, when a plugin status window is open if
> you try to open another one it gives an error.
>
> In viewmanager.py, the __plugin_status method calls get_item_from_id
> with a class rather than a window_id.  It can be fixed quickly by
> passing id(PluginWindows.PluginStatus) but we should use the
> build_window_key function in ManagedWindow.


Yes, like other windows, the active one should just gain focus. Can
you fix this, or will you make a bug ticket?

Benny

> Nick.
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Gramps-devel mailing list
> Gramps-devel@...
> https://lists.sourceforge.net/lists/listinfo/gramps-devel
>

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Gramps-devel mailing list
Gramps-devel@...
https://lists.sourceforge.net/lists/listinfo/gramps-devel

Re: Error when trying to open 2 plugin status windows

by Nick Hall-6 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Just making the existing window gain focus is even easier.  I have
committed a fix to both gramps31 and trunk.

Nick.

Benny Malengier wrote:

> 2009/11/5 Nick Hall <nick__hall@...>:
>  
>> This is a also a problem in 3.1, when a plugin status window is open if
>> you try to open another one it gives an error.
>>
>> In viewmanager.py, the __plugin_status method calls get_item_from_id
>> with a class rather than a window_id.  It can be fixed quickly by
>> passing id(PluginWindows.PluginStatus) but we should use the
>> build_window_key function in ManagedWindow.
>>    
>
>
> Yes, like other windows, the active one should just gain focus. Can
> you fix this, or will you make a bug ticket?
>
> Benny
>
>  
>> Nick.
>>
>>
>> ------------------------------------------------------------------------------
>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
>> trial. Simplify your report design, integration and deployment - and focus on
>> what you do best, core application coding. Discover what's new with
>> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
>> _______________________________________________
>> Gramps-devel mailing list
>> Gramps-devel@...
>> https://lists.sourceforge.net/lists/listinfo/gramps-devel
>>
>>    
>
>
>  

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Gramps-devel mailing list
Gramps-devel@...
https://lists.sourceforge.net/lists/listinfo/gramps-devel