Yes, code should be fixed and tested, if you can do it you are welcome.
It is in low priority for me.

вторник, 3 февраля 2015 г., 22:35:14 UTC+2 пользователь Jason Miller 
написал:
>
> On Wednesday, January 14, 2015 at 3:51:27 PM UTC-8, Jason Miller wrote:
>>
>> I needed a quick list presentation and so used the widget :present-as 
>> with a child-class of gridedit.  This appears to work, but I get warnings 
>> that make no sense; namely "Implicitly calling MAKE-WIDGET to render 
>> #<FUNCTION ...>" and "Cannot update the widget children of #<FUNCTION ...>" 
>> where the function is what I'm using as the argument to :widget-init
>>
>
> So I tracked this down to the following code:
> (defmethod widget-children ((obj dataform) &optional type)
>   "Returns all widgets from all view fields with presentation 
> widget-presentation"
>   (let ((widgets))
>     (map-view-fields 
>       (lambda (field-info)
>         (when (typep (slot-value (field-info-field field-info) 
> 'presentation) 'widget-presentation)
>           (push (widget-presentation-widget (slot-value (field-info-field 
> field-info) 'presentation)) widgets)))
>       (dataform-form-view obj)
>       (dataform-data obj))
>     widgets))
>
>  Since widget-presentation-widget must be funcallable, there is no way 
> that it will be a widget; furthermore the view itself takes care of 
> redrawing itself when the dataform is dirty.  Is it safe to just completely 
> remove this method?
>

-- 
You received this message because you are subscribed to the Google Groups 
"weblocks" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/weblocks.
For more options, visit https://groups.google.com/d/optout.

Reply via email to