Impossible to delete item with datetime range key

Issue #11 resolved
Éric Araujo
created an issue

This is the end of the traceback I get:

{{{ File "$virtualenv/local/lib/python2.7/site-packages/dynamodb_mapper/", line 757, in delete Item(table, hash_key_value, range_key_value).delete() File "$virtualenv/local/lib/python2.7/site-packages/boto/dynamodb/", line 162, in delete return_values) File "$virtualenv/local/lib/python2.7/site-packages/boto/dynamodb/", line 544, in delete_item item.hash_key, item.range_key) File "$virtualenv/local/lib/python2.7/site-packages/boto/dynamodb/", line 216, in build_key_from_values dynamodb_value = dynamize_value(range_key) File "$virtualenv/local/lib/python2.7/site-packages/boto/dynamodb/", line 85, in dynamize_value dynamodb_type = get_dynamodb_type(val) File "$virtualenv/local/lib/python2.7/site-packages/boto/dynamodb/", line 64, in get_dynamodb_type raise TypeError(msg) TypeError: Unsupported type "<type 'datetime.datetime'>" for value "2012-08-17 15:35:40.133277+00:00" }}}

I wrote a unit test, which I can attach here or in a pull request.

Comments (8)

  1. Éric Araujo reporter

    Of course Bitbucket fucked up my traceback. Do you know what markup to use for a verbatim block? I can repaste if needed.

    BTW I saw the bug with a datetime, but I suppose it’s the same for hash and range key with any non-native type.

  2. Log in to comment