[jifty-devel] Login plugin

John Peacock jpeacock at rowman.com
Mon Jul 10 09:32:40 EDT 2006


bart at urnet.com.au wrote:
> Some of them were because I didn't create the appropriate subclasses
> for my App but I'm currently stuck with the following error when I try
> to signup an account.

The only subclass that you have to create (currently) is the User.pm 
class (which can be a trivial wrapper around the ...Login::Model::User 
class).  In particular, you do not need to provide a CurrentUser class 
(see below).

> 
> It appears to be fine up until the point the notification is being
> sent out.
> 
> The error is: FATAL - Can't locate object method "nobody" via package "AHSupport::CurrentUser" at /usr/local/share/perl/5.8.8/Jifty/Notification.pm line 209.
> 
> There doesn't seem to be a nobody method either in
> J::P::Login::CurrentUser.pm nor in J::CurrentUser.pm

I got distracted by other stuff this week; I've been meaning to create a 
README to explain how to use the Login plugin.  The one thing that I 
forgot to document is that, when you are using "Mailer: SMTP" you have 
to add a FROM address, which for the moment is done by adding the 
following stanza to your config.yaml:

   AdminEmail: 'wifty at example.com'

(or whatever address you want to use).  I think I'm going to change that 
to automatically generate a null return address '<>' if there is no 
address specified.

However, it looks like following change is causing your "nobody" error:

   r15111 at zoq-fot-pik:  chmrr | 2006-07-07 14:26:54 -0400
    * Skip nobody and superuser when we do notifications

Did you try a 'schema --setup' to see if that works?  If you created 
your own CurrentUser class, you may have not gotten the correct fields 
defined.  I am not at home, so it is painful (at best) to test Wifty 
from here (ssh-forwarded-X-session over ADSL is a bitch).  I'll confirm 
that the Login code works with the latest trunk changes tonight...

John

-- 
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4501 Forbes Boulevard
Suite H
Lanham, MD  20706
301-459-3366 x.5010
fax 301-429-5748


More information about the jifty-devel mailing list