[EP-tech] Re: Documentation error in RepositoryConfig.pm

Tim Brody tdb2 at ecs.soton.ac.uk
Wed Jan 30 16:27:25 GMT 2013

On Wed, 2013-01-30 at 10:50 +0000, John Salter wrote:
> Hi,
> This was noted by Graham at Symplecitc:
> https://svn.eprints.org/eprints/trunk/system/perl_lib/EPrints/RepositoryConfig.pm, line 34, the example usage uses ${$params{rc}}.
> This is displayed on the Wiki:
> http://wiki.eprints.org/w/API:EPrints/RepositoryConfig

Fixed and, yes, the confusion arises because most code does:

my $rc = $params{return_code};
$$rc = 301; # or whatever

This kludge is because the return from the callback is the *trigger*
code (OK or DONE), which controls whether more triggers should be

Given the number of times this has bitten me I'd probably think of a
different solution now :-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part
Url : http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20130130/32df4826/attachment.bin 

More information about the Eprints-tech mailing list