This is a general problem with launchpadlib when dealing with collections that are the return values of named operations. Until this is fixed, use this workaround:
int(return_value._wadl_resource.representation['total_size'])
This is a general problem with launchpadlib when dealing with collections that are the return values of named operations. Until this is fixed, use this workaround:
int(return_ value._ wadl_resource. representation[ 'total_ size'])