[rt-users] What modules do I need to load to use the RTFM 2.4.3 API?
William J. Horka
whorka at hmdc.harvard.edu
Mon Jan 3 18:00:51 EST 2011
Kevin Falcone wrote:
>
> RT::FM expects RT to already be configured when RT/FM.pm is loaded.
> This should be a better incant, since it allows RT to munge INC to
> include plugins for you (rather than needing to include paths into
> plugins)
>
> perl -Ilocal/lib -Ilib -e 'BEGIN { use RT; RT::LoadConfig; RT->Init();
> }; use RT::FM'
That works much better. Thanks! Perhaps worth noting explicitly: the
"use RT::FM" statement must be outside the BEGIN block for this to succeed.
Now we can finally stop hacking on the old RT 2.x StockAnswers
<http://requesttracker.wikia.com/wiki/StockAnswers> and move to RTFM! I
just need to figure out how to convince RTFM to insert plain text
article body custom fields into tickets literally, without processing
<anglebrackets> as HTML tags and rendering entity references.
FWIW, I hope no one is still using our hacked RT 3.x StockAnswers linked
above, but just in case, here's the script I'm using to import the
response templates to RTFM articles (it ain't pretty, and it'll need the
custom debug module calls stripped out for it to work portably):
http://people.hmdc.harvard.edu/~whorka/rtStockAnswersToRTFM.pl
-Bill
--
William Horka
UNIX Systems Administrator
Harvard-MIT Data Center
More information about the rt-users
mailing list