From: Jeremy Bowers <j...@jerf.org>
Date: Fri, 15 Dec 2006 23:23:07 -0500
Local: Fri, Dec 15 2006 11:23 pm
Subject: Re: Getters and setters on fields
Jacob Kaplan-Moss wrote: It is there to prevent application of the setters upon initialization, > The patch looks pretty good to me; it applies cleanly and all the unit tests > pass (you get major props for including 'em on the first pass :). > However, I do have one quibble: the addition of ``self._django_initializing`` > Also, a few lines of documentation need to be added (to docs/model-api.txt) as you guess. Running the setters at initialization causes two major problems: * First, using the code in my unit test, during the initial construction * Suppose you have a setter that performs a transform T(x). The first I started down a path to try to "solve" these problems, but everything I agree that adding that flag is sort of bad, but everything else I came A revised patch including documentation has been added; it supercedes You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||