Skip to content

Commit

Permalink
Moves URL identifiers to identifiers.py
Browse files Browse the repository at this point in the history
  • Loading branch information
remram44 committed May 30, 2014
1 parent 1a99304 commit 4e118e5
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 5 deletions.
6 changes: 1 addition & 5 deletions vistrails/packages/URL/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,4 @@
check is performed efficiently using HTTP headers.
"""

identifier = 'org.vistrails.vistrails.url'
name = 'URL'
version = '1.0.0'
old_identifiers = ['org.vistrails.vistrails.http',
'edu.utah.sci.vistrails.http']
from identifiers import *
50 changes: 50 additions & 0 deletions vistrails/packages/URL/identifiers.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
###############################################################################
##
## Copyright (C) 2011-2014, NYU-Poly.
## Copyright (C) 2006-2011, University of Utah.
## All rights reserved.
## Contact: contact@vistrails.org
##
## This file is part of VisTrails.
##
## "Redistribution and use in source and binary forms, with or without
## modification, are permitted provided that the following conditions are met:
##
## - Redistributions of source code must retain the above copyright notice,
## this list of conditions and the following disclaimer.
## - Redistributions in binary form must reproduce the above copyright
## notice, this list of conditions and the following disclaimer in the
## documentation and/or other materials provided with the distribution.
## - Neither the name of the University of Utah nor the names of its
## contributors may be used to endorse or promote products derived from
## this software without specific prior written permission.
##
## THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
## AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
## THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
## PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
## EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
## PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
## OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
## WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
## OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
## ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
##
###############################################################################

"""URL provides modules to download files via the network.
It can refer to HTTP and FTP files, which enables workflows to be distributed
without its associated data.
This package uses a local cache, inside the per-user VisTrails directory. This
way, files that haven't been changed do not need to be downloaded again. The
check is performed efficiently using HTTP headers.
"""

identifier = 'org.vistrails.vistrails.url'
name = 'URL'
version = '1.0.0'
old_identifiers = ['org.vistrails.vistrails.http',
'edu.utah.sci.vistrails.http']
1 change: 1 addition & 0 deletions vistrails/packages/URL/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
from vistrails.core.repository.poster.encode import multipart_encode
from vistrails.core.repository.poster.streaminghttp import register_openers

from .identifiers import identifier
from .http_directory import download_directory
from .https_if_available import build_opener

Expand Down

0 comments on commit 4e118e5

Please sign in to comment.