2008/4/18, Jacobsen Jörg <joerg.jacobsen(a)web.de>de>:
Cédrick, that did the trick.
I thought class or instance wouldn't matter based on what Ramon Leon
said in his 'Using Magritte with Seaside' blog post.
It does by default ;-)
"Generally speaking you'll keep these descriptions on the class side
of your domain object. On occasion, you'll want some property of the
description to be dynamic and depend on the actual value of an
instance side value, so you'll move the description to the instance
side. Strictly speaking, it doesn't matter where you put them,
sometimes you'll use them to build forms when you don't even have a
domain object, but this isn't the normal case."
I think to declare description on the instance side, you need to
modify the DescriptionBuilder so as it looks in the instance side.
Another way is to declare them on the class side and then overide
description on the instance side to copy the default description and
then modify them...
Thank you, Joerg.
_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki