Loading crossbow/crossbow.py +6 −5 Original line number Diff line number Diff line Loading @@ -250,8 +250,8 @@ class crossbowMount(crossbowBase): copy the resource to a local destination - delete_resource(package,resource) delete a resource from a package (Note: your api key must belong to a sysadmin or the owner of the resource to delete a resource) delete a resource from a package (Note: your api key must belong to a sysadmin or the owner of the resource to delete a resource) ''' def __init__(self,NFS_path,api_key,CKAN_url="http://128.219.185.145:5000", Loading Loading @@ -396,8 +396,8 @@ class crossbowMount(crossbowBase): def delete_resource(self,package,resource): ''' delete a resource from a package (Note: your api key must belong to a sysadmin or the owner of the resource to delete a resource) delete a resource from a package (Note: your api key must belong to a sysadmin or the owner of the resource to delete a resource) parameters: - package: string Loading Loading @@ -439,7 +439,8 @@ class crossbowGlobus(crossbowBase): #add scheduling api later (for both filters and models) if __name__ == "__main__": cbow = crossbowMount(NFS_path="/data",api_key="eaabd7d9-3cb4-4014-85fe-73736e658472") cbow = crossbowMount( NFS_path="/data",api_key="eaabd7d9-3cb4-4014-85fe-73736e658472") packages = cbow.list_packages() pkg_meta = cbow.get_package_details(packages[0]) resources = cbow.list_resources(packages[0]) Loading Loading
crossbow/crossbow.py +6 −5 Original line number Diff line number Diff line Loading @@ -250,8 +250,8 @@ class crossbowMount(crossbowBase): copy the resource to a local destination - delete_resource(package,resource) delete a resource from a package (Note: your api key must belong to a sysadmin or the owner of the resource to delete a resource) delete a resource from a package (Note: your api key must belong to a sysadmin or the owner of the resource to delete a resource) ''' def __init__(self,NFS_path,api_key,CKAN_url="http://128.219.185.145:5000", Loading Loading @@ -396,8 +396,8 @@ class crossbowMount(crossbowBase): def delete_resource(self,package,resource): ''' delete a resource from a package (Note: your api key must belong to a sysadmin or the owner of the resource to delete a resource) delete a resource from a package (Note: your api key must belong to a sysadmin or the owner of the resource to delete a resource) parameters: - package: string Loading Loading @@ -439,7 +439,8 @@ class crossbowGlobus(crossbowBase): #add scheduling api later (for both filters and models) if __name__ == "__main__": cbow = crossbowMount(NFS_path="/data",api_key="eaabd7d9-3cb4-4014-85fe-73736e658472") cbow = crossbowMount( NFS_path="/data",api_key="eaabd7d9-3cb4-4014-85fe-73736e658472") packages = cbow.list_packages() pkg_meta = cbow.get_package_details(packages[0]) resources = cbow.list_resources(packages[0]) Loading