[Seaside] Re: "Injecting" options into a Magritte description

Esteban A. Maringolo emaringolo at gmail.com
Tue Oct 1 02:51:55 UTC 2013

I don't know whether it has to do with my previous solution. But now I'm
getting a 'Input is conflicting with concurrent modification'  validation
error, when there is no concurrent use (it is just me using the app).

The model I'm editing has only two attributes: #time and #store, and I'm
not changing #store, even if I don't change anything I get the same error.

Any clues?

Esteban A. Maringolo

2013/9/30 Esteban A. Maringolo <emaringolo at gmail.com>

> Answering myself...
> Maybe not an elegant solution (nor a scalable one) but I found I can use
> the dynamic variable scoping to access the current session.
> I changed my description to use:
> descriptionStore
> <magritteDescription>
> ^MASingleOptionDescription new
>  label: 'Store';
> accessor: #store;
> beRequired;
>  options: self currentSession allStores;
> yourself
> #currentSession
>     ^WACurrentRequestContext value session
> It still smells bad, for some reason DynamicVariable's seems "hacky" to
> me.
> Maybe they're more clever than what I'm used to.
> Regards,
> Esteban.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20130930/9966c3d1/attachment.htm

More information about the seaside mailing list