From: Chris W. <la...@us...> - 2004-12-02 03:19:03
|
Update of /cvsroot/openinteract/OpenInteract2/doc/Manual In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21484/doc/Manual Modified Files: Changes.pod Log Message: add a couple more error/status message shortcuts Index: Changes.pod =================================================================== RCS file: /cvsroot/openinteract/OpenInteract2/doc/Manual/Changes.pod,v retrieving revision 1.55 retrieving revision 1.56 diff -C2 -d -r1.55 -r1.56 *** Changes.pod 1 Dec 2004 05:40:14 -0000 1.55 --- Changes.pod 2 Dec 2004 03:18:52 -0000 1.56 *************** *** 212,225 **** =item * ! Add shortcut methods C<add_error_key()> and C<add_status_key()> -- so ! you can replace: $self->param_add( error_msg => $self->_msg( 'some.key', $msg_param ) ); $self->param_add( status_msg => $self->_msg( 'some.key', $msg_param ) ); ! with: ! $self->add_error_key( 'some.key', $msg_param ); ! $self->add_status_key( 'some.key', $msg_param ); =back --- 212,230 ---- =item * ! Add shortcut methods C<add_error()>, C<add_error_key()>, ! C<add_status()>, and C<add_status_key()> -- so you can replace: $self->param_add( error_msg => $self->_msg( 'some.key', $msg_param ) ); $self->param_add( status_msg => $self->_msg( 'some.key', $msg_param ) ); ! with either: ! $self->add_error( "You messed up!" ); ! $self->add_status( "Things are great!" ); ! ! or (if you're using localized messages): ! ! $self->add_error_key( 'some.l10n.key', $msg_param ); ! $self->add_status_key( 'some.l10n.key', $msg_param ); =back |