nickesk / pyactiveresource

Automatically exported from code.google.com/p/pyactiveresource
Other
0 stars 0 forks source link

Trunk causes 401 on slicehost #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
Fixed in r38

Original comment by jared.ku...@gmail.com on 22 Jan 2009 at 8:37