Changeset 260 for cleverbox/trunk/cleverbox
- Timestamp:
- 02/23/08 12:51:34 (4 years ago)
- Location:
- cleverbox/trunk/cleverbox
- Files:
-
- 20 modified
-
__init__.py (modified) (1 diff)
-
log.py (modified) (1 diff)
-
model/__init__.py (modified) (1 diff)
-
model/client.py (modified) (1 diff)
-
model/environment.py (modified) (1 diff)
-
model/project.py (modified) (1 diff)
-
scripts/__init__.py (modified) (1 diff)
-
scripts/admin.py (modified) (1 diff)
-
tests/__init__.py (modified) (1 diff)
-
tests/client_test.py (modified) (1 diff)
-
tests/environment_test.py (modified) (1 diff)
-
tests/project_test.py (modified) (1 diff)
-
tests/upgrade_test.py (modified) (1 diff)
-
upgrades/__init__.py (modified) (1 diff)
-
upgrades/upgrades.py (modified) (1 diff)
-
utils/__init__.py (modified) (1 diff)
-
utils/filesystem.py (modified) (1 diff)
-
utils/inputcollector.py (modified) (1 diff)
-
utils/styles.py (modified) (1 diff)
-
utils/termcolors.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
cleverbox/trunk/cleverbox/__init__.py
r210 r260 1 1 # -*- coding: utf-8 -*- 2 3 # This file is part of the "Cleverbox" program. 4 # 5 # Cleverbox is free software: you can redistribute it and/or modify 6 # it under the terms of the GNU General Public License as published by 7 # the Free Software Foundation, either version 3 of the License, or 8 # (at your option) any later version. 9 # 10 # Cleverbox is distributed in the hope that it will be useful, 11 # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 # GNU General Public License for more details. 14 # 15 # You should have received a copy of the GNU General Public License 16 # along with Cleverbox. If not, see <http://www.gnu.org/licenses/>. 17 # 18 # Copyright 2008, Tristan Rivoallan 19 2 20 version = '0.5dev' -
cleverbox/trunk/cleverbox/log.py
r211 r260 1 # This file is part of the "Cleverbox" program. 2 # 3 # Cleverbox is free software: you can redistribute it and/or modify 4 # it under the terms of the GNU General Public License as published by 5 # the Free Software Foundation, either version 3 of the License, or 6 # (at your option) any later version. 7 # 8 # Cleverbox is distributed in the hope that it will be useful, 9 # but WITHOUT ANY WARRANTY; without even the implied warranty of 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 # GNU General Public License for more details. 12 # 13 # You should have received a copy of the GNU General Public License 14 # along with Cleverbox. If not, see <http://www.gnu.org/licenses/>. 15 # 16 # Copyright 2008, Tristan Rivoallan 17 1 18 import logging, sys 2 19 from cleverbox.utils import termcolors, styles -
cleverbox/trunk/cleverbox/model/__init__.py
r222 r260 1 1 # -*- coding: utf-8 -*- 2 3 # This file is part of the "Cleverbox" program. 4 # 5 # Cleverbox is free software: you can redistribute it and/or modify 6 # it under the terms of the GNU General Public License as published by 7 # the Free Software Foundation, either version 3 of the License, or 8 # (at your option) any later version. 9 # 10 # Cleverbox is distributed in the hope that it will be useful, 11 # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 # GNU General Public License for more details. 14 # 15 # You should have received a copy of the GNU General Public License 16 # along with Cleverbox. If not, see <http://www.gnu.org/licenses/>. 17 # 18 # Copyright 2008, Tristan Rivoallan 19 2 20 version = '0.5dev' 3 21 -
cleverbox/trunk/cleverbox/model/client.py
r222 r260 1 # This file is part of the "Cleverbox" program. 2 # 3 # Cleverbox is free software: you can redistribute it and/or modify 4 # it under the terms of the GNU General Public License as published by 5 # the Free Software Foundation, either version 3 of the License, or 6 # (at your option) any later version. 7 # 8 # Cleverbox is distributed in the hope that it will be useful, 9 # but WITHOUT ANY WARRANTY; without even the implied warranty of 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 # GNU General Public License for more details. 12 # 13 # You should have received a copy of the GNU General Public License 14 # along with Cleverbox. If not, see <http://www.gnu.org/licenses/>. 15 # 16 # Copyright 2008, Tristan Rivoallan 17 1 18 """ 2 19 This module regroups all the logic for manipulating client data in a given environment. -
cleverbox/trunk/cleverbox/model/environment.py
r220 r260 1 # This file is part of the "Cleverbox" program. 2 # 3 # Cleverbox is free software: you can redistribute it and/or modify 4 # it under the terms of the GNU General Public License as published by 5 # the Free Software Foundation, either version 3 of the License, or 6 # (at your option) any later version. 7 # 8 # Cleverbox is distributed in the hope that it will be useful, 9 # but WITHOUT ANY WARRANTY; without even the implied warranty of 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 # GNU General Public License for more details. 12 # 13 # You should have received a copy of the GNU General Public License 14 # along with Cleverbox. If not, see <http://www.gnu.org/licenses/>. 15 # 16 # Copyright 2008, Tristan Rivoallan 17 1 18 import logging, os, shutil, stat 2 19 import ConfigParser -
cleverbox/trunk/cleverbox/model/project.py
r222 r260 1 # This file is part of the "Cleverbox" program. 2 # 3 # Cleverbox is free software: you can redistribute it and/or modify 4 # it under the terms of the GNU General Public License as published by 5 # the Free Software Foundation, either version 3 of the License, or 6 # (at your option) any later version. 7 # 8 # Cleverbox is distributed in the hope that it will be useful, 9 # but WITHOUT ANY WARRANTY; without even the implied warranty of 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 # GNU General Public License for more details. 12 # 13 # You should have received a copy of the GNU General Public License 14 # along with Cleverbox. If not, see <http://www.gnu.org/licenses/>. 15 # 16 # Copyright 2008, Tristan Rivoallan 17 1 18 """ 2 19 This module regroups all logic used to manipulate project data in a given environment. -
cleverbox/trunk/cleverbox/scripts/__init__.py
r52 r260 1 # This file is part of the "Cleverbox" program. 2 # 3 # Cleverbox is free software: you can redistribute it and/or modify 4 # it under the terms of the GNU General Public License as published by 5 # the Free Software Foundation, either version 3 of the License, or 6 # (at your option) any later version. 7 # 8 # Cleverbox is distributed in the hope that it will be useful, 9 # but WITHOUT ANY WARRANTY; without even the implied warranty of 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 # GNU General Public License for more details. 12 # 13 # You should have received a copy of the GNU General Public License 14 # along with Cleverbox. If not, see <http://www.gnu.org/licenses/>. 15 # 16 # Copyright 2008, Tristan Rivoallan -
cleverbox/trunk/cleverbox/scripts/admin.py
r219 r260 1 1 # -*- coding: utf-8 -*- 2 3 # This file is part of the "Cleverbox" program. 4 # 5 # Cleverbox is free software: you can redistribute it and/or modify 6 # it under the terms of the GNU General Public License as published by 7 # the Free Software Foundation, either version 3 of the License, or 8 # (at your option) any later version. 9 # 10 # Cleverbox is distributed in the hope that it will be useful, 11 # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 # GNU General Public License for more details. 14 # 15 # You should have received a copy of the GNU General Public License 16 # along with Cleverbox. If not, see <http://www.gnu.org/licenses/>. 17 # 18 # Copyright 2008, Tristan Rivoallan 2 19 3 20 import cmd, logging, os, shlex, sys, traceback -
cleverbox/trunk/cleverbox/tests/__init__.py
r211 r260 1 # This file is part of the "Cleverbox" program. 2 # 3 # Cleverbox is free software: you can redistribute it and/or modify 4 # it under the terms of the GNU General Public License as published by 5 # the Free Software Foundation, either version 3 of the License, or 6 # (at your option) any later version. 7 # 8 # Cleverbox is distributed in the hope that it will be useful, 9 # but WITHOUT ANY WARRANTY; without even the implied warranty of 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 # GNU General Public License for more details. 12 # 13 # You should have received a copy of the GNU General Public License 14 # along with Cleverbox. If not, see <http://www.gnu.org/licenses/>. 15 # 16 # Copyright 2008, Tristan Rivoallan 17 1 18 import unittest 2 19 from cleverbox.tests import client_test, project_test, environment_test, upgrade_test -
cleverbox/trunk/cleverbox/tests/client_test.py
r211 r260 1 # This file is part of the "Cleverbox" program. 2 # 3 # Cleverbox is free software: you can redistribute it and/or modify 4 # it under the terms of the GNU General Public License as published by 5 # the Free Software Foundation, either version 3 of the License, or 6 # (at your option) any later version. 7 # 8 # Cleverbox is distributed in the hope that it will be useful, 9 # but WITHOUT ANY WARRANTY; without even the implied warranty of 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 # GNU General Public License for more details. 12 # 13 # You should have received a copy of the GNU General Public License 14 # along with Cleverbox. If not, see <http://www.gnu.org/licenses/>. 15 # 16 # Copyright 2008, Tristan Rivoallan 17 1 18 import unittest 2 19 -
cleverbox/trunk/cleverbox/tests/environment_test.py
r211 r260 1 # This file is part of the "Cleverbox" program. 2 # 3 # Cleverbox is free software: you can redistribute it and/or modify 4 # it under the terms of the GNU General Public License as published by 5 # the Free Software Foundation, either version 3 of the License, or 6 # (at your option) any later version. 7 # 8 # Cleverbox is distributed in the hope that it will be useful, 9 # but WITHOUT ANY WARRANTY; without even the implied warranty of 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 # GNU General Public License for more details. 12 # 13 # You should have received a copy of the GNU General Public License 14 # along with Cleverbox. If not, see <http://www.gnu.org/licenses/>. 15 # 16 # Copyright 2008, Tristan Rivoallan 17 1 18 import grp, logging, os, pwd, shutil, stat, tempfile, unittest 2 19 from cleverbox.model.environment import Environment -
cleverbox/trunk/cleverbox/tests/project_test.py
r213 r260 1 # This file is part of the "Cleverbox" program. 2 # 3 # Cleverbox is free software: you can redistribute it and/or modify 4 # it under the terms of the GNU General Public License as published by 5 # the Free Software Foundation, either version 3 of the License, or 6 # (at your option) any later version. 7 # 8 # Cleverbox is distributed in the hope that it will be useful, 9 # but WITHOUT ANY WARRANTY; without even the implied warranty of 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 # GNU General Public License for more details. 12 # 13 # You should have received a copy of the GNU General Public License 14 # along with Cleverbox. If not, see <http://www.gnu.org/licenses/>. 15 # 16 # Copyright 2008, Tristan Rivoallan 17 1 18 import unittest 2 19 -
cleverbox/trunk/cleverbox/tests/upgrade_test.py
r209 r260 1 # This file is part of the "Cleverbox" program. 2 # 3 # Cleverbox is free software: you can redistribute it and/or modify 4 # it under the terms of the GNU General Public License as published by 5 # the Free Software Foundation, either version 3 of the License, or 6 # (at your option) any later version. 7 # 8 # Cleverbox is distributed in the hope that it will be useful, 9 # but WITHOUT ANY WARRANTY; without even the implied warranty of 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 # GNU General Public License for more details. 12 # 13 # You should have received a copy of the GNU General Public License 14 # along with Cleverbox. If not, see <http://www.gnu.org/licenses/>. 15 # 16 # Copyright 2008, Tristan Rivoallan 17 1 18 import unittest 2 19 -
cleverbox/trunk/cleverbox/upgrades/__init__.py
r155 r260 1 # This file is part of the "Cleverbox" program. 2 # 3 # Cleverbox is free software: you can redistribute it and/or modify 4 # it under the terms of the GNU General Public License as published by 5 # the Free Software Foundation, either version 3 of the License, or 6 # (at your option) any later version. 7 # 8 # Cleverbox is distributed in the hope that it will be useful, 9 # but WITHOUT ANY WARRANTY; without even the implied warranty of 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 # GNU General Public License for more details. 12 # 13 # You should have received a copy of the GNU General Public License 14 # along with Cleverbox. If not, see <http://www.gnu.org/licenses/>. 15 # 16 # Copyright 2008, Tristan Rivoallan -
cleverbox/trunk/cleverbox/upgrades/upgrades.py
r210 r260 1 # This file is part of the "Cleverbox" program. 2 # 3 # Cleverbox is free software: you can redistribute it and/or modify 4 # it under the terms of the GNU General Public License as published by 5 # the Free Software Foundation, either version 3 of the License, or 6 # (at your option) any later version. 7 # 8 # Cleverbox is distributed in the hope that it will be useful, 9 # but WITHOUT ANY WARRANTY; without even the implied warranty of 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 # GNU General Public License for more details. 12 # 13 # You should have received a copy of the GNU General Public License 14 # along with Cleverbox. If not, see <http://www.gnu.org/licenses/>. 15 # 16 # Copyright 2008, Tristan Rivoallan 17 1 18 from pkg_resources import parse_version 2 19 -
cleverbox/trunk/cleverbox/utils/__init__.py
r177 r260 1 # This file is part of the "Cleverbox" program. 2 # 3 # Cleverbox is free software: you can redistribute it and/or modify 4 # it under the terms of the GNU General Public License as published by 5 # the Free Software Foundation, either version 3 of the License, or 6 # (at your option) any later version. 7 # 8 # Cleverbox is distributed in the hope that it will be useful, 9 # but WITHOUT ANY WARRANTY; without even the implied warranty of 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 # GNU General Public License for more details. 12 # 13 # You should have received a copy of the GNU General Public License 14 # along with Cleverbox. If not, see <http://www.gnu.org/licenses/>. 15 # 16 # Copyright 2008, Tristan Rivoallan -
cleverbox/trunk/cleverbox/utils/filesystem.py
r196 r260 1 # This file is part of the "Cleverbox" program. 2 # 3 # Cleverbox is free software: you can redistribute it and/or modify 4 # it under the terms of the GNU General Public License as published by 5 # the Free Software Foundation, either version 3 of the License, or 6 # (at your option) any later version. 7 # 8 # Cleverbox is distributed in the hope that it will be useful, 9 # but WITHOUT ANY WARRANTY; without even the implied warranty of 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 # GNU General Public License for more details. 12 # 13 # You should have received a copy of the GNU General Public License 14 # along with Cleverbox. If not, see <http://www.gnu.org/licenses/>. 15 # 16 # Copyright 2008, Tristan Rivoallan 17 1 18 """ 2 19 This module regroups miscelaneous filesystem related functions. -
cleverbox/trunk/cleverbox/utils/inputcollector.py
r213 r260 1 # This file is part of the "Cleverbox" program. 2 # 3 # Cleverbox is free software: you can redistribute it and/or modify 4 # it under the terms of the GNU General Public License as published by 5 # the Free Software Foundation, either version 3 of the License, or 6 # (at your option) any later version. 7 # 8 # Cleverbox is distributed in the hope that it will be useful, 9 # but WITHOUT ANY WARRANTY; without even the implied warranty of 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 # GNU General Public License for more details. 12 # 13 # You should have received a copy of the GNU General Public License 14 # along with Cleverbox. If not, see <http://www.gnu.org/licenses/>. 15 # 16 # Copyright 2008, Tristan Rivoallan 17 1 18 def collect(input_specs): 2 19 -
cleverbox/trunk/cleverbox/utils/styles.py
r193 r260 1 # This file is part of the "Cleverbox" program. 2 # 3 # Cleverbox is free software: you can redistribute it and/or modify 4 # it under the terms of the GNU General Public License as published by 5 # the Free Software Foundation, either version 3 of the License, or 6 # (at your option) any later version. 7 # 8 # Cleverbox is distributed in the hope that it will be useful, 9 # but WITHOUT ANY WARRANTY; without even the implied warranty of 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 # GNU General Public License for more details. 12 # 13 # You should have received a copy of the GNU General Public License 14 # along with Cleverbox. If not, see <http://www.gnu.org/licenses/>. 15 # 16 # Copyright 2008, Tristan Rivoallan 17 1 18 import sys 2 19 from cleverbox.utils import termcolors -
cleverbox/trunk/cleverbox/utils/termcolors.py
r177 r260 1 # Copyright (c) 2005, the Lawrence Journal-World 2 # All rights reserved. 3 # 4 # Redistribution and use in source and binary forms, with or without modification, 5 # are permitted provided that the following conditions are met: 6 # 7 # 1. Redistributions of source code must retain the above copyright notice, 8 # this list of conditions and the following disclaimer. 9 # 10 # 2. Redistributions in binary form must reproduce the above copyright 11 # notice, this list of conditions and the following disclaimer in the 12 # documentation and/or other materials provided with the distribution. 13 # 14 # 3. Neither the name of Django nor the names of its contributors may be used 15 # to endorse or promote products derived from this software without 16 # specific prior written permission. 17 # 18 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 19 # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 20 # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 21 # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR 22 # ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 23 # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 24 # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 25 # ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 27 # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 1 29 """ 2 30 termcolors.py
