#3148: Add getters and setters to model fields
---------------------------------------------------+------------------------
          Reporter:  [email protected]                 |         Owner:  Gulopine
            Status:  new                           |     Milestone:          
         Component:  Database layer (models, ORM)  |       Version:  SVN     
        Resolution:                                |      Keywords:          
             Stage:  Accepted                      |     Has_patch:  1       
        Needs_docs:  0                             |   Needs_tests:  0       
Needs_better_patch:  1                             |  
---------------------------------------------------+------------------------
Changes (by Gulopine):

  * owner:  telenieko => Gulopine
  * needs_better_patch:  0 => 1
  * status:  assigned => new

Comment:

 Replying to [comment:24 jacob]:
 > I'm busy and don't have time to explain this fully. However, as a note
 to myself and anyone who wants to try to channel my thinking, the syntax
 I'd like here would look like

 It seems simple enough to channel that, actually. I assume this would work
 identically to the [http://docs.python.org/library/functions.html#property
 new property methods] added in Python 2.6. I've been wondering about this
 myself lately, but didn't spend the time to work on it because I forgot
 this ticket already exists. I'll see what I can throw together this week.

 I can think of a few questions that might need to be addressed along the
 way (at least one that definitely will), but I'll hold off until I have
 some working code before bringing them up. On a side note, if we mimic the
 property methods, I assume we'd also want to include {[email protected]}}} as
 well, which should be simple enough to throw in.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/3148#comment:25>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to