EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #00733
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Can_call for nested config
- To: "'eprints-tech@ecs.soton.ac.uk'" <eprints-tech@ecs.soton.ac.uk>
- Subject: [EP-tech] Can_call for nested config
- From: John Salter <J.Salter@leeds.ac.uk>
- Date: Fri, 15 Jun 2012 15:44:05 +0100
I'm trying to do things the *right* way, using can_call I have a config file that includes something like: my $ethos = {}; $c->{ethos} = $ethos; $ethos->{'leeds'}->{'thesis_type_match'} = sub { #stuff }; $ethos->{'sheffield'}->{'thesis_type_match'} = sub { #other stuff }; In my code, I'm trying to do something like: $institution= 'leeds'; if ( $repository->can_call( 'ethos', $institution, 'thesis_type_match' ) ){ #stuff }; But it isn't working. Should I be able to do this? If I just use: $c->{'thesis_type_match'} = sub { #stuff } It works - but that would mean config wasn't contained in 'ethos'..? Cheers, John
- Follow-Ups:
- [EP-tech] Re: Can_call for nested config
- From: Sebastien Francois <sf2@ecs.soton.ac.uk>
- [EP-tech] Re: Can_call for nested config
- Prev by Date: [EP-tech] Re: Upgrading REF2014 plugin issues
- Next by Date: [EP-tech] Re: Can_call for nested config
- Previous by thread: [EP-tech] DevCSI Developer Challenge at Open Repositories 12 Edinburgh, Scotland, UK
- Next by thread: [EP-tech] Re: Can_call for nested config
- Index(es):