#2127: [patch] date, time, and timesince filters don't fail silently
-------------------------------------------------+--------------------------
 Reporter:  Gary Wilson <[EMAIL PROTECTED]>  |        Owner:  adrian
     Type:  defect                               |       Status:  new   
 Priority:  normal                               |    Milestone:        
Component:  Template system                      |      Version:  SVN   
 Severity:  normal                               |   Resolution:        
 Keywords:                                       |  
-------------------------------------------------+--------------------------
Comment (by Gary Wilson <[EMAIL PROTECTED]>):

 Just would like to note that a decorator could be used instead if you do
 one of:
  * Make the function that the decorator returns take the same number of
 arguments as the filter functions.  In this case the parameters (value,
 arg=None).  The downside to this solution would be that the decorator
 would only work on filter functions that take two parameters.
  * Preserve the functions' signatures.  See the comments in #1840 and
 [http://groups.google.com/group/django-
 
developers/browse_thread/thread/6ffc933225de12ba/df3664ce65b60473#df3664ce65b60473
 inability to use decorators on template filters]
 
 A decorator that returns an empty string when `value` is `None` might be
 useful to other filters also.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/2127>
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