[cgiapp] interrupt run process in base class ?

silent silent2600 at gmail.com
Thu Jul 14 02:18:36 EDT 2011


my code structure is like this:

/Base.pm
/-------------------/User.pm
/-------------------/User/AAA.pm BBB.pm CCC.pm
/-------------------/Admin.pm
/-------------------/Admin/Auth.pm OP1.pm OP2.pm OP3.pm

User.pm and Admin.pm 'use base' Base.pm,
also defined cgiapp_prerun _ini ... in Base.pm,

what I want is any runmode in Admin::OP1 Admin::OP2 Admin::OP3 should
only be run with login-ed user.
can this be done in Admin.pm instead of calling check function in
every runmode ?
also I do not want Admin.pm override defined cgiapp_prerun in Base.pm.


thanks


More information about the cgiapp mailing list