[rt-users] What modules do I need to load to use the RTFM 2.4.3 API?

Kevin Falcone falcone at bestpractical.com
Tue Jan 4 08:22:56 EST 2011


On Mon, Jan 03, 2011 at 06:00:51PM -0500, William J. Horka wrote:
> 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.

Yes, because RT->Init munges @INC and use RT::FM runs at compile time,
before RT->Init can affect @INC.

> 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.

There is a 2 or 3 line snippet of code in RTFM that affects html tags,
you should be able to find and disable it.

-kevin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20110104/86805710/attachment.sig>


More information about the rt-users mailing list