[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: a boto-works test for tabled?



On 12/18/2009 05:14 AM, Jeff Garzik wrote:
> Is there anyone that would be interested in copying (or directly use) 
> /usr/lib/python2.6/site-packages/boto/tests/test_s3connection.py as a 
> tabled "boto-works" test?  According to the boto author, boto should 
> accept non-Amazon hostnames, which is the only requirement outside of 
> Amazon AWS specifications that tabled has.

Boto can accept non-Amazon hostnames, but there's a bit of a trick to
making it work with tabled.  As of September 10, this was the magic formula.

>>> import boto
>>> import logging
>>> boto.set_file_logger("boto","/tmp/boto.out",logging.DEBUG)
>>> from boto.s3 import Connection
>>> x = Connection("foo","bar",host="localhost4",port=18080,is_secure=False,debug=99,calling_format=boto.s3.connection.OrdinaryCallingFormat())
>>> x.get_all_buckets()

The magic is in the calling_format part, which took a little while to
puzzle through.  We should probably consider supporting the default
calling format to make use of boto-based tools easier.
--
To unsubscribe from this list: send the line "unsubscribe hail-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]    [Yosemite Photos]    [Free Online Dating]     [Linux Kernel]     [Linux SCSI]     [XFree86]

Add to Google Powered by Linux