[Zope-dev] zpatterns: how to specify default values?
Jephte CLAIN
Jephte.Clain@univ-reunion.fr
Thu, 13 Jul 2000 12:24:47 +0400
hello,
a common practice is to put default values for attributes for a classe
as class variables.
if the instance hasn't got the value, it gets the value from the class.
but I can't do this with dataskins, because direct dataskins attributes
take precedence on attributes providers.
the way I do it now is to make a default_attributes attribute provider
which provides defaults. is this correct?
or is there a better way to do this?
regards,
jephte.clain@univ-reunion.fr