Plugin locations

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

Plugin locations

by Doug Blank-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Just a heads up that I just added a property to plugins, "fpath" to go
with "fname". "fpath" is the actual path to the "fname" (filename) of
the plugin. At the time the plugin gets its module name (mod_name) I
also assign the directory from which it was just registered.

The upside to this is that this enables an Edit button in the
Registered Plugin tab (when __debug__ is true) that allows you to
highlight the plugin and edit it from inside gramps. It uses the
editor defined in the environment variable EDITOR (if defined) or
gedit otherwise. You can thus startup gramps, like:

EDITOR=emacs python src/gramps.py

and you can do quick edits on a particular plugin, without having to
find it on your system. I also added the file location in the info
box. This may help debug some issues from the bug tracker when talking
to users, and they can't find a plugin.

This is in trunk revision 13484.

-Doug

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Gramps-devel mailing list
Gramps-devel@...
https://lists.sourceforge.net/lists/listinfo/gramps-devel

Re: Plugin locations

by Gerald Britton-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Not that I use it, but will this mod work on Windows?

On Mon, Nov 2, 2009 at 8:54 PM, Doug Blank <doug.blank@...> wrote:

> Just a heads up that I just added a property to plugins, "fpath" to go
> with "fname". "fpath" is the actual path to the "fname" (filename) of
> the plugin. At the time the plugin gets its module name (mod_name) I
> also assign the directory from which it was just registered.
>
> The upside to this is that this enables an Edit button in the
> Registered Plugin tab (when __debug__ is true) that allows you to
> highlight the plugin and edit it from inside gramps. It uses the
> editor defined in the environment variable EDITOR (if defined) or
> gedit otherwise. You can thus startup gramps, like:
>
> EDITOR=emacs python src/gramps.py
>
> and you can do quick edits on a particular plugin, without having to
> find it on your system. I also added the file location in the info
> box. This may help debug some issues from the bug tracker when talking
> to users, and they can't find a plugin.
>
> This is in trunk revision 13484.
>
> -Doug
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Gramps-devel mailing list
> Gramps-devel@...
> https://lists.sourceforge.net/lists/listinfo/gramps-devel
>



--
Gerald Britton

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Gramps-devel mailing list
Gramps-devel@...
https://lists.sourceforge.net/lists/listinfo/gramps-devel

Re: Plugin locations

by Doug Blank-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, Nov 2, 2009 at 9:16 PM, Gerald Britton <gerald.britton@...> wrote:
> Not that I use it, but will this mod work on Windows?

It could, if someone wanted to spend a bit more time on it. If we felt
like this was something that we wanted to have for all users, it would
be worth refining. However, as it is, it will only show up in a
development environment and I don't develop under windows. Things that
would have to be fixed to work in the more general case:

1) make the editor run in the background
2) deal with path separator issues
3) define (and evaluate) an environment variable in the platform-appropriate way

Perhaps those are easy to solve, but I've got a full plate...

-Doug

> On Mon, Nov 2, 2009 at 8:54 PM, Doug Blank <doug.blank@...> wrote:
>> Just a heads up that I just added a property to plugins, "fpath" to go
>> with "fname". "fpath" is the actual path to the "fname" (filename) of
>> the plugin. At the time the plugin gets its module name (mod_name) I
>> also assign the directory from which it was just registered.
>>
>> The upside to this is that this enables an Edit button in the
>> Registered Plugin tab (when __debug__ is true) that allows you to
>> highlight the plugin and edit it from inside gramps. It uses the
>> editor defined in the environment variable EDITOR (if defined) or
>> gedit otherwise. You can thus startup gramps, like:
>>
>> EDITOR=emacs python src/gramps.py
>>
>> and you can do quick edits on a particular plugin, without having to
>> find it on your system. I also added the file location in the info
>> box. This may help debug some issues from the bug tracker when talking
>> to users, and they can't find a plugin.
>>
>> This is in trunk revision 13484.
>>
>> -Doug
>>
>> ------------------------------------------------------------------------------
>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>> is the only developer event you need to attend this year. Jumpstart your
>> developing skills, take BlackBerry mobile applications to market and stay
>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>> http://p.sf.net/sfu/devconference
>> _______________________________________________
>> Gramps-devel mailing list
>> Gramps-devel@...
>> https://lists.sourceforge.net/lists/listinfo/gramps-devel
>>
>
>
>
> --
> Gerald Britton
>

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Gramps-devel mailing list
Gramps-devel@...
https://lists.sourceforge.net/lists/listinfo/gramps-devel

Re: Plugin locations

by Benny Malengier :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2009/11/3 Doug Blank <doug.blank@...>:

> On Mon, Nov 2, 2009 at 9:16 PM, Gerald Britton <gerald.britton@...> wrote:
>> Not that I use it, but will this mod work on Windows?
>
> It could, if someone wanted to spend a bit more time on it. If we felt
> like this was something that we wanted to have for all users, it would
> be worth refining. However, as it is, it will only show up in a
> development environment and I don't develop under windows. Things that
> would have to be fixed to work in the more general case:
>
> 1) make the editor run in the background
> 2) deal with path separator issues
> 3) define (and evaluate) an environment variable in the platform-appropriate way

Doug,

please change this to use the gramps way of editing a file, so use the
open_file_with_default_application function from gui/utils.py
I will work on mac, windows and linux.
I don't mind you defining an environment variable to override this if
you like that, but then not sure something generic as EDITOR is how it
should be done.

Benny

>
> Perhaps those are easy to solve, but I've got a full plate...
>
> -Doug
>
>> On Mon, Nov 2, 2009 at 8:54 PM, Doug Blank <doug.blank@...> wrote:
>>> Just a heads up that I just added a property to plugins, "fpath" to go
>>> with "fname". "fpath" is the actual path to the "fname" (filename) of
>>> the plugin. At the time the plugin gets its module name (mod_name) I
>>> also assign the directory from which it was just registered.
>>>
>>> The upside to this is that this enables an Edit button in the
>>> Registered Plugin tab (when __debug__ is true) that allows you to
>>> highlight the plugin and edit it from inside gramps. It uses the
>>> editor defined in the environment variable EDITOR (if defined) or
>>> gedit otherwise. You can thus startup gramps, like:
>>>
>>> EDITOR=emacs python src/gramps.py
>>>
>>> and you can do quick edits on a particular plugin, without having to
>>> find it on your system. I also added the file location in the info
>>> box. This may help debug some issues from the bug tracker when talking
>>> to users, and they can't find a plugin.
>>>
>>> This is in trunk revision 13484.
>>>
>>> -Doug
>>>
>>> ------------------------------------------------------------------------------
>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>> is the only developer event you need to attend this year. Jumpstart your
>>> developing skills, take BlackBerry mobile applications to market and stay
>>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>>> http://p.sf.net/sfu/devconference
>>> _______________________________________________
>>> Gramps-devel mailing list
>>> Gramps-devel@...
>>> https://lists.sourceforge.net/lists/listinfo/gramps-devel
>>>
>>
>>
>>
>> --
>> Gerald Britton
>>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Gramps-devel mailing list
> Gramps-devel@...
> https://lists.sourceforge.net/lists/listinfo/gramps-devel
>

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Gramps-devel mailing list
Gramps-devel@...
https://lists.sourceforge.net/lists/listinfo/gramps-devel

Re: Plugin locations

by Doug Blank-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, Nov 3, 2009 at 3:16 AM, Benny Malengier
<benny.malengier@...> wrote:

> 2009/11/3 Doug Blank <doug.blank@...>:
>> On Mon, Nov 2, 2009 at 9:16 PM, Gerald Britton <gerald.britton@...> wrote:
>>> Not that I use it, but will this mod work on Windows?
>>
>> It could, if someone wanted to spend a bit more time on it. If we felt
>> like this was something that we wanted to have for all users, it would
>> be worth refining. However, as it is, it will only show up in a
>> development environment and I don't develop under windows. Things that
>> would have to be fixed to work in the more general case:
>>
>> 1) make the editor run in the background
>> 2) deal with path separator issues
>> 3) define (and evaluate) an environment variable in the platform-appropriate way
>
> Doug,
>
> please change this to use the gramps way of editing a file, so use the
> open_file_with_default_application function from gui/utils.py
> I will work on mac, windows and linux.

Ah, of course. Done in trunk revision 13489.

> I don't mind you defining an environment variable to override this if
> you like that, but then not sure something generic as EDITOR is how it
> should be done.

A few other programs use EDITOR (including SVN I believe). But others
can refine this if you want.

-Doug

> Benny
>
>>
>> Perhaps those are easy to solve, but I've got a full plate...
>>
>> -Doug
>>
>>> On Mon, Nov 2, 2009 at 8:54 PM, Doug Blank <doug.blank@...> wrote:
>>>> Just a heads up that I just added a property to plugins, "fpath" to go
>>>> with "fname". "fpath" is the actual path to the "fname" (filename) of
>>>> the plugin. At the time the plugin gets its module name (mod_name) I
>>>> also assign the directory from which it was just registered.
>>>>
>>>> The upside to this is that this enables an Edit button in the
>>>> Registered Plugin tab (when __debug__ is true) that allows you to
>>>> highlight the plugin and edit it from inside gramps. It uses the
>>>> editor defined in the environment variable EDITOR (if defined) or
>>>> gedit otherwise. You can thus startup gramps, like:
>>>>
>>>> EDITOR=emacs python src/gramps.py
>>>>
>>>> and you can do quick edits on a particular plugin, without having to
>>>> find it on your system. I also added the file location in the info
>>>> box. This may help debug some issues from the bug tracker when talking
>>>> to users, and they can't find a plugin.
>>>>
>>>> This is in trunk revision 13484.
>>>>
>>>> -Doug
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>>> is the only developer event you need to attend this year. Jumpstart your
>>>> developing skills, take BlackBerry mobile applications to market and stay
>>>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>>>> http://p.sf.net/sfu/devconference
>>>> _______________________________________________
>>>> Gramps-devel mailing list
>>>> Gramps-devel@...
>>>> https://lists.sourceforge.net/lists/listinfo/gramps-devel
>>>>
>>>
>>>
>>>
>>> --
>>> Gerald Britton
>>>
>>
>> ------------------------------------------------------------------------------
>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>> is the only developer event you need to attend this year. Jumpstart your
>> developing skills, take BlackBerry mobile applications to market and stay
>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>> http://p.sf.net/sfu/devconference
>> _______________________________________________
>> Gramps-devel mailing list
>> Gramps-devel@...
>> https://lists.sourceforge.net/lists/listinfo/gramps-devel
>>
>

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Gramps-devel mailing list
Gramps-devel@...
https://lists.sourceforge.net/lists/listinfo/gramps-devel

Re: Plugin locations

by Nick Hall-6 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Many programs use the EDITOR environment variable. You could also store
a default editor in the gramps configuration file.

Doug Blank wrote:

> On Tue, Nov 3, 2009 at 3:16 AM, Benny Malengier
> <benny.malengier@...> wrote:
>  
>> 2009/11/3 Doug Blank <doug.blank@...>:
>>    
>>> On Mon, Nov 2, 2009 at 9:16 PM, Gerald Britton <gerald.britton@...> wrote:
>>>      
>>>> Not that I use it, but will this mod work on Windows?
>>>>        
>>> It could, if someone wanted to spend a bit more time on it. If we felt
>>> like this was something that we wanted to have for all users, it would
>>> be worth refining. However, as it is, it will only show up in a
>>> development environment and I don't develop under windows. Things that
>>> would have to be fixed to work in the more general case:
>>>
>>> 1) make the editor run in the background
>>> 2) deal with path separator issues
>>> 3) define (and evaluate) an environment variable in the platform-appropriate way
>>>      
>> Doug,
>>
>> please change this to use the gramps way of editing a file, so use the
>> open_file_with_default_application function from gui/utils.py
>> I will work on mac, windows and linux.
>>    
>
> Ah, of course. Done in trunk revision 13489.
>
>  
>> I don't mind you defining an environment variable to override this if
>> you like that, but then not sure something generic as EDITOR is how it
>> should be done.
>>    
>
> A few other programs use EDITOR (including SVN I believe). But others
> can refine this if you want.
>
> -Doug
>
>  
>> Benny
>>
>>    
>>> Perhaps those are easy to solve, but I've got a full plate...
>>>
>>> -Doug
>>>
>>>      
>>>> On Mon, Nov 2, 2009 at 8:54 PM, Doug Blank <doug.blank@...> wrote:
>>>>        
>>>>> Just a heads up that I just added a property to plugins, "fpath" to go
>>>>> with "fname". "fpath" is the actual path to the "fname" (filename) of
>>>>> the plugin. At the time the plugin gets its module name (mod_name) I
>>>>> also assign the directory from which it was just registered.
>>>>>
>>>>> The upside to this is that this enables an Edit button in the
>>>>> Registered Plugin tab (when __debug__ is true) that allows you to
>>>>> highlight the plugin and edit it from inside gramps. It uses the
>>>>> editor defined in the environment variable EDITOR (if defined) or
>>>>> gedit otherwise. You can thus startup gramps, like:
>>>>>
>>>>> EDITOR=emacs python src/gramps.py
>>>>>
>>>>> and you can do quick edits on a particular plugin, without having to
>>>>> find it on your system. I also added the file location in the info
>>>>> box. This may help debug some issues from the bug tracker when talking
>>>>> to users, and they can't find a plugin.
>>>>>
>>>>> This is in trunk revision 13484.
>>>>>
>>>>> -Doug
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>>>> is the only developer event you need to attend this year. Jumpstart your
>>>>> developing skills, take BlackBerry mobile applications to market and stay
>>>>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>>>>> http://p.sf.net/sfu/devconference
>>>>> _______________________________________________
>>>>> Gramps-devel mailing list
>>>>> Gramps-devel@...
>>>>> https://lists.sourceforge.net/lists/listinfo/gramps-devel
>>>>>
>>>>>          
>>>>
>>>> --
>>>> Gerald Britton
>>>>
>>>>        
>>> ------------------------------------------------------------------------------
>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>> is the only developer event you need to attend this year. Jumpstart your
>>> developing skills, take BlackBerry mobile applications to market and stay
>>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>>> http://p.sf.net/sfu/devconference
>>> _______________________________________________
>>> Gramps-devel mailing list
>>> Gramps-devel@...
>>> https://lists.sourceforge.net/lists/listinfo/gramps-devel
>>>
>>>      
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Gramps-devel mailing list
> Gramps-devel@...
> https://lists.sourceforge.net/lists/listinfo/gramps-devel
>
>
>  

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Gramps-devel mailing list
Gramps-devel@...
https://lists.sourceforge.net/lists/listinfo/gramps-devel