Changes between Initial Version and Version 1 of Ticket #9857, comment 9


Ignore:
Timestamp:
May 5, 2011, 5:28:33 AM (14 years ago)
Author:
Fabian Topfstedt

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #9857, comment 9

    initial v1  
    1 I uploaded a patch that adds a timeout argument to URLField. The default is None and it checks if urllib2.urlopen has a timeout argument (using inspect). The behavior of the URLField will be kept unless the developer explicitly defines a timeout in a model's field. Is that solving the questions above?
     1I uploaded a patch that adds a timeout argument to URLField. The default is None and it checks if urllib2.urlopen has a timeout argument (using inspect). The behavior of the URLField will be kept unless the developer explicitly defines a timeout in a model's field, raising a ValidationError with 'timed_out' code. Is that solving the questions above?
    22
    33For us, not having a timeout is a blocker, since our editors sometimes have to wait forever for the admin to save the data. My latest report was caused by the bad response time of a egyptian activist's website. Those sites tend to have a rather short live span, and verify_exists _with_ a timeout would be awesome!
Back to Top