I was using pyactiveresource from trunk (r37), and was getting 401
unauthorized calls on all api calls. Installing from easy_install fixed the
problem:
Best match: pyactiveresource 0.3
Downloading
http://pypi.python.org/packages/source/p/pyactiveresource/pyactiveresource-0.3.t
ar.gz#md5=c9feebf27d98333a821ec4e05a2d7e7a
Processing pyactiveresource-0.3.tar.gz
sample app:
import pyactiveresource
from pyactiveresource.activeresource import ActiveResource
api_password = 'f5....80'
api_site = 'https://%s@api.slicehost.com/' % api_password
print api_site
class Slice(ActiveResource):
_site = api_site
s = Slice.find()
print s
Original issue reported on code.google.com by alex%pol...@gtempaccount.com on 12 Jan 2009 at 10:32
Original issue reported on code.google.com by
alex%pol...@gtempaccount.com
on 12 Jan 2009 at 10:32