EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #01501
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Re: Documentation error in RepositoryConfig.pm
- To: eprints-tech@ecs.soton.ac.uk
- Subject: [EP-tech] Re: Documentation error in RepositoryConfig.pm
- From: Tim Brody <tdb2@ecs.soton.ac.uk>
- Date: Wed, 30 Jan 2013 16:27:25 +0000
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 called. Given the number of times this has bitten me I'd probably think of a different solution now :-) /Tim.
Attachment:
signature.asc
Description: This is a digitally signed message part
- References:
- [EP-tech] Documentation error in RepositoryConfig.pm
- From: John Salter <J.Salter@leeds.ac.uk>
- [EP-tech] Documentation error in RepositoryConfig.pm
- Prev by Date: [EP-tech] Log out bug?
- Next by Date: [EP-tech] advice on creating a virtual DataObj
- Previous by thread: [EP-tech] Documentation error in RepositoryConfig.pm
- Next by thread: [EP-tech] Log out bug?
- Index(es):