Personal tools
You are here: Home Data Model Version 1.1 changes Version 1.0 to 1.1 scripts to change code
Document Actions

Version 1.0 to 1.1 scripts to change code

by Wim Vranken last modified 2006-10-23 18:04

Set of scripts to detect & make code changes in version 1.0 code to make it compatible with 1.1. These changes are incomplete, but the scripts can help you in changing over, especially if you have lots of code.

Installation


If you work off the CVS repository, the scripts are in python/memops/scripts_v2/changeTo1_1/.

If you work with releases, you can download the scripts here as a gzipped tar archive. Unpack this archive in the $CCPNMR_TOP_DIR.


How to use

(this is a copy of the information in the README.CHANGESCRIPTS file).

Note that the main CCPN stuff should be up to date already - adapt the changeDirs variable and the ignoreDirs list in Constants.py to ONLY include your local files!!

Just run the script with no flag to run it in test mode. This will create a lot of output about what the script will do, but will not make any changes to the files

Use the '-live' flag to effect the changes.

To change any of the variables in Constants.py, create a localConstants.py file and reset the variable in there. No modifications to variables in the scripts themselves should be necessary (so hopefully it is flexible without getting out of sync with the repository).

1. Run changeApiImports.py in test mode, check output.

2. If all OK, run changeApiImports.py in live mode. Files will be changed.

3. Run changeCreation.py in test mode, check output.

   NOTE: Depending on your coding style, you might want to add/change
         the variable names you use for your CCPN project in the
         projectStrings line at the top of the script.

4. If all OK, run changeCreation.py in live mode. Files will be changed.

5. Run changeCalls.py in test mode, check output.

   NOTE: Depending on your coding style, you might want to add/change
         the variable names you use for your CCPN project in the
         projectStrings line at the top of the script.

6. If all OK, run changeCalls.py in live mode. Files will be changed.

7. After running changeCalls in 'live' mode, best to rerun it in 'test' mode
   again, because when a link appears twice on the same line it only changes
   the first instance.

8. Run addNmrProjectCreation.py in test mode, check output.

9. Run addNmrProjectCreation.py in live mode. Files will be changed.

10. Can run findChildCalls.py to see if there are child links that should be changed to 'sorted' calls.


Powered by Plone, the Open Source Content Management System

This site conforms to the following standards: