EPrints Technical Mailing List Archive

Message: #05700


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

Re: [EP-tech] Adding user messages from CGI


from cgi/logout:

$page->appendChild( $session->render_message(
   "message",
   $session->make_text( "Logout OK!" ) ) );

add_message works only in plugins, and it calls $session->render_message anyway.

Il 16/05/2016 10:58, Alan.Stiles ha scritto:

Any clue if there is a function to add a message to the message queue from a cgi script? I can use $self->{processor}->add_message() from within a plugin but how do I do this without a ‘$self’ ?

Cheers,

Alan

-- The Open University is incorporated by Royal Charter (RC 000391), an exempt charity in England & Wales and a charity registered in Scotland (SC 038302). The Open University is authorised and regulated by the Financial Conduct Authority.


*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/
*** EPrints developers Forum: http://forum.eprints.org/