Nested resources

12 views
Skip to first unread message

Aaron Ross

unread,
Dec 19, 2011, 9:18:44 AM12/19/11
to python-...@googlegroups.com
Hi,

How does slumber know a returned element is a nested resource? 

I've loaded a top-level resource that looks like this:

{u'user': u'/api/v2/user/10/', u'id': 2, u'resource_uri': u'/api/v2/zp4queue/2/'}

And I'm trying to load the UserResource like this:

print "User: %s" % ( item.user.get() )

And I get:

Traceback (most recent call last):
  File "bin/actionkit", line 20, in <module>
    print "User: %s" % ( u.user.get() )
AttributeError: 'dict' object has no attribute 'user'

Thanks,
--
Aaron

Reply all
Reply to author
Forward
0 new messages