Skip to content

Commit

Permalink
Makes this the 1.0.0->1.0.1 transition
Browse files Browse the repository at this point in the history
  • Loading branch information
remram44 committed Apr 6, 2015
1 parent 1f7ce8b commit acf5c19
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions vistrails/packages/spreadsheet/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ def finalize():

def upgrade_cell_to_output(module_remap, module_id, pipeline,
old_name, new_module,
output_version, input_port_name):
output_version, input_port_name,
start_version=None):
"""This function upgrades a *Cell module to a *Output module.
The upgrade only happens if the original module doesn't have any connection
Expand All @@ -191,7 +192,7 @@ def upgrade_cell_to_output(module_remap, module_id, pipeline,
_old_remap = module_remap
module_remap = copy.copy(module_remap)
assert _old_remap.remaps is not module_remap.remaps
remap = UpgradeModuleRemap(None, output_version, new_module)
remap = UpgradeModuleRemap(start_version, output_version, new_module)
remap.add_remap('dst_port_remap', input_port_name, 'value')
module_remap.add_module_remap(remap)
return module_remap
Expand Down
2 changes: 1 addition & 1 deletion vistrails/packages/vtk/identifiers.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@
identifier = 'org.vistrails.vistrails.vtk'
old_identifiers = ['edu.utah.sci.vistrails.vtk']
name = 'VTK'
version = '1.0.0'
version = '1.0.1'
3 changes: 2 additions & 1 deletion vistrails/packages/vtk/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,8 @@ def handle_module_upgrade_request(controller, module_id, pipeline):
module_remap = upgrade_cell_to_output(
_remap, module_id, pipeline,
'VTKCell', 'vtkRendererOutput',
'0.9.6', 'AddRenderer')
'1.0.1', 'AddRenderer',
start_version='1.0.0')

return UpgradeWorkflowHandler.remap_module(controller, module_id, pipeline,
module_remap)

0 comments on commit acf5c19

Please sign in to comment.