mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
Refs #23832 -- Removed deprecated non-timezone aware Storage API.
This commit is contained in:
parent
740f63a3df
commit
2d7fb77987
4 changed files with 7 additions and 210 deletions
|
@ -77,28 +77,6 @@ The ``Storage`` class
|
|||
used will be the current value of ``os.environ['TZ']``; note that this
|
||||
is usually set from Django's :setting:`TIME_ZONE`.
|
||||
|
||||
.. method:: accessed_time(name)
|
||||
|
||||
Returns a naive ``datetime`` object containing the last
|
||||
accessed time of the file. For storage systems that aren't
|
||||
able to return the last accessed time this will raise
|
||||
``NotImplementedError`` instead.
|
||||
|
||||
.. deprecated:: 1.10
|
||||
|
||||
Use :meth:`get_accessed_time` instead.
|
||||
|
||||
.. method:: created_time(name)
|
||||
|
||||
Returns a naive ``datetime`` object containing the creation
|
||||
time of the file. For storage systems that aren't able to
|
||||
return the creation time this will raise
|
||||
``NotImplementedError`` instead.
|
||||
|
||||
.. deprecated:: 1.10
|
||||
|
||||
Use :meth:`get_created_time` instead.
|
||||
|
||||
.. method:: delete(name)
|
||||
|
||||
Deletes the file referenced by ``name``. If deletion is not supported
|
||||
|
@ -186,17 +164,6 @@ The ``Storage`` class
|
|||
storage systems that aren't able to provide such a listing, this will
|
||||
raise a ``NotImplementedError`` instead.
|
||||
|
||||
.. method:: modified_time(name)
|
||||
|
||||
Returns a naive ``datetime`` object containing the last
|
||||
modified time. For storage systems that aren't able to return
|
||||
the last modified time, this will raise
|
||||
``NotImplementedError`` instead.
|
||||
|
||||
.. deprecated:: 1.10
|
||||
|
||||
Use :meth:`get_modified_time` instead.
|
||||
|
||||
.. method:: open(name, mode='rb')
|
||||
|
||||
Opens the file given by ``name``. Note that although the returned file
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue