Re: [PyPerSyst-Devel] Fwd: sandbox/gldnspud/fieldproblem ...
Brought to you by:
pobrien
|
From: Matthew S. <gld...@us...> - 2004-06-25 20:50:06
|
Patrick K. O'Brien wrote: >So instead of Field.__init__() calling self.set(value), the value >would not be passed as an argument to __init__, and the user of the >field would have to call field.set(value) explicitly. That would >allow us to constuct a field with no value, which is what you want for >a create surrogate. > > The reason I create the subclass on-the-fly was that it was a quick way to allow the None value to be set on a field in a Create surrogate. I agree that having this kind of ability in Field rather than hacked into Entity would be smarter though. Perhaps it already supports this and I didn't look closely enough :) I'll investigate and see what I discover. - Matthew |