[rt-users] Further RTx::Shredder Errors

2007-02-21 Thread Mathew Snyder
>From this RTx::Shredder::Init( force => 1 ); my $shredder = new RTx::Shredder(RT::SystemUser); if ($ans =~ m/^(y|yes)$/i){ # my ($fname, $fh) = $shredder->SetFile( FromStorage => 0, FileName => ’/usr/local/rt-3.6.1/var/data/RTx-Shredder/Shredder-Users_.sql’ ); my $email;

Re: [rt-users] Further RTx::Shredder Errors

2007-02-21 Thread Mathew Snyder
I'm looking through the code for Shredder.pm trying to figure this out. I see a PutResolver method as well as ApplyResolver method. However, I'm coming up short on how to tell it what to use as the dependency resolver. Using the CLI I would run rtx-shredder --force --plugin 'Users=status,any;ema

Re: [rt-users] Further RTx::Shredder Errors

2007-02-22 Thread Mathew Snyder
I think I'm making progress. This is what I now have RTx::Shredder::Init( force => 1 ); my $shredder = new RTx::Shredder(RT::SystemUser); my $resolver = new RTx::Shredder::Plugin::Users(RT::SystemUser); if ($ans =~ m/^(y|yes)$/i){ my ($fname, $fh) = $shredder->SetFile( FromStorage => 0, F

Re: [rt-users] Further RTx::Shredder Errors

2007-02-22 Thread Ruslan Zakirov
Look into the User plugin, it sets resolver for these dependencies. On 2/22/07, Mathew Snyder <[EMAIL PROTECTED]> wrote: I think I'm making progress. This is what I now have RTx::Shredder::Init( force => 1 ); my $shredder = new RTx::Shredder(RT::SystemUser); my $resolver = new RTx::Shredder::P

Re: [rt-users] Further RTx::Shredder Errors

2007-02-23 Thread Mathew
I'm not seeing what you mean. Under the Shredder/Plugin directory is Users.pm which holds the SetResolver method. This calls the PutResolver method (I don't know where the PutResolver method is found). However, User.pm which is in the Shredder directory (Not in the Shredder/Plugin directory) has

Re: [rt-users] Further RTx::Shredder Errors

2007-02-24 Thread Mathew Snyder
I have been looking at this and still haven't figured out what I need to change to make it work. Ruslan mentioned the User plugin. There's a Users plugin but no singular. the User.pm file under the Shredder directory has no method for setting the resolver as far as I can tell. User.pm under the