I was trying to do a simple login request and can't really figure out
how everything fits together and don't completely understand where the
problems even are.  I have the following code:

(in-package :contentrees)

(defun make-main-page ()
  "Lays out the main page."
  (make-instance 'composite :widgets
                 (list
                  (make-instance 'login
                                 :on-login #'check-login))))

(defun check-login (obj login-info)
  (format t "~a" (email login-info)))

check-login gets called when I click on login, but then the debugger
gives me this error:

There is no applicable method for the generic function
  #<STANDARD-GENERIC-FUNCTION WEBLOCKS:EMAIL (1)>
when called with arguments
  (#<#:G1552 {11F61DA1}>).
   [Condition of type SIMPLE-ERROR]

In the debugger, login-info appears as a standard object with email
and password properties (filled in correctly).  I am just not entirely
sure how to access them - I thought I could just get to them like I do
with a CLOS object usually, but I also don't know that much about CLOS
and feel like there may be a problem with doing this across
packages.

Thanks,
Saikat
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"weblocks" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/weblocks?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to