Index: trunk/wiki/wikiation/installer/extension_installer.py |
— | — | @@ -1,3 +1,8 @@ |
| 2 | +# This software, copyright (C) 2008-2009 by Wikiation. |
| 3 | +# This software is developed by Kim Bruning. |
| 4 | +# |
| 5 | +# Distributed under the terms of the MIT license. |
| 6 | + |
2 | 7 | import settings |
3 | 8 | import os, os.path, shutil |
4 | 9 | import subprocess |
Index: trunk/wiki/wikiation/installer/installer_util.py |
— | — | @@ -1,3 +1,8 @@ |
| 2 | +# This software, copyright (C) 2008-2009 by Wikiation. |
| 3 | +# This software is developed by Kim Bruning. |
| 4 | +# |
| 5 | +# Distributed under the terms of the MIT license. |
| 6 | + |
2 | 7 | import sys |
3 | 8 | |
4 | 9 | def replace_generic(replacements,infilename,outfilename): |
Index: trunk/wiki/wikiation/installer/LICENSE |
— | — | @@ -1,9 +1,21 @@ |
2 | | -license notes... |
| 2 | +This software, copyright (C) 2008-2009 by Wikiation. This software is developed by Kim Bruning. |
3 | 3 | |
4 | | -copyright holder (C) www.wikiation.nl (kvk nr) 2008 |
| 4 | +Permission is hereby granted, free of charge, to any person obtaining a copy |
| 5 | +of this software and associated documentation files (the "Software"), to deal |
| 6 | +in the Software without restriction, including without limitation the rights to |
| 7 | +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies |
| 8 | +of the Software, and to permit persons to whom the Software is furnished to do |
| 9 | +so, subject to the following conditions: |
5 | 10 | |
6 | | -Code is GPL v3 or later |
7 | | -Logo.png itself is a wikiation trademark and is (C) wikiation, all rights reserved (same as the wikimedia or wikipedia logos) |
| 11 | +The above copyright notice and this permission notice shall be included in all |
| 12 | +copies or substantial portions of the Software. |
8 | 13 | |
| 14 | +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 15 | +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 16 | +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 17 | +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 18 | +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 19 | +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 20 | +SOFTWARE. |
9 | 21 | |
10 | | -(replace actual license text here) |
| 22 | + |
Index: trunk/wiki/wikiation/installer/installer.py |
— | — | @@ -1,4 +1,10 @@ |
2 | 2 | #!/usr/bin/python |
| 3 | + |
| 4 | +# This software, copyright (C) 2008-2009 by Wikiation. |
| 5 | +# This software is developed by Kim Bruning. |
| 6 | +# |
| 7 | +# Distributed under the terms of the MIT license. |
| 8 | + |
3 | 9 | import sys,os, os.path |
4 | 10 | import readline |
5 | 11 | import re |
Index: trunk/wiki/wikiation/installer/installers.py |
— | — | @@ -1,3 +1,8 @@ |
| 2 | +# This software, copyright (C) 2008-2009 by Wikiation. |
| 3 | +# This software is developed by Kim Bruning. |
| 4 | +# |
| 5 | +# Distributed under the terms of the MIT license. |
| 6 | + |
2 | 7 | import settings |
3 | 8 | import os, os.path, shutil |
4 | 9 | import subprocess |
Index: trunk/wiki/wikiation/installer/mediawiki_installer.py |
— | — | @@ -1,3 +1,7 @@ |
| 2 | +# This software is developed by Kim Bruning. |
| 3 | +# |
| 4 | +# Distributed under the terms of the MIT license. |
| 5 | + |
2 | 6 | import settings |
3 | 7 | import os, os.path, shutil |
4 | 8 | import subprocess |
— | — | @@ -7,7 +11,8 @@ |
8 | 12 | from installer_util import * |
9 | 13 | from isolation import * |
10 | 14 | |
11 | | -#this still uses some legacy structured code, wrapped in a class so it can't do too much harm outside this file. Will refactor later when I have more time. |
| 15 | +# this still uses some legacy structured code, wrapped in a class so it can't do |
| 16 | +#too much harm outside this file. Will refactor later when I have more time. |
12 | 17 | |
13 | 18 | # already partially refactored while creating class. |
14 | 19 | |
— | — | @@ -19,6 +24,7 @@ |
20 | 25 | |
21 | 26 | |
22 | 27 | class Mediawiki_Installer(Installation_System): |
| 28 | + """installer for mediawiki revisions""" |
23 | 29 | system_name='mediawiki_installer' |
24 | 30 | # TODO: destination_dir isn't quite changable until we have finished refactoring everything (not today) |
25 | 31 | destination_dir=settings.revisionsdir |
— | — | @@ -74,12 +80,12 @@ |
75 | 81 | |
76 | 82 | |
77 | 83 | |
78 | | -#duplicate of get_installed() |
| 84 | +#duplicate of get_installed() TODO: Refactor |
79 | 85 | def installed(): |
80 | 86 | """list installed items""" |
81 | 87 | return os.listdir(settings.revisionsdir) |
82 | 88 | |
83 | | -#duplicate of get_installers() |
| 89 | +#duplicate of get_installers() TODO: Refactor |
84 | 90 | def available(): |
85 | 91 | """list available items""" |
86 | 92 | |
Index: trunk/wiki/wikiation/installer/isolation.py |
— | — | @@ -1,3 +1,8 @@ |
| 2 | +# This software, copyright (C) 2008-2009 by Wikiation. |
| 3 | +# This software is developed by Kim Bruning. |
| 4 | +# |
| 5 | +# Distributed under the terms of the MIT license. |
| 6 | + |
2 | 7 | import sys,os, os.path |
3 | 8 | import settings |
4 | 9 | |
Index: trunk/wiki/wikiation/installer/installation_system.py |
— | — | @@ -1,3 +1,8 @@ |
| 2 | +# This software, copyright (C) 2008-2009 by Wikiation. |
| 3 | +# This software is developed by Kim Bruning. |
| 4 | +# |
| 5 | +# Distributed under the terms of the MIT license. |
| 6 | +` |
2 | 7 | import settings |
3 | 8 | import os, os.path, shutil |
4 | 9 | import subprocess |