You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
before running this line, if I check the class of myReference it turns out to be a dict, so it does not have the getAccessStr() method defined on it and running the line above fails:
In [138]: myReference.__class__
Out[138]: dict
In [139]: print myReference.getAccessStr(scope='write')
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-139-62a91ddc162e> in <module>()
----> 1 print myReference.getAccessStr(scope='write')
AttributeError: 'dict' object has no attribute 'getAccessStr'
Has the API changed and the documentation not been updated? I am running version 0.3 of BaseSpacePy.
So what is the recommended way to get an access string in the latest version of the package?
Incidentally the same issue happens on the Python SDK Overview page. There are other issues there (for example no object BSapi is ever defined, but it is used in the code example).
myReference=myAppSession.References[0]
projId=myReference.Content.get('Id')
# Then retrieve the project with:proj=myAPI.getProjectById(projId)
# Now you can run the line that was causing problems before:proj.getAccessStr(scope='write')
Perhaps the documentation and examples could be updated using this (or similar) approach?
Activity
dtenenba commentedon Jul 18, 2016
It seems the way around this is:
Perhaps the documentation and examples could be updated using this (or similar) approach?