Skip to content

Instantly share code, notes, and snippets.

@hvelarde
Created August 25, 2012 20:18
Show Gist options
  • Save hvelarde/3470516 to your computer and use it in GitHub Desktop.
Save hvelarde/3470516 to your computer and use it in GitHub Desktop.
AttributeError: __getitem__
Error in test test_create_dexterity (plone.api.tests.test_content.TestPloneApiContent)
Traceback (most recent call last):
File "/home/hvelarde/Python/python2.7/lib/python2.7/unittest/case.py", line 327, in run
testMethod()
File "/home/hvelarde/plone-py2.6/plone/api/src/plone/api/tests/test_content.py", line 98, in test_create_dexterity
container=folder, type='Dexterity Document', id='test-document')
File "/home/hvelarde/plone-py2.6/plone/api/src/plone/api/content.py", line 61, in create
content = container[new_id]
AttributeError: __getitem__
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment