[Rt-devel] Connecting from one script to multiple RT
Christian Loos
cloos at netcologne.de
Thu May 6 07:09:09 EDT 2010
Am 06.05.2010 12:37, schrieb Emmanuel Lacour:
> Hi RT hackers,
>
> I'm writing a script that should copy some RT objects from one RT to
> another.
>
> For small set of objects, I can load them from first RT and save themin
> memory, then use "RT->Config->Set(DatabaseHost..." and "RT::Init();" to
> switch to the target and re-create objects on target.
>
> But for a lot of objects, that will be too slow, and use too much
> memory, so I would like to do thinks like:
>
> my $SrcUser = RTSRC::User->new ...
> my $DstUser = RTDST::User->new ...
>
> any idea how to achieve this? I looked deep in perl object programming
> but didn't found a solution (maybe not deep enough). I thought also on
> doing a copy of the code and rename every RT:: to RTSrc::, but that's ugly and not
> sure it will works.
>
> if it's not possible, I will do sql on src and RTApi on target :(
>
Hi Emmanuel,
how about using REST to connect to one or both RT?
--
Chris
More information about the rt-devel
mailing list