changed git call from https to git readonly
[atutor.git] / mods / patcher / README
1 Patcher ReadMe
2
3 This module can be installed with ATutor to 
4 1) install the patches available at update.atutor.ca.
5 2) Create your own ATutor patch for ATutor community
6 3) For additional documentation see: http://wiki.atutor.ca/display/atutorwiki/Patcher+Module+Documentation
7
8 * How to install Patcher
9 1. Copy the downloaded file into the ATutor mods/ directory and unzip it there. 
10
11 On Windows systems use and application like WinZip the extract the file into the mods/ directory
12
13 On Unix/Linux systems use the command:
14
15 tar xzvf atutor_userplane.tar.gz
16
17 2. Login to ATutor as the administrator and run Install Module under the Modules tab, Select the Userplane module, which should be listed as available to be installed when the module has been unzipped into the modes directory
18
19 3. Once the module has been installed, and enabled, click on the administrator's Patcher Tab to install the patches available at update.atutor.ca
20
21 By default, the Patcher tab displays all patches available to public for your ATutor version. If you are given a name to install a special patch desigened for you. Enter the given name in "Name" input box, click "Get My Patch" button, the page will list the patches available for the given name. Select the patch you want to install and click "Install" button.
22
23 If there are multiple patches available for your ATutor version, the patches have to be installed in sequence. Only the radio button of the patch with the lowest sequence number is enabled to be selected to install. Once it's installed, the radio button of the patch with the next lowest sequence number is enabled.
24
25 * Patch installation process:
26 1. Check files/folder priviledge: 
27    If the write priviledge is not given to the script on the files/folders that will be modified or overwritten, a message will be prompted to grant priviledge
28 2. Compare files with SVN
29    The files that are to be modified or overwritten will be compared with ATutor SVN, if the local copy of user's file is customized, a warning will be prompted to let user decide if they want to proceed with installation. If yes is chosen, the user has to take responsibility that the installation may break their customization.
30 3. Backup files
31    The files that are modified or overwritten during the installation will have a backup on the original copy. At the end of the installation, the list of all the backup files are displayed. Users are strongly recommended to fully test ATutor after the patch installation. If users are not happy with the result, they can always revert back the old ATutor by copying back the backup files. If users are happy with the result, it's also recommended to remove the backup files since they occupy hard disk space.
32
33 * How to create your own ATutor patch
34 1. Page "My Own Patches"
35    List all patches that are created by the login user
36    
37 2. Page "Create Patch"
38 - Atutor Patch ID: Required field. Must be a unique ID if the created patch is to be published at update.atutor.ca
39
40 - ATutor Version to Apply: Required field. 
41
42 - Description: Patch description
43
44 - SQL Statement: Database operations for this patch. Please be careful on alter table command. The change on tables' structure could break other code.
45
46 - Dependent Patches: The patches that need to be installed prior to the installation of this patch.
47
48 - Files: File operations. Other than the name and location of the file, the information to be provided for different actions are different. For example, a file upload is required for add & overwrite action, "code to replace from" and "code to replace to" are required for alter action. If you need to delete lines from a file, please use "alter" action and leave "code to replace to" blank.
49
50 3. Page "Edit Patch"
51 Fields are same as "Create Patch".
52