Sorry, please ignore this.  I reset my SBCL and discovered that it was not
this change that made it work.  Sorry about the confusion.

On Sat, Feb 19, 2011 at 6:57 PM, Anthony <[email protected]>wrote:

> I think I may have found a bug in the PREDICATE-PRESENTATION class.
> It is rendering T and NIL as Yes and No as it should.  But when I have
> something that is true and non-nil, like the result of a call to
> MEMBER, it renders the class name of what MEMBER returns instead of
> Yes.  This change below seems to fix the problem:
>
>
> --- a/src/views/types/boolean.lisp      Thu Feb 17 19:30:30 2011 +0100
> +++ b/src/views/types/boolean.lisp      Sat Feb 19 18:48:19 2011 -0800
> @@ -23,7 +23,7 @@
>   predicates, where nil is treated as false, and any other value is
>   treated as true."))
>
> -(defmethod render-view-field-value ((value null) (presentation
> predicate-presentation)
> +(defmethod render-view-field-value (value (presentation predicate-
> presentation)
>                                    field view widget obj &rest args)
>   (apply #'call-next-method value presentation field view widget obj
>         :ignore-nulls-p t
>
>
> I think the problem is there is no specialization on non-null values.
> I could be wrong but like I said, it seemed to fix the problem for me.
>
> Thanks!
>
> Anthony
>
> --
> 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.
>
>

-- 
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