# HG changeset patch # User prock@33b003aa-7bff-0310-803a-e67f0ece8222 # Date 1264607929 0 # Node ID 81641655bc389484f15e2f608124e589f806de0b # Parent 70697641fca3fb7c82fe9d0badc52fc1113576e5 Adding the correct header in a lot of files. Also made a small change to the CHANGES file by adding the 0.3.1 section. diff -r 70697641fca3 -r 81641655bc38 CHANGES --- a/CHANGES Wed Jan 27 04:36:03 2010 +0000 +++ b/CHANGES Wed Jan 27 15:58:49 2010 +0000 @@ -1,3 +1,10 @@ +== 0.3.1 (March, 2010) == + +=== Engine === + * Updated a lot of the python source files to have the correct headers + * Fixed SWIG wrappers that didn't handle simple output parameters (#340) + + == 0.3.0 (January 20th, 2010) == === Engine === @@ -56,6 +63,9 @@ * New icons based on Bluesphere * Made the editor save its settings to the proper OS folder. * Fixed editor bug where the map didn't render after saving (#333) + * Editor can now re-open a map (#381) + * Fixed a problem navigating directory structure with the filebrowser (#377) + * Filebrowser now refreshes when expected (#391) * Fixed a lot of bugs, and made a lot of new ones ;-) === PyChan === diff -r 70697641fca3 -r 81641655bc38 SConstruct --- a/SConstruct Wed Jan 27 04:36:03 2010 +0000 +++ b/SConstruct Wed Jan 27 15:58:49 2010 +0000 @@ -1,3 +1,26 @@ +# -*- coding: utf-8 -*- + +# #################################################################### +# Copyright (C) 2005-2009 by the FIFE team +# http://www.fifengine.de +# This file is part of FIFE. +# +# FIFE is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +# #################################################################### + import os, sys import utils.scons.scons_utils as utils from distutils.sysconfig import get_python_lib diff -r 70697641fca3 -r 81641655bc38 build/darwin-config.py --- a/build/darwin-config.py Wed Jan 27 04:36:03 2010 +0000 +++ b/build/darwin-config.py Wed Jan 27 15:58:49 2010 +0000 @@ -1,3 +1,26 @@ +# -*- coding: utf-8 -*- + +# #################################################################### +# Copyright (C) 2005-2009 by the FIFE team +# http://www.fifengine.de +# This file is part of FIFE. +# +# FIFE is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +# #################################################################### + import os,sys from distutils.sysconfig import get_python_inc diff -r 70697641fca3 -r 81641655bc38 build/linux2-config.py --- a/build/linux2-config.py Wed Jan 27 04:36:03 2010 +0000 +++ b/build/linux2-config.py Wed Jan 27 15:58:49 2010 +0000 @@ -1,3 +1,26 @@ +# -*- coding: utf-8 -*- + +# #################################################################### +# Copyright (C) 2005-2009 by the FIFE team +# http://www.fifengine.de +# This file is part of FIFE. +# +# FIFE is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +# #################################################################### + import sys import os diff -r 70697641fca3 -r 81641655bc38 build/win32-config.py --- a/build/win32-config.py Wed Jan 27 04:36:03 2010 +0000 +++ b/build/win32-config.py Wed Jan 27 15:58:49 2010 +0000 @@ -1,3 +1,26 @@ +# -*- coding: utf-8 -*- + +# #################################################################### +# Copyright (C) 2005-2009 by the FIFE team +# http://www.fifengine.de +# This file is part of FIFE. +# +# FIFE is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +# #################################################################### + import os import SCons.Util diff -r 70697641fca3 -r 81641655bc38 engine/SConscript --- a/engine/SConscript Wed Jan 27 04:36:03 2010 +0000 +++ b/engine/SConscript Wed Jan 27 15:58:49 2010 +0000 @@ -1,3 +1,26 @@ +# -*- coding: utf-8 -*- + +# #################################################################### +# Copyright (C) 2005-2009 by the FIFE team +# http://www.fifengine.de +# This file is part of FIFE. +# +# FIFE is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +# #################################################################### + import os,sys import utils.scons.scons_utils as utils from utils.util_scripts.path import path as upath diff -r 70697641fca3 -r 81641655bc38 setup.py --- a/setup.py Wed Jan 27 04:36:03 2010 +0000 +++ b/setup.py Wed Jan 27 15:58:49 2010 +0000 @@ -1,4 +1,27 @@ #!/usr/bin/env python +# -*- coding: utf-8 -*- + +# #################################################################### +# Copyright (C) 2005-2009 by the FIFE team +# http://www.fifengine.de +# This file is part of FIFE. +# +# FIFE is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +# #################################################################### + from distutils.core import setup import os, sys diff -r 70697641fca3 -r 81641655bc38 test_fife.py --- a/test_fife.py Wed Jan 27 04:36:03 2010 +0000 +++ b/test_fife.py Wed Jan 27 15:58:49 2010 +0000 @@ -1,4 +1,27 @@ #!/usr/bin/env python +# -*- coding: utf-8 -*- + +# #################################################################### +# Copyright (C) 2005-2009 by the FIFE team +# http://www.fifengine.de +# This file is part of FIFE. +# +# FIFE is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +# #################################################################### + import os, re, sys, optparse, unittest def genpath(somepath): diff -r 70697641fca3 -r 81641655bc38 tests/analyzers/_allowed_dependencies.py --- a/tests/analyzers/_allowed_dependencies.py Wed Jan 27 04:36:03 2010 +0000 +++ b/tests/analyzers/_allowed_dependencies.py Wed Jan 27 15:58:49 2010 +0000 @@ -1,3 +1,26 @@ +# -*- coding: utf-8 -*- + +# #################################################################### +# Copyright (C) 2005-2009 by the FIFE team +# http://www.fifengine.de +# This file is part of FIFE. +# +# FIFE is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +# #################################################################### + # the following dictionary defines the allowed dependencies checked while testing # format = module -> allowed dependencies from this module ALLOWED_MODULE_DEPS = { diff -r 70697641fca3 -r 81641655bc38 tests/analyzers/dep_analyzer.py --- a/tests/analyzers/dep_analyzer.py Wed Jan 27 04:36:03 2010 +0000 +++ b/tests/analyzers/dep_analyzer.py Wed Jan 27 15:58:49 2010 +0000 @@ -1,4 +1,27 @@ -#!/usr/bin/python +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +# #################################################################### +# Copyright (C) 2005-2009 by the FIFE team +# http://www.fifengine.de +# This file is part of FIFE. +# +# FIFE is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +# #################################################################### + import sys, re, os try: diff -r 70697641fca3 -r 81641655bc38 tests/extension_tests/extension_test_utils.py --- a/tests/extension_tests/extension_test_utils.py Wed Jan 27 04:36:03 2010 +0000 +++ b/tests/extension_tests/extension_test_utils.py Wed Jan 27 15:58:49 2010 +0000 @@ -1,3 +1,27 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +# #################################################################### +# Copyright (C) 2005-2009 by the FIFE team +# http://www.fifengine.de +# This file is part of FIFE. +# +# FIFE is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +# #################################################################### + import os, sys, unittest def genpath(somepath): diff -r 70697641fca3 -r 81641655bc38 tests/extension_tests/loaders_tests.py --- a/tests/extension_tests/loaders_tests.py Wed Jan 27 04:36:03 2010 +0000 +++ b/tests/extension_tests/loaders_tests.py Wed Jan 27 15:58:49 2010 +0000 @@ -1,4 +1,27 @@ #!/usr/bin/env python +# -*- coding: utf-8 -*- + +# #################################################################### +# Copyright (C) 2005-2009 by the FIFE team +# http://www.fifengine.de +# This file is part of FIFE. +# +# FIFE is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +# #################################################################### + from extension_test_utils import * from loaders import * diff -r 70697641fca3 -r 81641655bc38 tests/extension_tests/modelview_tests.py --- a/tests/extension_tests/modelview_tests.py Wed Jan 27 04:36:03 2010 +0000 +++ b/tests/extension_tests/modelview_tests.py Wed Jan 27 15:58:49 2010 +0000 @@ -1,4 +1,27 @@ #!/usr/bin/env python +# -*- coding: utf-8 -*- + +# #################################################################### +# Copyright (C) 2005-2009 by the FIFE team +# http://www.fifengine.de +# This file is part of FIFE. +# +# FIFE is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +# #################################################################### + from extension_test_utils import * from loaders import * import time diff -r 70697641fca3 -r 81641655bc38 tests/swig_tests/action_tests.py --- a/tests/swig_tests/action_tests.py Wed Jan 27 04:36:03 2010 +0000 +++ b/tests/swig_tests/action_tests.py Wed Jan 27 15:58:49 2010 +0000 @@ -1,4 +1,27 @@ #!/usr/bin/env python +# -*- coding: utf-8 -*- + +# #################################################################### +# Copyright (C) 2005-2009 by the FIFE team +# http://www.fifengine.de +# This file is part of FIFE. +# +# FIFE is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +# #################################################################### + from swig_test_utils import * import pythonize from serializers.xmlanimation import XMLAnimationLoader diff -r 70697641fca3 -r 81641655bc38 tests/swig_tests/audio_tests.py --- a/tests/swig_tests/audio_tests.py Wed Jan 27 04:36:03 2010 +0000 +++ b/tests/swig_tests/audio_tests.py Wed Jan 27 15:58:49 2010 +0000 @@ -1,4 +1,27 @@ #!/usr/bin/env python +# -*- coding: utf-8 -*- + +# #################################################################### +# Copyright (C) 2005-2009 by the FIFE team +# http://www.fifengine.de +# This file is part of FIFE. +# +# FIFE is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +# #################################################################### + from swig_test_utils import * import time, fifelog diff -r 70697641fca3 -r 81641655bc38 tests/swig_tests/controller_tests.py --- a/tests/swig_tests/controller_tests.py Wed Jan 27 04:36:03 2010 +0000 +++ b/tests/swig_tests/controller_tests.py Wed Jan 27 15:58:49 2010 +0000 @@ -1,4 +1,27 @@ #!/usr/bin/env python +# -*- coding: utf-8 -*- + +# #################################################################### +# Copyright (C) 2005-2009 by the FIFE team +# http://www.fifengine.de +# This file is part of FIFE. +# +# FIFE is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +# #################################################################### + from swig_test_utils import * class TestController(unittest.TestCase): diff -r 70697641fca3 -r 81641655bc38 tests/swig_tests/eventchannel_tests.py --- a/tests/swig_tests/eventchannel_tests.py Wed Jan 27 04:36:03 2010 +0000 +++ b/tests/swig_tests/eventchannel_tests.py Wed Jan 27 15:58:49 2010 +0000 @@ -1,4 +1,27 @@ #!/usr/bin/env python +# -*- coding: utf-8 -*- + +# #################################################################### +# Copyright (C) 2005-2009 by the FIFE team +# http://www.fifengine.de +# This file is part of FIFE. +# +# FIFE is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +# #################################################################### + from swig_test_utils import * class MyEventListener(fife.ICommandListener): diff -r 70697641fca3 -r 81641655bc38 tests/swig_tests/gui_tests.py --- a/tests/swig_tests/gui_tests.py Wed Jan 27 04:36:03 2010 +0000 +++ b/tests/swig_tests/gui_tests.py Wed Jan 27 15:58:49 2010 +0000 @@ -1,4 +1,27 @@ #!/usr/bin/env python +# -*- coding: utf-8 -*- + +# #################################################################### +# Copyright (C) 2005-2009 by the FIFE team +# http://www.fifengine.de +# This file is part of FIFE. +# +# FIFE is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +# #################################################################### + from swig_test_utils import * class TestGui(unittest.TestCase): diff -r 70697641fca3 -r 81641655bc38 tests/swig_tests/location_tests.py --- a/tests/swig_tests/location_tests.py Wed Jan 27 04:36:03 2010 +0000 +++ b/tests/swig_tests/location_tests.py Wed Jan 27 15:58:49 2010 +0000 @@ -1,4 +1,27 @@ #!/usr/bin/env python +# -*- coding: utf-8 -*- + +# #################################################################### +# Copyright (C) 2005-2009 by the FIFE team +# http://www.fifengine.de +# This file is part of FIFE. +# +# FIFE is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +# #################################################################### + from swig_test_utils import * import fifelog diff -r 70697641fca3 -r 81641655bc38 tests/swig_tests/log_tests.py --- a/tests/swig_tests/log_tests.py Wed Jan 27 04:36:03 2010 +0000 +++ b/tests/swig_tests/log_tests.py Wed Jan 27 15:58:49 2010 +0000 @@ -1,4 +1,27 @@ #!/usr/bin/env python +# -*- coding: utf-8 -*- + +# #################################################################### +# Copyright (C) 2005-2009 by the FIFE team +# http://www.fifengine.de +# This file is part of FIFE. +# +# FIFE is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +# #################################################################### + from swig_test_utils import * class TestLog(unittest.TestCase): diff -r 70697641fca3 -r 81641655bc38 tests/swig_tests/model_tests.py --- a/tests/swig_tests/model_tests.py Wed Jan 27 04:36:03 2010 +0000 +++ b/tests/swig_tests/model_tests.py Wed Jan 27 15:58:49 2010 +0000 @@ -1,5 +1,27 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- + +# #################################################################### +# Copyright (C) 2005-2009 by the FIFE team +# http://www.fifengine.de +# This file is part of FIFE. +# +# FIFE is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +# #################################################################### + from swig_test_utils import * import math diff -r 70697641fca3 -r 81641655bc38 tests/swig_tests/resource_tests.py --- a/tests/swig_tests/resource_tests.py Wed Jan 27 04:36:03 2010 +0000 +++ b/tests/swig_tests/resource_tests.py Wed Jan 27 15:58:49 2010 +0000 @@ -1,4 +1,27 @@ #!/usr/bin/env python +# -*- coding: utf-8 -*- + +# #################################################################### +# Copyright (C) 2005-2009 by the FIFE team +# http://www.fifengine.de +# This file is part of FIFE. +# +# FIFE is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +# #################################################################### + import sys from swig_test_utils import * from serializers import * diff -r 70697641fca3 -r 81641655bc38 tests/swig_tests/swig_test_utils.py --- a/tests/swig_tests/swig_test_utils.py Wed Jan 27 04:36:03 2010 +0000 +++ b/tests/swig_tests/swig_test_utils.py Wed Jan 27 15:58:49 2010 +0000 @@ -1,4 +1,27 @@ #!/usr/bin/env python +# -*- coding: utf-8 -*- + +# #################################################################### +# Copyright (C) 2005-2009 by the FIFE team +# http://www.fifengine.de +# This file is part of FIFE. +# +# FIFE is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +# #################################################################### + import os, sys, unittest def genpath(somepath): diff -r 70697641fca3 -r 81641655bc38 tests/swig_tests/timer_tests.py --- a/tests/swig_tests/timer_tests.py Wed Jan 27 04:36:03 2010 +0000 +++ b/tests/swig_tests/timer_tests.py Wed Jan 27 15:58:49 2010 +0000 @@ -1,4 +1,27 @@ #!/usr/bin/env python +# -*- coding: utf-8 -*- + +# #################################################################### +# Copyright (C) 2005-2009 by the FIFE team +# http://www.fifengine.de +# This file is part of FIFE. +# +# FIFE is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +# #################################################################### + from swig_test_utils import * import time diff -r 70697641fca3 -r 81641655bc38 tests/swig_tests/vfs_tests.py --- a/tests/swig_tests/vfs_tests.py Wed Jan 27 04:36:03 2010 +0000 +++ b/tests/swig_tests/vfs_tests.py Wed Jan 27 15:58:49 2010 +0000 @@ -1,4 +1,27 @@ #!/usr/bin/env python +# -*- coding: utf-8 -*- + +# #################################################################### +# Copyright (C) 2005-2009 by the FIFE team +# http://www.fifengine.de +# This file is part of FIFE. +# +# FIFE is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +# #################################################################### + from swig_test_utils import * import sys diff -r 70697641fca3 -r 81641655bc38 tests/swig_tests/video_tests.py --- a/tests/swig_tests/video_tests.py Wed Jan 27 04:36:03 2010 +0000 +++ b/tests/swig_tests/video_tests.py Wed Jan 27 15:58:49 2010 +0000 @@ -1,4 +1,27 @@ #!/usr/bin/env python +# -*- coding: utf-8 -*- + +# #################################################################### +# Copyright (C) 2005-2009 by the FIFE team +# http://www.fifengine.de +# This file is part of FIFE. +# +# FIFE is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +# #################################################################### + from swig_test_utils import * from serializers.xmlanimation import XMLAnimationLoader diff -r 70697641fca3 -r 81641655bc38 tests/swig_tests/view_tests.py --- a/tests/swig_tests/view_tests.py Wed Jan 27 04:36:03 2010 +0000 +++ b/tests/swig_tests/view_tests.py Wed Jan 27 15:58:49 2010 +0000 @@ -1,4 +1,27 @@ #!/usr/bin/env python +# -*- coding: utf-8 -*- + +# #################################################################### +# Copyright (C) 2005-2009 by the FIFE team +# http://www.fifengine.de +# This file is part of FIFE. +# +# FIFE is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +# #################################################################### + from swig_test_utils import * import time diff -r 70697641fca3 -r 81641655bc38 tools/animation_generator.py --- a/tools/animation_generator.py Wed Jan 27 04:36:03 2010 +0000 +++ b/tools/animation_generator.py Wed Jan 27 15:58:49 2010 +0000 @@ -1,4 +1,27 @@ -#!/usr/bin/python +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +# #################################################################### +# Copyright (C) 2005-2009 by the FIFE team +# http://www.fifengine.de +# This file is part of FIFE. +# +# FIFE is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +# #################################################################### + from util_scripts.path import path import os, sys diff -r 70697641fca3 -r 81641655bc38 tools/geometry_twister.py --- a/tools/geometry_twister.py Wed Jan 27 04:36:03 2010 +0000 +++ b/tools/geometry_twister.py Wed Jan 27 15:58:49 2010 +0000 @@ -1,4 +1,27 @@ #!/usr/bin/env python +# -*- coding: utf-8 -*- + +# #################################################################### +# Copyright (C) 2005-2009 by the FIFE team +# http://www.fifengine.de +# This file is part of FIFE. +# +# FIFE is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +# #################################################################### + import Tkinter as TK import math, time diff -r 70697641fca3 -r 81641655bc38 tools/object_editor.py --- a/tools/object_editor.py Wed Jan 27 04:36:03 2010 +0000 +++ b/tools/object_editor.py Wed Jan 27 15:58:49 2010 +0000 @@ -1,4 +1,27 @@ -#!/usr/bin/python +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +# #################################################################### +# Copyright (C) 2005-2009 by the FIFE team +# http://www.fifengine.de +# This file is part of FIFE. +# +# FIFE is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +# #################################################################### + import sys, os, wx import wx.grid as gridlib diff -r 70697641fca3 -r 81641655bc38 tools/object_generator.py --- a/tools/object_generator.py Wed Jan 27 04:36:03 2010 +0000 +++ b/tools/object_generator.py Wed Jan 27 15:58:49 2010 +0000 @@ -1,4 +1,27 @@ -#!/usr/bin/python +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +# #################################################################### +# Copyright (C) 2005-2009 by the FIFE team +# http://www.fifengine.de +# This file is part of FIFE. +# +# FIFE is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +# #################################################################### + from util_scripts.path import path import os, sys diff -r 70697641fca3 -r 81641655bc38 tools/object_header.sh --- a/tools/object_header.sh Wed Jan 27 04:36:03 2010 +0000 +++ b/tools/object_header.sh Wed Jan 27 15:58:49 2010 +0000 @@ -1,4 +1,27 @@ #!/bin/bash +# -*- coding: utf-8 -*- + +# #################################################################### +# Copyright (C) 2005-2009 by the FIFE team +# http://www.fifengine.de +# This file is part of FIFE. +# +# FIFE is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +# #################################################################### + # Adds an xml preprocessor directive to files named object.xml that indicates to fife that # these are object files. Call with the root directory to convert under as an argument such # as: diff -r 70697641fca3 -r 81641655bc38 tools/ruleset_tester.py --- a/tools/ruleset_tester.py Wed Jan 27 04:36:03 2010 +0000 +++ b/tools/ruleset_tester.py Wed Jan 27 15:58:49 2010 +0000 @@ -1,4 +1,27 @@ #!/usr/bin/env python +# -*- coding: utf-8 -*- + +# #################################################################### +# Copyright (C) 2005-2009 by the FIFE team +# http://www.fifengine.de +# This file is part of FIFE. +# +# FIFE is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +# #################################################################### + import Tkinter as TK import math diff -r 70697641fca3 -r 81641655bc38 utils/scons/scons_builders.py --- a/utils/scons/scons_builders.py Wed Jan 27 04:36:03 2010 +0000 +++ b/utils/scons/scons_builders.py Wed Jan 27 15:58:49 2010 +0000 @@ -1,3 +1,27 @@ +# -*- coding: utf-8 -*- + +# #################################################################### +# Copyright (C) 2005-2009 by the FIFE team +# http://www.fifengine.de +# This file is part of FIFE. +# +# FIFE is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +# #################################################################### + + import os, sys #************************************************************************** diff -r 70697641fca3 -r 81641655bc38 utils/scons/scons_utils.py --- a/utils/scons/scons_utils.py Wed Jan 27 04:36:03 2010 +0000 +++ b/utils/scons/scons_utils.py Wed Jan 27 15:58:49 2010 +0000 @@ -1,3 +1,26 @@ +# -*- coding: utf-8 -*- + +# #################################################################### +# Copyright (C) 2005-2009 by the FIFE team +# http://www.fifengine.de +# This file is part of FIFE. +# +# FIFE is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +# #################################################################### + import os, sys from string import Template