[jifty-devel] Greetings && Wifty fails: "WARN - 'Can't locate
object method "api" via package "Jifty" at
bin/../lib/Wifty/Dispatcher.pm line 6, <GEN0> line 10."
Robert J Taylor
robert at rjamestaylor.com
Fri May 5 14:30:32 EDT 2006
I am pleased to have been introduced to Jifty and want to shout out a
"thanks!" to the development team.
After running through the tutorial today ("success on Mac OS X.4.6!"
-- after running:
sudo perl -MCPAN -e 'install Jifty'
sudo perl -MCPAN -e 'force install Jifty'
sudo perl -MCPAN -e 'install YAML'
)
Then I went to Wifty, d/l the trunk from svn. After creating the
schema, I started the server. Ran into a problem:
"WARN - 'Can't locate object method "api" via package "Jifty" at
bin/../lib/Wifty/Dispatcher.pm line 6, <GEN0> line 10."
Looking through the commits I found that the change from "Jifty->web-
>deny_actions" to "Jifty->api->deny" caused the problem, as I didn't
have the latest Jifty sources through my installation method (cpan).
Of course, if I obtained the sources from svn and used the jifty-jsan
branch this probably would have worked (haven't tried, but assume it
would b/c no one else has referenced the issue). As it was, I took
the easier course of action and backed out the patch to Dispatcher.pm
referenced in
[Jifty-commit] r810 - in wifty/trunk: lib/Wifty web/templates/let
namely:
==========================================
--- Dispatcher.pm (original)
+++ Dispatcher.pm 2006-05-05 13:14:45.000000000 -0500
@@ -3,7 +3,7 @@
# Generic restrictions
under '/', run {
- Jifty->api->deny('ConfirmEmail');
+ Jifty->web->deny_actions('ConfirmEmail');
};
# Default page
@@ -104,7 +104,7 @@
## LetMes
before qr'^/let/(.*)' => run {
- Jifty->api->deny(qr/^Wifty::Dispatcher/);
+ Jifty->web->deny_actions(qr/^Wifty::Dispatcher/);
my $let_me = Jifty::LetMe->new();
$let_me->from_token($1);
==========================================
Thought I'd record this for those looking in the archives for a
solution to this problem with Wifty. Of course, I'm sure I'll be
keeping Jifty up-to-date with svn from this point on, so this temp
patch back-out will be re-applied shortly ;-).
Robert J Taylor
robert at rjamestaylor.com
More information about the jifty-devel
mailing list