cqle doc: deprecated TimeUUID.from_datetime

This commit is contained in:
Adam Holmberg
2015-06-12 10:40:44 -05:00
parent 5ea3f2242f
commit f2403d0380
3 changed files with 11 additions and 1 deletions

View File

@@ -557,7 +557,12 @@ class TimeUUID(UUID):
:param dt: datetime
:type dt: datetime
:return:
:return: uuid1
.. deprecated:: 2.6.0
Use :func:`cassandra.util.uuid_from_time`
"""
msg = "cqlengine.columns.TimeUUID.from_datetime is deprecated. Use cassandra.util.uuid_from_time instead."
warnings.warn(msg, DeprecationWarning)

View File

@@ -78,6 +78,8 @@ Columns of all types are initialized by passing :class:`.Column` attributes to t
.. autoclass:: TimeUUID(**kwargs)
.. automethod:: from_datetime
.. autoclass:: TinyInt(**kwargs)
.. autoclass:: UserDefinedType

View File

@@ -150,3 +150,6 @@ After::
__discriminator_value__ = 'dog'
TimeUUID.from_datetime
----------------------
This function is deprecated in favor of the core utility function :func:`~.uuid_from_time`.