def encode_key(value):
    """Encode an S3Key, this is just a link to
	the S3 URL, with a special __s3key__ type"""
    ret = {'__type__': '__s3key__'}
    ret['__href__'] = value.generate_url(3600)
    return ret
