#2082: [patch] More robust resolve_variable() in Template()
-----------------------------+----------------------------------------------
 Reporter:  anonymous        |        Owner:  adrian
     Type:  enhancement      |       Status:  new   
 Priority:  normal           |    Milestone:        
Component:  Template system  |      Version:  SVN   
 Severity:  normal           |   Resolution:        
 Keywords:                   |  
-----------------------------+----------------------------------------------
Comment (by anonymous):

 The idea was that the code should check if the object is a dictionary
 before trying to access it as one, or check if an attribute existed before
 trying to acccess it. This because I was having problems with certain
 objects returning errors that were not being handled.
 
 I later realized that stuff like:
 {{{
 "elif bit in dir(current): # attribute lookup"
 }}}
 won't be good anyway since you might want to access attributes via some
 object's __getattr__.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/2082>
Django <http://code.djangoproject.org/>
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to