[Seaside] WACallbackRegistry>>handle:

Diogenes Moreira diogenes.moreira at gmail.com
Wed Jan 5 13:56:36 UTC 2011


Well, that work for me :)...

On Tue, Jan 4, 2011 at 10:46 PM, Julian Fitzell <jfitzell at gmail.com> wrote:

> Really? I thought #sorted was just *added* to Pharo recently... (and
> it should be tested for and provided by Grease on any platform that
> doesn't have it, in any case)
>
> #asSortedCollection is not the same thing, since it returns a
> SortedCollection while #sorted should return an object of the same
> class as the receiver (or an Array if that is not possible).
>
> Julian
>
> On Tue, Jan 4, 2011 at 6:58 AM, Facundo Vozzi <facundov79 at gmail.com>
> wrote:
> > Yes, I had made that but it was weird to me that nobody report it.
> > Thanks,
> > Facu
> >
> > On Tue, Jan 4, 2011 at 8:58 AM, Diogenes Moreira
> > <diogenes.moreira at gmail.com> wrote:
> >>
> >> sorted message was removed in pharo ... replace it for
> asSortedCollection
> >> ....
> >> set asSortedCollection do: [ :callback |
> >> callback evaluateWithFieldValues:
> >> (fields allAt: callback key) ]
> >> ...
> >> best regards..
> >>
> >>
> >> On Mon, Jan 3, 2011 at 6:51 PM, Facundo Vozzi <facundov79 at gmail.com>
> >> wrote:
> >>>
> >>> I'm getting a dnu because this method is sending #sorted to a set. I'm
> >>> using Pharo 1.1.1 and recently update to Seaside 3.0.3, are I missing
> >>> something?
> >>> handle: aRequestContext
> >>> | set fields |
> >>> set := Set new.
> >>> fields := aRequestContext request fields.
> >>> fields keysDo: [ :key |
> >>> callbacks at: key ifPresent: [ :callback |
> >>> (callback isEnabledFor: aRequestContext)
> >>> ifTrue: [ set add: callback ] ] ].
> >>> set sorted do: [ :callback |
> >>> callback evaluateWithFieldValues:
> >>> (fields allAt: callback key) ]
> >>> Thanks,
> >>> Facu
> >>> _______________________________________________
> >>> seaside mailing list
> >>> seaside at lists.squeakfoundation.org
> >>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> >>>
> >>
> >>
> >> _______________________________________________
> >> seaside mailing list
> >> seaside at lists.squeakfoundation.org
> >> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> >>
> >
> >
> > _______________________________________________
> > seaside mailing list
> > seaside at lists.squeakfoundation.org
> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> >
> >
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20110105/940d5377/attachment.htm


More information about the seaside mailing list