WACallbackRegistry>>handle:

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

WACallbackRegistry>>handle:

fvozzi
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
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: WACallbackRegistry>>handle:

Diogenes Moreira
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 <[hidden email]> 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
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside



_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: WACallbackRegistry>>handle:

fvozzi
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 <[hidden email]> 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 <[hidden email]> 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
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside



_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside



_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: WACallbackRegistry>>handle:

Julian Fitzell-2
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 <[hidden email]> 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
> <[hidden email]> 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 <[hidden email]>
>> 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
>>> [hidden email]
>>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>>>
>>
>>
>> _______________________________________________
>> seaside mailing list
>> [hidden email]
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>>
>
>
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: WACallbackRegistry>>handle:

Philippe Marschall
In reply to this post by Diogenes Moreira
2011/1/4 Diogenes Moreira <[hidden email]>:
> sorted message was removed in pharo ... replace it for asSortedCollection

No, it's not. It's in Collections-Abstract-StephaneDucasse.98 which
ships with Pharo 1.1.1, it's in 1.2 and it's in Squeak Trunk.

Cheers
Philippe
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: WACallbackRegistry>>handle:

Diogenes Moreira
In reply to this post by Julian Fitzell-2
Well, that work for me :)...

On Tue, Jan 4, 2011 at 10:46 PM, Julian Fitzell <[hidden email]> 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 <[hidden email]> 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
> <[hidden email]> 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 <[hidden email]>
>> 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
>>> [hidden email]
>>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>>>
>>
>>
>> _______________________________________________
>> seaside mailing list
>> [hidden email]
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>>
>
>
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: WACallbackRegistry>>handle:

Diogenes Moreira
In reply to this post by Philippe Marschall
Is true.. You are right,  in PharoCore-1.1.1-11414.. sorted is part of Collection..

but, in Pharo-1.1-11411 sorted message is not present.. 

I'm in a couple projects with differents versions.. 

From here my confution.. Sorry..

On Wed, Jan 5, 2011 at 3:24 AM, Philippe Marschall <[hidden email]> wrote:
2011/1/4 Diogenes Moreira <[hidden email]>:
> sorted message was removed in pharo ... replace it for asSortedCollection

No, it's not. It's in Collections-Abstract-StephaneDucasse.98 which
ships with Pharo 1.1.1, it's in 1.2 and it's in Squeak Trunk.

Cheers
Philippe
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside