Magritte: Disable Memento checking

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

Magritte: Disable Memento checking

Udo Schneider
All,

is there any chance to disable the memento checking for descriptions?

I now need to be able to set current time/date for an webapp. As /all/
forms are build with Magritte I want to use it for the time/date entry
fields as well.

However the model for those fields basically uses a "Time now"/"Date
today" as getters and sets the system time in the setters.

However this doesn't work as Magritte compares a cached value with the
newly pulled value on submit (to prevent conflicting changes).

Any ideas?

CU,

Udo

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

Re: [Seaside] Magritte: Disable Memento checking

Lukas Renggli
> is there any chance to disable the memento checking for descriptions?

You can override #mementoClass in your domain object to return MAStraitMemento.

Lukas

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

Re: Magritte: Disable Memento checking

Udo Schneider
Thanks for your help. Remind me to buy you a beer when we meet :-)

CU,

Udo


Lukas Renggli schrieb:
>> is there any chance to disable the memento checking for descriptions?
>
> You can override #mementoClass in your domain object to return MAStraitMemento.
>
> Lukas
>

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