Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Request Tracker: Devel

Help with Module::Install(::RTx)

 

 

Request Tracker devel RSS feed   Index | Next | Previous | View Threaded


torsten.brumm at Kuehne-Nagel

Nov 9, 2009, 7:05 AM

Post #1 of 6 (1262 views)
Permalink
Help with Module::Install(::RTx)

Hi RT Developers,
i need some help with Module::Install::RTx, i'm trying to create my first RTx, read the whole day the web and came to a point, Module::Install(::RTx) can help me.

I have a tiny RTx, one Callback, one html File and one perl module, let say:

/html/Callbacks/RT-Extension-MyGreatExtension/Ticket/Element/Tabs/Default
/html/Ticket/MyGreatExtension.html
/local/lib/RT/Extension/MyGreatExtension/Name.pm

i moved them (after testing a lot inside RT) to my homedir, lets say:

~/devel/MyGreatExtension-Source

and tried like i read: h2xs -X -n RT::Extension::MyGreatExtension what ends up in a new SubDir:

Writing RT-Extension-MyGreatExtension/lib/RT/Extension/MyGreatExtension.pm
Writing RT-Extension-MyGreatExtension/Makefile.PL
Writing RT-Extension-MyGreatExtension/README
Writing RT-Extension-MyGreatExtension/t/RT-Extension-MyGreatExtension.t
Writing RT-Extension-MyGreatExtension/Changes
Writing RT-Extension-MyGreatExtension/MANIFEST

But my Callbacks and HTML Files are missing.

Should i copy them by hand to this new subdir and add to MANIFEST? I read already in the list (from Kevin i think) that i also have manually add this part to the auto generated Makefile.PL:

use inc::Module::Install;
RTx('RT-Extension-MyGreatExtension');
author('Torsten Brumm <mymail [at] email>');
license('perl');

&WriteAll;


My Questions: Is this the correct way or not?

Thanks for any hint.

Torsten

Kuehne + Nagel (AG & Co.) KG, Geschaeftsleitung: Hans-Georg Brinkmann (Vors.), Dirk Blesius (Stellv.), Reiner Heiken (Stellv.), Bruno Mang, Alfred Manke, Christian Marnetté (Stellv.), Mark Reinhardt (Stellv.), Jens Wollesen, Rainer Wunn, Sitz: Bremen, Registergericht: Bremen, HRA 21928, USt-IdNr.: DE 812773878, Persoenlich haftende Gesellschaft: Kuehne & Nagel A.G., Sitz: Contern/Luxemburg Geschaeftsfuehrender Verwaltungsrat: Klaus-Michael Kuehne



_______________________________________________
List info: http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel


jpierce at cambridgeenergyalliance

Nov 9, 2009, 7:10 AM

Post #2 of 6 (1188 views)
Permalink
Re: Help with Module::Install(::RTx) [In reply to]

Use an existing extension for comparison.

--
Cambridge Energy Alliance: Save money. Save the planet.
_______________________________________________
List info: http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel


jesse at bestpractical

Nov 9, 2009, 7:17 AM

Post #3 of 6 (1180 views)
Permalink
Re: Help with Module::Install(::RTx) [In reply to]

On Mon, Nov 09, 2009 at 04:05:15PM +0100, Brumm, Torsten / Kuehne + Nagel / Ham MI-ID wrote:
> Hi RT Developers,
>
> I have a tiny RTx, one Callback, one html File and one perl module, let say:
>
> /html/Callbacks/RT-Extension-MyGreatExtension/Ticket/Element/Tabs/Default
> /html/Ticket/MyGreatExtension.html
> /local/lib/RT/Extension/MyGreatExtension/Name.pm
>



> i moved them (after testing a lot inside RT) to my homedir, lets say:
>
> ~/devel/MyGreatExtension-Source
>
> and tried like i read: h2xs -X -n RT::Extension::MyGreatExtension what ends up in a new SubDir:

h2x is not your friend here. You don't need it.


> Should i copy them by hand to this new subdir and add to MANIFEST? I read already in the list (from Kevin i think) that i also have manually add this part to the auto generated Makefile.PL:
>
> use inc::Module::Install;
> RTx('RT-Extension-MyGreatExtension');
> author('Torsten Brumm <mymail [at] email>');
> license('perl');
>
> &WriteAll;

This looks like a fine Makefile.PL, except that I'd generally recommend
RTx over RT-Extension.

You'll want to create that Makefile.PL and then these directories:

lib/
html/
html/Callbacks/RTx-MyGreatExtension/
html/RTx-MyGreatExtension/

Your extension lib should go in lib/RTx/MyGreatExtension.pm and have a
package line that reads "package RTx::MyGreatExtension;"

Rather than putting your .html file in Ticket, I'd recommend putting it
in RTx-MyGreatExtension/Ticket/
(note that to build your extension, you'll need to install
Module::Install::Admin and Module::Install::RTx from CPAN)

You'll need a MANIFEST containing a list of all the files in your
distribution.

Most everything else is optional.

Best,
Jesse
_______________________________________________
List info: http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel


torsten.brumm at Kuehne-Nagel

Nov 9, 2009, 7:35 AM

Post #4 of 6 (1189 views)
Permalink
Re: Help with Module::Install(::RTx) [In reply to]

Thanks to all for this hints, now i will go and create my first RTx :-))

Torsten


Kuehne + Nagel (AG & Co.) KG, Geschaeftsleitung: Hans-Georg Brinkmann (Vors.), Dirk Blesius (Stellv.), Reiner Heiken (Stellv.), Bruno Mang, Alfred Manke, Christian Marnetté (Stellv.), Mark Reinhardt (Stellv.), Jens Wollesen, Rainer Wunn, Sitz: Bremen, Registergericht: Bremen, HRA 21928, USt-IdNr.: DE 812773878, Persoenlich haftende Gesellschaft: Kuehne & Nagel A.G., Sitz: Contern/Luxemburg Geschaeftsfuehrender Verwaltungsrat: Klaus-Michael Kuehne



-----Urspruengliche Nachricht-----
Von: Jesse Vincent [mailto:jesse [at] bestpractical]
Gesendet: Montag, 9. November 2009 16:18
An: Brumm, Torsten / Kuehne + Nagel / Ham MI-ID
Cc: Rt-devel [at] lists
Betreff: Re: [Rt-devel] Help with Module::Install(::RTx)




On Mon, Nov 09, 2009 at 04:05:15PM +0100, Brumm, Torsten / Kuehne + Nagel / Ham MI-ID wrote:
> Hi RT Developers,
>
> I have a tiny RTx, one Callback, one html File and one perl module, let say:
>
> /html/Callbacks/RT-Extension-MyGreatExtension/Ticket/Element/Tabs/Defa
> ult
> /html/Ticket/MyGreatExtension.html
> /local/lib/RT/Extension/MyGreatExtension/Name.pm
>



> i moved them (after testing a lot inside RT) to my homedir, lets say:
>
> ~/devel/MyGreatExtension-Source
>
> and tried like i read: h2xs -X -n RT::Extension::MyGreatExtension what ends up in a new SubDir:

h2x is not your friend here. You don't need it.


> Should i copy them by hand to this new subdir and add to MANIFEST? I read already in the list (from Kevin i think) that i also have manually add this part to the auto generated Makefile.PL:
>
> use inc::Module::Install;
> RTx('RT-Extension-MyGreatExtension');
> author('Torsten Brumm <mymail [at] email>'); license('perl');
>
> &WriteAll;

This looks like a fine Makefile.PL, except that I'd generally recommend RTx over RT-Extension.

You'll want to create that Makefile.PL and then these directories:

lib/
html/
html/Callbacks/RTx-MyGreatExtension/
html/RTx-MyGreatExtension/

Your extension lib should go in lib/RTx/MyGreatExtension.pm and have a package line that reads "package RTx::MyGreatExtension;"

Rather than putting your .html file in Ticket, I'd recommend putting it in RTx-MyGreatExtension/Ticket/ (note that to build your extension, you'll need to install Module::Install::Admin and Module::Install::RTx from CPAN)

You'll need a MANIFEST containing a list of all the files in your distribution.

Most everything else is optional.

Best,
Jesse

_______________________________________________
List info: http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel


torsten.brumm at Kuehne-Nagel

Nov 9, 2009, 8:32 AM

Post #5 of 6 (1177 views)
Permalink
Re: Help with Module::Install(::RTx) [In reply to]

OK, finally done, if anybody likes to test: http://github.com/tbrumm/RT-Extension-ShowRelations

Torsten

-----Ursprüngliche Nachricht-----
Von: rt-devel-bounces [at] lists [mailto:rt-devel-bounces [at] lists] Im Auftrag von Brumm,Torsten / Kuehne + Nagel / Ham MI-ID
Gesendet: Montag, 9. November 2009 16:36
An: Jesse Vincent
Cc: Rt-devel [at] lists
Betreff: Re: [Rt-devel] Help with Module::Install(::RTx)

Thanks to all for this hints, now i will go and create my first RTx :-))

Torsten


Kuehne + Nagel (AG & Co.) KG, Geschaeftsleitung: Hans-Georg Brinkmann (Vors.), Dirk Blesius (Stellv.), Reiner Heiken (Stellv.), Bruno Mang, Alfred Manke, Christian Marnetté (Stellv.), Mark Reinhardt (Stellv.), Jens Wollesen, Rainer Wunn, Sitz: Bremen, Registergericht: Bremen, HRA 21928, USt-IdNr.: DE 812773878, Persoenlich haftende Gesellschaft: Kuehne & Nagel A.G., Sitz: Contern/Luxemburg Geschaeftsfuehrender Verwaltungsrat: Klaus-Michael Kuehne



-----Urspruengliche Nachricht-----
Von: Jesse Vincent [mailto:jesse [at] bestpractical]
Gesendet: Montag, 9. November 2009 16:18
An: Brumm, Torsten / Kuehne + Nagel / Ham MI-ID
Cc: Rt-devel [at] lists
Betreff: Re: [Rt-devel] Help with Module::Install(::RTx)




On Mon, Nov 09, 2009 at 04:05:15PM +0100, Brumm, Torsten / Kuehne + Nagel / Ham MI-ID wrote:
> Hi RT Developers,
>
> I have a tiny RTx, one Callback, one html File and one perl module, let say:
>
> /html/Callbacks/RT-Extension-MyGreatExtension/Ticket/Element/Tabs/Defa
> ult
> /html/Ticket/MyGreatExtension.html
> /local/lib/RT/Extension/MyGreatExtension/Name.pm
>



> i moved them (after testing a lot inside RT) to my homedir, lets say:
>
> ~/devel/MyGreatExtension-Source
>
> and tried like i read: h2xs -X -n RT::Extension::MyGreatExtension what ends up in a new SubDir:

h2x is not your friend here. You don't need it.


> Should i copy them by hand to this new subdir and add to MANIFEST? I read already in the list (from Kevin i think) that i also have manually add this part to the auto generated Makefile.PL:
>
> use inc::Module::Install;
> RTx('RT-Extension-MyGreatExtension');
> author('Torsten Brumm <mymail [at] email>'); license('perl');
>
> &WriteAll;

This looks like a fine Makefile.PL, except that I'd generally recommend RTx over RT-Extension.

You'll want to create that Makefile.PL and then these directories:

lib/
html/
html/Callbacks/RTx-MyGreatExtension/
html/RTx-MyGreatExtension/

Your extension lib should go in lib/RTx/MyGreatExtension.pm and have a package line that reads "package RTx::MyGreatExtension;"

Rather than putting your .html file in Ticket, I'd recommend putting it in RTx-MyGreatExtension/Ticket/ (note that to build your extension, you'll need to install Module::Install::Admin and Module::Install::RTx from CPAN)

You'll need a MANIFEST containing a list of all the files in your distribution.

Most everything else is optional.

Best,
Jesse

_______________________________________________
List info: http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel
_______________________________________________
List info: http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel


jpierce at cambridgeenergyalliance

Nov 9, 2009, 10:54 AM

Post #6 of 6 (1178 views)
Permalink
Re: Help with Module::Install(::RTx) [In reply to]

>DESCRIPTION
> If you work a lot with ticket links, it is hard to keep an overview
> of all tickets and related ticket status. Normally you have to open
> each ticket to see the status/owner, with this RT-Extension you can
> see all your tickets (from a search) with their related tickets
Sweet! I was just starting to work on something similar; graph relation
amongst all tickets in a result set. Maybe I can use this to keep track
of my TODO list instead.

I'll try to play with it soon, and report back so you can push it to CPAN :-P
_______________________________________________
List info: http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel

Request Tracker devel RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.