On Dec 8, 2006, at 6:41 AM, In-Suk Joung wrote:
Overriding methods in MyApp::Action::CreateXxx was successful but I
found some weird behavior of administration menu.
I added following lines in my Group Model class.
I suspect that you probably want to override the whole class. so
create a lib/MyWeblog/Action/CreateGroup.pm
package MyWeblog::Action::CreateGroup;
use warnings;
use strict;
use base qw/Jifty::Action::Record::Create/;
.....
-j
package MyWeblog::Action::CreateGroup;
sub arguments {
my $self = shift;
my $arg = $self->SUPER::arguments(@_);
# Some manipulation of $arg
return $arg;
}
When I connect the administration menu for the first time, it does
not give me any error, and it seems to work fine. Strangely, if I
try to connect the menu again, this error occurs:
ERROR - Can't locate MyWeblog/Action/CreateGroup/SUPER.pm in @INC
(@INC contains: C:\Documents and Settings\INSUK JOUNG\My Documents
\Jifty\MyWeblog/lib c:/Perl/site/lib c:/Perl/lib .
Jifty::ClassLoader=HASH(0x351cbe0)) at c:/Perl/site/lib/Jifty/
Util.pm line 234.
Stack:
[C:\Perl\site\lib\Jifty\Util.pm:234]
[C:\Per! l\site\lib\Jifty\Util.pm:234]
[C:\Perl\site\lib\auto\Jifty\web\templates\__jifty\admin
\index.html:23]
[C:\Perl\site\lib\auto\Jifty\web\templates\_elements\wrapper:16]
[C:\Perl\site\lib\auto\Jifty\web\templates\__jifty\admin
\index.html:32]
[C:\Perl\site\lib\auto\Jifty\web\templates\__jifty\admin
\autohandler:10]
[C:\Perl\site\lib\auto\Jifty\web\templates\autohandler:10]
at C:\Perl\site\lib\auto\Jifty\web\templates\__jifty\admin
\index.html line 23
After that, 'Jifty Administrative Console' page also shows the
weird class, MyWeblog::Action::CreateGroup::SUPER under the subhead
of 'Actions'
Probably Jifty mistakes the method, SUPER::arguments for a class.
What do you think I need to see to track down this problem?
-----------
InSuk Joung
-----------
"우리 인터넷, Daum" http://www.daum.net 『평생쓰는 무
료 한메일넷』
_______________________________________________
jifty-devel mailing list
[email protected]
http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel
_______________________________________________
jifty-devel mailing list
[email protected]
http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel