diff --git a/extensions/python/xpcom/.cvsignore b/extensions/python/xpcom/.cvsignore index 52e4e61140d1..9d5da30c48ff 100644 --- a/extensions/python/xpcom/.cvsignore +++ b/extensions/python/xpcom/.cvsignore @@ -1,2 +1,4 @@ *.pyc *.pyo +*.idb +*.pdb \ No newline at end of file diff --git a/extensions/python/xpcom/__init__.py b/extensions/python/xpcom/__init__.py index a418c8e40f9c..c3b39a7efa85 100644 --- a/extensions/python/xpcom/__init__.py +++ b/extensions/python/xpcom/__init__.py @@ -1,5 +1,19 @@ -# Copyright (c) 2000-2001 ActiveState Tool Corporation. -# See the file LICENSE.txt for licensing information. +# The contents of this file are subject to the Mozilla Public License Version +# 1.1 (the "License"); you may not use this file except in compliance with the +# License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for +# the specific language governing rights and limitations under the License. +# +# The Original Code is the Python XPCOM language bindings. +# +# The Initial Developer of the Original Code is ActiveState Tool Corp. +# Portions created by ActiveState Tool Corp. are Copyright (C) 2000, 2001 +# ActiveState Tool Corp. All Rights Reserved. +# +# Contributor(s): Mark Hammond (original author) +# # The XPCOM (Cross Platform COM) package. import exceptions diff --git a/extensions/python/xpcom/client/__init__.py b/extensions/python/xpcom/client/__init__.py index 98ca1c1350ad..b54d5c7eb7b0 100644 --- a/extensions/python/xpcom/client/__init__.py +++ b/extensions/python/xpcom/client/__init__.py @@ -1,5 +1,19 @@ -# Copyright (c) 2000-2001 ActiveState Tool Corporation. -# See the file LICENSE.txt for licensing information. +# The contents of this file are subject to the Mozilla Public License Version +# 1.1 (the "License"); you may not use this file except in compliance with the +# License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for +# the specific language governing rights and limitations under the License. +# +# The Original Code is the Python XPCOM language bindings. +# +# The Initial Developer of the Original Code is ActiveState Tool Corp. +# Portions created by ActiveState Tool Corp. are Copyright (C) 2000, 2001 +# ActiveState Tool Corp. All Rights Reserved. +# +# Contributor(s): Mark Hammond (original author) +# import os import new diff --git a/extensions/python/xpcom/components.py b/extensions/python/xpcom/components.py index 8f95e6f24c49..1144305316a6 100644 --- a/extensions/python/xpcom/components.py +++ b/extensions/python/xpcom/components.py @@ -1,5 +1,19 @@ -# Copyright (c) 2000-2001 ActiveState Tool Corporation. -# See the file LICENSE.txt for licensing information. +# The contents of this file are subject to the Mozilla Public License Version +# 1.1 (the "License"); you may not use this file except in compliance with the +# License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for +# the specific language governing rights and limitations under the License. +# +# The Original Code is the Python XPCOM language bindings. +# +# The Initial Developer of the Original Code is ActiveState Tool Corp. +# Portions created by ActiveState Tool Corp. are Copyright (C) 2000, 2001 +# ActiveState Tool Corp. All Rights Reserved. +# +# Contributor(s): Mark Hammond (original author) +# # This module provides the JavaScript "components" interface import xpt diff --git a/extensions/python/xpcom/file.py b/extensions/python/xpcom/file.py index c45e3f8f45b6..984f882ce404 100644 --- a/extensions/python/xpcom/file.py +++ b/extensions/python/xpcom/file.py @@ -1,5 +1,19 @@ -# Copyright (c) 2000-2001 ActiveState Tool Corporation. -# See the file LICENSE.txt for licensing information. +# The contents of this file are subject to the Mozilla Public License Version +# 1.1 (the "License"); you may not use this file except in compliance with the +# License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for +# the specific language governing rights and limitations under the License. +# +# The Original Code is the Python XPCOM language bindings. +# +# The Initial Developer of the Original Code is ActiveState Tool Corp. +# Portions created by ActiveState Tool Corp. are Copyright (C) 2000, 2001 +# ActiveState Tool Corp. All Rights Reserved. +# +# Contributor(s): Mark Hammond (original author) +# """Implementation of Python file objects for Mozilla/xpcom. diff --git a/extensions/python/xpcom/makefile.stupid.linux b/extensions/python/xpcom/makefile.stupid.linux index ca9f1ce29e85..824a6372f715 100644 --- a/extensions/python/xpcom/makefile.stupid.linux +++ b/extensions/python/xpcom/makefile.stupid.linux @@ -1,5 +1,20 @@ -# Copyright (c) 2000-2001 ActiveState Tool Corporation. -# See the file LICENSE.txt for licensing information. +# The contents of this file are subject to the Mozilla Public License Version +# 1.1 (the "License"); you may not use this file except in compliance with the +# License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for +# the specific language governing rights and limitations under the License. +# +# The Original Code is the Python XPCOM language bindings. +# +# The Initial Developer of the Original Code is ActiveState Tool Corp. +# Portions created by ActiveState Tool Corp. are Copyright (C) 2000, 2001 +# ActiveState Tool Corp. All Rights Reserved. +# +# Contributor(s): Trent Mick (original author) +# Mark Hammond +# # Dumb makefile to build PyXPCOM on linux # @@ -23,15 +38,14 @@ # MOZ_SRC, INSTALLDIR, and PYTHON_SRC # =========== START OF SECTION FOR COMMON EDITS ===================== -# We expect a "mozilla" directory under this -MOZ_SRC=/home/skip/src - # this will have an "xpcom" subdir on install INSTALLDIR=/usr/local/ActivePython-2.0/lib/python2.0/site-packages PYTHON_SRC=/usr/local/ActivePython-2.0 # =========== START OF SECTION FOR COMMON EDITS ===================== +# We expect a "mozilla" directory under this +MOZ_SRC=../../../../.. MOZCOMPONENTSDIR=$(MOZ_SRC)/mozilla/dist/bin/components MOZINCLUDES=-I$(MOZ_SRC)/mozilla/dist/include diff --git a/extensions/python/xpcom/makefile.stupid.win b/extensions/python/xpcom/makefile.stupid.win index e791b59cea81..10194ea06b2a 100644 --- a/extensions/python/xpcom/makefile.stupid.win +++ b/extensions/python/xpcom/makefile.stupid.win @@ -1,5 +1,20 @@ -# Copyright (c) 2000-2001 ActiveState Tool Corporation. -# See the file LICENSE.txt for licensing information. +# The contents of this file are subject to the Mozilla Public License Version +# 1.1 (the "License"); you may not use this file except in compliance with the +# License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for +# the specific language governing rights and limitations under the License. +# +# The Original Code is the Python XPCOM language bindings. +# +# The Initial Developer of the Original Code is ActiveState Tool Corp. +# Portions created by ActiveState Tool Corp. are Copyright (C) 2000, 2001 +# ActiveState Tool Corp. All Rights Reserved. +# +# Contributor(s): Trent Mick (original author) +# Mark Hammond +# # Dumb makefile to build PyXPCOM on Windows # @@ -16,12 +31,9 @@ #---------------------------------------------------------------------------- # You must edit the variables in this section as appropriate for your machine # The most common edits will just be: -# MOZ_SRC, INSTALLDIR, and PYTHON_SRC +# INSTALLDIR, and PYTHON_SRC # ========= START OF SECTION FOR COMMON EDITS ============== -# We expect a "mozilla" directory under this -MOZ_SRC=c:\src - # this will have an "xpcom" subdir on install INSTALLDIR=C:\Python20 @@ -30,6 +42,8 @@ PYTHON_SRC=C:\Python20 # ========= END OF SECTION FOR COMMON EDITS ============== +# We expect a "mozilla" directory under this +MOZ_SRC=..\..\..\..\.. !IF DEFINED(DEBUG) MOZ_BUILD_DIR=$(MOZ_SRC)\mozilla\dist\WIN32_D.OBJ @@ -47,7 +61,7 @@ MOZLIBS=/LIBPATH:$(MOZ_BUILD_DIR)\lib # - To use the development Python dir structure some changes are # necessary here *and* below (below, because there two lib dir # to include in LDFLAGS for the dev dir structure) -PYTHONINCLUDES=/I$(PYTHON_SRC)\include +PYTHONINCLUDES=/I$(PYTHON_SRC)\include /I$(PYTHON_SRC)\PC PYTHONLIBS=/LIBPATH:$(PYTHON_SRC)\libs MOZ_BIN=$(MOZ_BUILD_DIR)\bin diff --git a/extensions/python/xpcom/nsError.py b/extensions/python/xpcom/nsError.py index 02f5e088bcf4..936f93f4a5fd 100644 --- a/extensions/python/xpcom/nsError.py +++ b/extensions/python/xpcom/nsError.py @@ -1,5 +1,19 @@ -# Copyright (c) 2000-2001 ActiveState Tool Corporation. -# See the file LICENSE.txt for licensing information. +# The contents of this file are subject to the Mozilla Public License Version +# 1.1 (the "License"); you may not use this file except in compliance with the +# License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for +# the specific language governing rights and limitations under the License. +# +# The Original Code is the Python XPCOM language bindings. +# +# The Initial Developer of the Original Code is ActiveState Tool Corp. +# Portions created by ActiveState Tool Corp. are Copyright (C) 2000, 2001 +# ActiveState Tool Corp. All Rights Reserved. +# +# Contributor(s): Mark Hammond (original author) +# # Generated by h2py from nsError.h # CMD line: h2py.py -i (nsresult) nsError.h diff --git a/extensions/python/xpcom/register.py b/extensions/python/xpcom/register.py index 53f1e411b69f..97c6987624d3 100644 --- a/extensions/python/xpcom/register.py +++ b/extensions/python/xpcom/register.py @@ -1,5 +1,19 @@ -# Copyright (c) 2000-2001 ActiveState Tool Corporation. -# See the file LICENSE.txt for licensing information. +# The contents of this file are subject to the Mozilla Public License Version +# 1.1 (the "License"); you may not use this file except in compliance with the +# License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for +# the specific language governing rights and limitations under the License. +# +# The Original Code is the Python XPCOM language bindings. +# +# The Initial Developer of the Original Code is ActiveState Tool Corp. +# Portions created by ActiveState Tool Corp. are Copyright (C) 2000, 2001 +# ActiveState Tool Corp. All Rights Reserved. +# +# Contributor(s): Mark Hammond (original author) +# import os, sys diff --git a/extensions/python/xpcom/server/__init__.py b/extensions/python/xpcom/server/__init__.py index 475ad0687e1c..c075675726f3 100644 --- a/extensions/python/xpcom/server/__init__.py +++ b/extensions/python/xpcom/server/__init__.py @@ -1,5 +1,19 @@ -# Copyright (c) 2000-2001 ActiveState Tool Corporation. -# See the file LICENSE.txt for licensing information. +# The contents of this file are subject to the Mozilla Public License Version +# 1.1 (the "License"); you may not use this file except in compliance with the +# License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for +# the specific language governing rights and limitations under the License. +# +# The Original Code is the Python XPCOM language bindings. +# +# The Initial Developer of the Original Code is ActiveState Tool Corp. +# Portions created by ActiveState Tool Corp. are Copyright (C) 2000, 2001 +# ActiveState Tool Corp. All Rights Reserved. +# +# Contributor(s): Mark Hammond (original author) +# # The xpcom.server package. diff --git a/extensions/python/xpcom/server/enumerator.py b/extensions/python/xpcom/server/enumerator.py index 97baed26d05f..68442e343746 100644 --- a/extensions/python/xpcom/server/enumerator.py +++ b/extensions/python/xpcom/server/enumerator.py @@ -1,5 +1,19 @@ -# Copyright (c) 2000-2001 ActiveState Tool Corporation. -# See the file LICENSE.txt for licensing information. +# The contents of this file are subject to the Mozilla Public License Version +# 1.1 (the "License"); you may not use this file except in compliance with the +# License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for +# the specific language governing rights and limitations under the License. +# +# The Original Code is the Python XPCOM language bindings. +# +# The Initial Developer of the Original Code is ActiveState Tool Corp. +# Portions created by ActiveState Tool Corp. are Copyright (C) 2000, 2001 +# ActiveState Tool Corp. All Rights Reserved. +# +# Contributor(s): Mark Hammond (original author) +# from xpcom import components diff --git a/extensions/python/xpcom/server/factory.py b/extensions/python/xpcom/server/factory.py index f48d60696a51..b732b18a8e64 100644 --- a/extensions/python/xpcom/server/factory.py +++ b/extensions/python/xpcom/server/factory.py @@ -1,5 +1,19 @@ -# Copyright (c) 2000-2001 ActiveState Tool Corporation. -# See the file LICENSE.txt for licensing information. +# The contents of this file are subject to the Mozilla Public License Version +# 1.1 (the "License"); you may not use this file except in compliance with the +# License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for +# the specific language governing rights and limitations under the License. +# +# The Original Code is the Python XPCOM language bindings. +# +# The Initial Developer of the Original Code is ActiveState Tool Corp. +# Portions created by ActiveState Tool Corp. are Copyright (C) 2000, 2001 +# ActiveState Tool Corp. All Rights Reserved. +# +# Contributor(s): Mark Hammond (original author) +# # Class factory # diff --git a/extensions/python/xpcom/server/loader.py b/extensions/python/xpcom/server/loader.py index a6f109587ba5..eab1bd1a108b 100644 --- a/extensions/python/xpcom/server/loader.py +++ b/extensions/python/xpcom/server/loader.py @@ -1,5 +1,19 @@ -# Copyright (c) 2000-2001 ActiveState Tool Corporation. -# See the file LICENSE.txt for licensing information. +# The contents of this file are subject to the Mozilla Public License Version +# 1.1 (the "License"); you may not use this file except in compliance with the +# License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for +# the specific language governing rights and limitations under the License. +# +# The Original Code is the Python XPCOM language bindings. +# +# The Initial Developer of the Original Code is ActiveState Tool Corp. +# Portions created by ActiveState Tool Corp. are Copyright (C) 2000, 2001 +# ActiveState Tool Corp. All Rights Reserved. +# +# Contributor(s): Mark Hammond (original author) +# import xpcom from xpcom import components diff --git a/extensions/python/xpcom/server/module.py b/extensions/python/xpcom/server/module.py index ee3f24d57bcb..01ad7496912f 100644 --- a/extensions/python/xpcom/server/module.py +++ b/extensions/python/xpcom/server/module.py @@ -1,5 +1,19 @@ -# Copyright (c) 2000-2001 ActiveState Tool Corporation. -# See the file LICENSE.txt for licensing information. +# The contents of this file are subject to the Mozilla Public License Version +# 1.1 (the "License"); you may not use this file except in compliance with the +# License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for +# the specific language governing rights and limitations under the License. +# +# The Original Code is the Python XPCOM language bindings. +# +# The Initial Developer of the Original Code is ActiveState Tool Corp. +# Portions created by ActiveState Tool Corp. are Copyright (C) 2000, 2001 +# ActiveState Tool Corp. All Rights Reserved. +# +# Contributor(s): Mark Hammond (original author) +# from xpcom import components from xpcom import ServerException, Exception diff --git a/extensions/python/xpcom/server/policy.py b/extensions/python/xpcom/server/policy.py index 3986fd37d78f..9478a9c0ff40 100644 --- a/extensions/python/xpcom/server/policy.py +++ b/extensions/python/xpcom/server/policy.py @@ -1,5 +1,19 @@ -# Copyright (c) 2000-2001 ActiveState Tool Corporation. -# See the file LICENSE.txt for licensing information. +# The contents of this file are subject to the Mozilla Public License Version +# 1.1 (the "License"); you may not use this file except in compliance with the +# License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for +# the specific language governing rights and limitations under the License. +# +# The Original Code is the Python XPCOM language bindings. +# +# The Initial Developer of the Original Code is ActiveState Tool Corp. +# Portions created by ActiveState Tool Corp. are Copyright (C) 2000, 2001 +# ActiveState Tool Corp. All Rights Reserved. +# +# Contributor(s): Mark Hammond (original author) +# from xpcom import xpcom_consts, _xpcom, client, nsError, ServerException, COMException import xpcom diff --git a/extensions/python/xpcom/src/ErrorUtils.cpp b/extensions/python/xpcom/src/ErrorUtils.cpp index d2135b61f1a5..705b60feecdc 100644 --- a/extensions/python/xpcom/src/ErrorUtils.cpp +++ b/extensions/python/xpcom/src/ErrorUtils.cpp @@ -1,5 +1,21 @@ -/* Copyright (c) 2000-2001 ActiveState Tool Corporation. - See the file LICENSE.txt for licensing information. */ +/* + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for + * the specific language governing rights and limitations under the License. + * + * The Original Code is the Python XPCOM language bindings. + * + * The Initial Developer of the Original Code is ActiveState Tool Corp. + * Portions created by ActiveState Tool Corp. are Copyright (C) 2000, 2001 + * ActiveState Tool Corp. All Rights Reserved. + * + * Contributor(s): Mark Hammond (original author) + * + */ // // This code is part of the XPCOM extensions for Python. diff --git a/extensions/python/xpcom/src/PyGBase.cpp b/extensions/python/xpcom/src/PyGBase.cpp index cf47e00faa95..cfea27907a33 100644 --- a/extensions/python/xpcom/src/PyGBase.cpp +++ b/extensions/python/xpcom/src/PyGBase.cpp @@ -1,5 +1,21 @@ -/* Copyright (c) 2000-2001 ActiveState Tool Corporation. - See the file LICENSE.txt for licensing information. */ +/* + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for + * the specific language governing rights and limitations under the License. + * + * The Original Code is the Python XPCOM language bindings. + * + * The Initial Developer of the Original Code is ActiveState Tool Corp. + * Portions created by ActiveState Tool Corp. are Copyright (C) 2000, 2001 + * ActiveState Tool Corp. All Rights Reserved. + * + * Contributor(s): Mark Hammond (original author) + * + */ // PyGBase.cpp - implementation of the PyG_Base class // diff --git a/extensions/python/xpcom/src/PyGInputStream.cpp b/extensions/python/xpcom/src/PyGInputStream.cpp index b366464974c0..ecf8fd6455b0 100644 --- a/extensions/python/xpcom/src/PyGInputStream.cpp +++ b/extensions/python/xpcom/src/PyGInputStream.cpp @@ -1,5 +1,21 @@ -/* Copyright (c) 2000-2001 ActiveState Tool Corporation. - See the file LICENSE.txt for licensing information. */ +/* + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for + * the specific language governing rights and limitations under the License. + * + * The Original Code is the Python XPCOM language bindings. + * + * The Initial Developer of the Original Code is ActiveState Tool Corp. + * Portions created by ActiveState Tool Corp. are Copyright (C) 2000, 2001 + * ActiveState Tool Corp. All Rights Reserved. + * + * Contributor(s): Mark Hammond (original author) + * + */ // PyGInputStream.cpp // diff --git a/extensions/python/xpcom/src/PyGModule.cpp b/extensions/python/xpcom/src/PyGModule.cpp index be6d7d06e605..04688ac436a4 100644 --- a/extensions/python/xpcom/src/PyGModule.cpp +++ b/extensions/python/xpcom/src/PyGModule.cpp @@ -1,5 +1,21 @@ -/* Copyright (c) 2000-2001 ActiveState Tool Corporation. - See the file LICENSE.txt for licensing information. */ +/* + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for + * the specific language governing rights and limitations under the License. + * + * The Original Code is the Python XPCOM language bindings. + * + * The Initial Developer of the Original Code is ActiveState Tool Corp. + * Portions created by ActiveState Tool Corp. are Copyright (C) 2000, 2001 + * ActiveState Tool Corp. All Rights Reserved. + * + * Contributor(s): Mark Hammond (original author) + * + */ // // This code is part of the XPCOM extensions for Python. diff --git a/extensions/python/xpcom/src/PyGStub.cpp b/extensions/python/xpcom/src/PyGStub.cpp index 65dae702a420..b04d6dd34d5a 100644 --- a/extensions/python/xpcom/src/PyGStub.cpp +++ b/extensions/python/xpcom/src/PyGStub.cpp @@ -1,5 +1,21 @@ -/* Copyright (c) 2000-2001 ActiveState Tool Corporation. - See the file LICENSE.txt for licensing information. */ +/* + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for + * the specific language governing rights and limitations under the License. + * + * The Original Code is the Python XPCOM language bindings. + * + * The Initial Developer of the Original Code is ActiveState Tool Corp. + * Portions created by ActiveState Tool Corp. are Copyright (C) 2000, 2001 + * ActiveState Tool Corp. All Rights Reserved. + * + * Contributor(s): Mark Hammond (original author) + * + */ // PyXPTStub - the stub for implementing interfaces. // diff --git a/extensions/python/xpcom/src/PyGWeakReference.cpp b/extensions/python/xpcom/src/PyGWeakReference.cpp index 78227c785788..aebcc0ecb9cc 100644 --- a/extensions/python/xpcom/src/PyGWeakReference.cpp +++ b/extensions/python/xpcom/src/PyGWeakReference.cpp @@ -1,5 +1,21 @@ -/* Copyright (c) 2000-2001 ActiveState Tool Corporation. - See the file LICENSE.txt for licensing information. */ +/* + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for + * the specific language governing rights and limitations under the License. + * + * The Original Code is the Python XPCOM language bindings. + * + * The Initial Developer of the Original Code is ActiveState Tool Corp. + * Portions created by ActiveState Tool Corp. are Copyright (C) 2000, 2001 + * ActiveState Tool Corp. All Rights Reserved. + * + * Contributor(s): Mark Hammond (original author) + * + */ // PyGWeakReference - implements weak references for gateways. // diff --git a/extensions/python/xpcom/src/PyIComponentManager.cpp b/extensions/python/xpcom/src/PyIComponentManager.cpp index 14246aa3eed1..022ca8605fb5 100644 --- a/extensions/python/xpcom/src/PyIComponentManager.cpp +++ b/extensions/python/xpcom/src/PyIComponentManager.cpp @@ -1,5 +1,21 @@ -/* Copyright (c) 2000-2001 ActiveState Tool Corporation. - See the file LICENSE.txt for licensing information. */ +/* + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for + * the specific language governing rights and limitations under the License. + * + * The Original Code is the Python XPCOM language bindings. + * + * The Initial Developer of the Original Code is ActiveState Tool Corp. + * Portions created by ActiveState Tool Corp. are Copyright (C) 2000, 2001 + * ActiveState Tool Corp. All Rights Reserved. + * + * Contributor(s): Mark Hammond (original author) + * + */ // // This code is part of the XPCOM extensions for Python. diff --git a/extensions/python/xpcom/src/PyIEnumerator.cpp b/extensions/python/xpcom/src/PyIEnumerator.cpp index e2f428c394ef..ca8ba222b9ef 100644 --- a/extensions/python/xpcom/src/PyIEnumerator.cpp +++ b/extensions/python/xpcom/src/PyIEnumerator.cpp @@ -1,5 +1,21 @@ -/* Copyright (c) 2000-2001 ActiveState Tool Corporation. - See the file LICENSE.txt for licensing information. */ +/* + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for + * the specific language governing rights and limitations under the License. + * + * The Original Code is the Python XPCOM language bindings. + * + * The Initial Developer of the Original Code is ActiveState Tool Corp. + * Portions created by ActiveState Tool Corp. are Copyright (C) 2000, 2001 + * ActiveState Tool Corp. All Rights Reserved. + * + * Contributor(s): Mark Hammond (original author) + * + */ // // This code is part of the XPCOM extensions for Python. diff --git a/extensions/python/xpcom/src/PyIID.cpp b/extensions/python/xpcom/src/PyIID.cpp index 5cc443e44619..8ef8a85df64d 100644 --- a/extensions/python/xpcom/src/PyIID.cpp +++ b/extensions/python/xpcom/src/PyIID.cpp @@ -1,5 +1,21 @@ -/* Copyright (c) 2000-2001 ActiveState Tool Corporation. - See the file LICENSE.txt for licensing information. */ +/* + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for + * the specific language governing rights and limitations under the License. + * + * The Original Code is the Python XPCOM language bindings. + * + * The Initial Developer of the Original Code is ActiveState Tool Corp. + * Portions created by ActiveState Tool Corp. are Copyright (C) 2000, 2001 + * ActiveState Tool Corp. All Rights Reserved. + * + * Contributor(s): Mark Hammond (original author) + * + */ // Py_nsIID.cpp -- IID type for Python/XPCOM // diff --git a/extensions/python/xpcom/src/PyIInputStream.cpp b/extensions/python/xpcom/src/PyIInputStream.cpp index 323ebcaa87b0..bbc9024c453e 100644 --- a/extensions/python/xpcom/src/PyIInputStream.cpp +++ b/extensions/python/xpcom/src/PyIInputStream.cpp @@ -1,5 +1,21 @@ -/* Copyright (c) 2000-2001 ActiveState Tool Corporation. - See the file LICENSE.txt for licensing information. */ +/* + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for + * the specific language governing rights and limitations under the License. + * + * The Original Code is the Python XPCOM language bindings. + * + * The Initial Developer of the Original Code is ActiveState Tool Corp. + * Portions created by ActiveState Tool Corp. are Copyright (C) 2000, 2001 + * ActiveState Tool Corp. All Rights Reserved. + * + * Contributor(s): Mark Hammond (original author) + * + */ // // This code is part of the XPCOM extensions for Python. diff --git a/extensions/python/xpcom/src/PyIInterfaceInfo.cpp b/extensions/python/xpcom/src/PyIInterfaceInfo.cpp index a82df7754a1d..c204d884cb15 100644 --- a/extensions/python/xpcom/src/PyIInterfaceInfo.cpp +++ b/extensions/python/xpcom/src/PyIInterfaceInfo.cpp @@ -1,5 +1,21 @@ -/* Copyright (c) 2000-2001 ActiveState Tool Corporation. - See the file LICENSE.txt for licensing information. */ +/* + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for + * the specific language governing rights and limitations under the License. + * + * The Original Code is the Python XPCOM language bindings. + * + * The Initial Developer of the Original Code is ActiveState Tool Corp. + * Portions created by ActiveState Tool Corp. are Copyright (C) 2000, 2001 + * ActiveState Tool Corp. All Rights Reserved. + * + * Contributor(s): Mark Hammond (original author) + * + */ // // This code is part of the XPCOM extensions for Python. diff --git a/extensions/python/xpcom/src/PyIInterfaceInfoManager.cpp b/extensions/python/xpcom/src/PyIInterfaceInfoManager.cpp index 3ffc4c03a982..f9c462c3f0d5 100644 --- a/extensions/python/xpcom/src/PyIInterfaceInfoManager.cpp +++ b/extensions/python/xpcom/src/PyIInterfaceInfoManager.cpp @@ -1,5 +1,22 @@ -/* Copyright (c) 2000-2001 ActiveState Tool Corporation. - See the file LICENSE.txt for licensing information. */ +/* + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for + * the specific language governing rights and limitations under the License. + * + * The Original Code is the Python XPCOM language bindings. + * + * The Initial Developer of the Original Code is ActiveState Tool Corp. + * Portions created by ActiveState Tool Corp. are Copyright (C) 2000, 2001 + * ActiveState Tool Corp. All Rights Reserved. + * + * Contributor(s): Mark Hammond (original author) + * + */ + // // This code is part of the XPCOM extensions for Python. diff --git a/extensions/python/xpcom/src/PyIServiceManager.cpp b/extensions/python/xpcom/src/PyIServiceManager.cpp index 0fbe2746d2c8..3cbcf92b996e 100644 --- a/extensions/python/xpcom/src/PyIServiceManager.cpp +++ b/extensions/python/xpcom/src/PyIServiceManager.cpp @@ -1,5 +1,21 @@ -/* Copyright (c) 2000-2001 ActiveState Tool Corporation. - See the file LICENSE.txt for licensing information. */ +/* + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for + * the specific language governing rights and limitations under the License. + * + * The Original Code is the Python XPCOM language bindings. + * + * The Initial Developer of the Original Code is ActiveState Tool Corp. + * Portions created by ActiveState Tool Corp. are Copyright (C) 2000, 2001 + * ActiveState Tool Corp. All Rights Reserved. + * + * Contributor(s): Mark Hammond (original author) + * + */ // // This code is part of the XPCOM extensions for Python. diff --git a/extensions/python/xpcom/src/PyISimpleEnumerator.cpp b/extensions/python/xpcom/src/PyISimpleEnumerator.cpp index 00446a323595..3894507802b1 100644 --- a/extensions/python/xpcom/src/PyISimpleEnumerator.cpp +++ b/extensions/python/xpcom/src/PyISimpleEnumerator.cpp @@ -1,5 +1,21 @@ -/* Copyright (c) 2000-2001 ActiveState Tool Corporation. - See the file LICENSE.txt for licensing information. */ +/* + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for + * the specific language governing rights and limitations under the License. + * + * The Original Code is the Python XPCOM language bindings. + * + * The Initial Developer of the Original Code is ActiveState Tool Corp. + * Portions created by ActiveState Tool Corp. are Copyright (C) 2000, 2001 + * ActiveState Tool Corp. All Rights Reserved. + * + * Contributor(s): Mark Hammond (original author) + * + */ // // This code is part of the XPCOM extensions for Python. diff --git a/extensions/python/xpcom/src/PyISupports.cpp b/extensions/python/xpcom/src/PyISupports.cpp index 75da99c88317..9029d12712f3 100644 --- a/extensions/python/xpcom/src/PyISupports.cpp +++ b/extensions/python/xpcom/src/PyISupports.cpp @@ -1,5 +1,21 @@ -/* Copyright (c) 2000-2001 ActiveState Tool Corporation. - See the file LICENSE.txt for licensing information. */ +/* + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for + * the specific language governing rights and limitations under the License. + * + * The Original Code is the Python XPCOM language bindings. + * + * The Initial Developer of the Original Code is ActiveState Tool Corp. + * Portions created by ActiveState Tool Corp. are Copyright (C) 2000, 2001 + * ActiveState Tool Corp. All Rights Reserved. + * + * Contributor(s): Mark Hammond (original author) + * + */ // // This code is part of the XPCOM extensions for Python. diff --git a/extensions/python/xpcom/src/PyXPCOM.h b/extensions/python/xpcom/src/PyXPCOM.h index 026cbc516f8d..dc2786c55e82 100644 --- a/extensions/python/xpcom/src/PyXPCOM.h +++ b/extensions/python/xpcom/src/PyXPCOM.h @@ -1,5 +1,21 @@ -/* Copyright (c) 2000-2001 ActiveState Tool Corporation. - See the file LICENSE.txt for licensing information. */ +/* + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for + * the specific language governing rights and limitations under the License. + * + * The Original Code is the Python XPCOM language bindings. + * + * The Initial Developer of the Original Code is ActiveState Tool Corp. + * Portions created by ActiveState Tool Corp. are Copyright (C) 2000, 2001 + * ActiveState Tool Corp. All Rights Reserved. + * + * Contributor(s): Mark Hammond (original author) + * + */ // PyXPCOM.h - the main header file for the Python XPCOM support. // diff --git a/extensions/python/xpcom/src/PyXPCOM_std.h b/extensions/python/xpcom/src/PyXPCOM_std.h index dc063eb10d84..651ee4bed8d2 100644 --- a/extensions/python/xpcom/src/PyXPCOM_std.h +++ b/extensions/python/xpcom/src/PyXPCOM_std.h @@ -1,5 +1,21 @@ -/* Copyright (c) 2000-2001 ActiveState Tool Corporation. - See the file LICENSE.txt for licensing information. */ +/* + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for + * the specific language governing rights and limitations under the License. + * + * The Original Code is the Python XPCOM language bindings. + * + * The Initial Developer of the Original Code is ActiveState Tool Corp. + * Portions created by ActiveState Tool Corp. are Copyright (C) 2000, 2001 + * ActiveState Tool Corp. All Rights Reserved. + * + * Contributor(s): Mark Hammond (original author) + * + */ // standard include - sets up all the defines used by // the mozilla make process - too lazy to work out how to integrate diff --git a/extensions/python/xpcom/src/Pyxpt_info.cpp b/extensions/python/xpcom/src/Pyxpt_info.cpp index bf6509c0a583..769eab518179 100644 --- a/extensions/python/xpcom/src/Pyxpt_info.cpp +++ b/extensions/python/xpcom/src/Pyxpt_info.cpp @@ -1,5 +1,21 @@ -/* Copyright (c) 2000-2001 ActiveState Tool Corporation. - See the file LICENSE.txt for licensing information. */ +/* + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for + * the specific language governing rights and limitations under the License. + * + * The Original Code is the Python XPCOM language bindings. + * + * The Initial Developer of the Original Code is ActiveState Tool Corp. + * Portions created by ActiveState Tool Corp. are Copyright (C) 2000, 2001 + * ActiveState Tool Corp. All Rights Reserved. + * + * Contributor(s): Mark Hammond (original author) + * + */ // Pyxpt_info.cpp - wrappers for the xpt_info objects. // diff --git a/extensions/python/xpcom/src/TypeObject.cpp b/extensions/python/xpcom/src/TypeObject.cpp index bf8ced9bcdf3..da8e14194927 100644 --- a/extensions/python/xpcom/src/TypeObject.cpp +++ b/extensions/python/xpcom/src/TypeObject.cpp @@ -1,5 +1,21 @@ -/* Copyright (c) 2000-2001 ActiveState Tool Corporation. - See the file LICENSE.txt for licensing information. */ +/* + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for + * the specific language governing rights and limitations under the License. + * + * The Original Code is the Python XPCOM language bindings. + * + * The Initial Developer of the Original Code is ActiveState Tool Corp. + * Portions created by ActiveState Tool Corp. are Copyright (C) 2000, 2001 + * ActiveState Tool Corp. All Rights Reserved. + * + * Contributor(s): Mark Hammond (original author) + * + */ // // This code is part of the XPCOM extensions for Python. diff --git a/extensions/python/xpcom/src/VariantUtils.cpp b/extensions/python/xpcom/src/VariantUtils.cpp index 8e6f34df541f..59f56d820734 100644 --- a/extensions/python/xpcom/src/VariantUtils.cpp +++ b/extensions/python/xpcom/src/VariantUtils.cpp @@ -1,5 +1,21 @@ -/* Copyright (c) 2000-2001 ActiveState Tool Corporation. - See the file LICENSE.txt for licensing information. */ +/* + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for + * the specific language governing rights and limitations under the License. + * + * The Original Code is the Python XPCOM language bindings. + * + * The Initial Developer of the Original Code is ActiveState Tool Corp. + * Portions created by ActiveState Tool Corp. are Copyright (C) 2000, 2001 + * ActiveState Tool Corp. All Rights Reserved. + * + * Contributor(s): Mark Hammond (original author) + * + */ // // This code is part of the XPCOM extensions for Python. diff --git a/extensions/python/xpcom/src/dllmain.cpp b/extensions/python/xpcom/src/dllmain.cpp index 147b01b0e93e..44def06654e5 100644 --- a/extensions/python/xpcom/src/dllmain.cpp +++ b/extensions/python/xpcom/src/dllmain.cpp @@ -1,5 +1,21 @@ -/* Copyright (c) 2000-2001 ActiveState Tool Corporation. - See the file LICENSE.txt for licensing information. */ +/* + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for + * the specific language governing rights and limitations under the License. + * + * The Original Code is the Python XPCOM language bindings. + * + * The Initial Developer of the Original Code is ActiveState Tool Corp. + * Portions created by ActiveState Tool Corp. are Copyright (C) 2000, 2001 + * ActiveState Tool Corp. All Rights Reserved. + * + * Contributor(s): Mark Hammond (original author) + * + */ // // This code is part of the XPCOM extensions for Python. diff --git a/extensions/python/xpcom/src/loader/pyloader.cpp b/extensions/python/xpcom/src/loader/pyloader.cpp index e8477f2cd15f..679773c0d6d3 100644 --- a/extensions/python/xpcom/src/loader/pyloader.cpp +++ b/extensions/python/xpcom/src/loader/pyloader.cpp @@ -1,5 +1,21 @@ -/* Copyright (c) 2000-2001 ActiveState Tool Corporation. - See the file LICENSE.txt for licensing information. */ +/* + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for + * the specific language governing rights and limitations under the License. + * + * The Original Code is the Python XPCOM language bindings. + * + * The Initial Developer of the Original Code is ActiveState Tool Corp. + * Portions created by ActiveState Tool Corp. are Copyright (C) 2000, 2001 + * ActiveState Tool Corp. All Rights Reserved. + * + * Contributor(s): Mark Hammond (original author) + * + */ // pyloader // diff --git a/extensions/python/xpcom/src/xpcom.cpp b/extensions/python/xpcom/src/xpcom.cpp index 70629e4a510e..2097bba7562b 100644 --- a/extensions/python/xpcom/src/xpcom.cpp +++ b/extensions/python/xpcom/src/xpcom.cpp @@ -1,5 +1,21 @@ -/* Copyright (c) 2000-2001 ActiveState Tool Corporation. - See the file LICENSE.txt for licensing information. */ +/* + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for + * the specific language governing rights and limitations under the License. + * + * The Original Code is the Python XPCOM language bindings. + * + * The Initial Developer of the Original Code is ActiveState Tool Corp. + * Portions created by ActiveState Tool Corp. are Copyright (C) 2000, 2001 + * ActiveState Tool Corp. All Rights Reserved. + * + * Contributor(s): Mark Hammond (original author) + * + */ // // This code is part of the XPCOM extensions for Python. diff --git a/extensions/python/xpcom/test/regrtest.py b/extensions/python/xpcom/test/regrtest.py index a16a900ebfed..6cddafcf7dbe 100644 --- a/extensions/python/xpcom/test/regrtest.py +++ b/extensions/python/xpcom/test/regrtest.py @@ -1,5 +1,19 @@ -# Copyright (c) 2000-2001 ActiveState Tool Corporation. -# See the file LICENSE.txt for licensing information. +# The contents of this file are subject to the Mozilla Public License Version +# 1.1 (the "License"); you may not use this file except in compliance with the +# License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for +# the specific language governing rights and limitations under the License. +# +# The Original Code is the Python XPCOM language bindings. +# +# The Initial Developer of the Original Code is ActiveState Tool Corp. +# Portions created by ActiveState Tool Corp. are Copyright (C) 2000, 2001 +# ActiveState Tool Corp. All Rights Reserved. +# +# Contributor(s): Mark Hammond (original author) +# # regrtest.py # diff --git a/extensions/python/xpcom/test/test_com_exceptions.py b/extensions/python/xpcom/test/test_com_exceptions.py index dc0d2c52a96a..650d92bbf3ba 100644 --- a/extensions/python/xpcom/test/test_com_exceptions.py +++ b/extensions/python/xpcom/test/test_com_exceptions.py @@ -1,5 +1,19 @@ -# Copyright (c) 2000-2001 ActiveState Tool Corporation. -# See the file LICENSE.txt for licensing information. +# The contents of this file are subject to the Mozilla Public License Version +# 1.1 (the "License"); you may not use this file except in compliance with the +# License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for +# the specific language governing rights and limitations under the License. +# +# The Original Code is the Python XPCOM language bindings. +# +# The Initial Developer of the Original Code is ActiveState Tool Corp. +# Portions created by ActiveState Tool Corp. are Copyright (C) 2000, 2001 +# ActiveState Tool Corp. All Rights Reserved. +# +# Contributor(s): Mark Hammond (original author) +# # Test pyxpcom exception. diff --git a/extensions/python/xpcom/test/test_comfile.py b/extensions/python/xpcom/test/test_comfile.py index e78c33d6bbda..9e5fa0542be3 100644 --- a/extensions/python/xpcom/test/test_comfile.py +++ b/extensions/python/xpcom/test/test_comfile.py @@ -1,5 +1,19 @@ -# Copyright (c) 2000-2001 ActiveState Tool Corporation. -# See the file LICENSE.txt for licensing information. +# The contents of this file are subject to the Mozilla Public License Version +# 1.1 (the "License"); you may not use this file except in compliance with the +# License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for +# the specific language governing rights and limitations under the License. +# +# The Original Code is the Python XPCOM language bindings. +# +# The Initial Developer of the Original Code is ActiveState Tool Corp. +# Portions created by ActiveState Tool Corp. are Copyright (C) 2000, 2001 +# ActiveState Tool Corp. All Rights Reserved. +# +# Contributor(s): Mark Hammond (original author) +# """Test the xpcom.file module.""" # Called "test_comfile" as Python has a standard test called test_file :-( diff --git a/extensions/python/xpcom/test/test_component/py_test_component.idl b/extensions/python/xpcom/test/test_component/py_test_component.idl index 9597b7300449..0196d8ef3027 100644 --- a/extensions/python/xpcom/test/test_component/py_test_component.idl +++ b/extensions/python/xpcom/test/test_component/py_test_component.idl @@ -1,5 +1,21 @@ -/* Copyright (c) 2000-2001 ActiveState Tool Corporation. - See the file LICENSE.txt for licensing information. */ +/* + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for + * the specific language governing rights and limitations under the License. + * + * The Original Code is the Python XPCOM language bindings. + * + * The Initial Developer of the Original Code is ActiveState Tool Corp. + * Portions created by ActiveState Tool Corp. are Copyright (C) 2000, 2001 + * ActiveState Tool Corp. All Rights Reserved. + * + * Contributor(s): Mark Hammond (original author) + * + */ // NOTE: This is a TEST interface, not a DEMO interface :-) // We try to get as many data-types etc exposed, meaning this diff --git a/extensions/python/xpcom/test/test_component/py_test_component.py b/extensions/python/xpcom/test/test_component/py_test_component.py index 288fdcdca387..ba49702cb8af 100644 --- a/extensions/python/xpcom/test/test_component/py_test_component.py +++ b/extensions/python/xpcom/test/test_component/py_test_component.py @@ -1,5 +1,19 @@ -# Copyright (c) 2000-2001 ActiveState Tool Corporation. -# See the file LICENSE.txt for licensing information. +# The contents of this file are subject to the Mozilla Public License Version +# 1.1 (the "License"); you may not use this file except in compliance with the +# License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for +# the specific language governing rights and limitations under the License. +# +# The Original Code is the Python XPCOM language bindings. +# +# The Initial Developer of the Original Code is ActiveState Tool Corp. +# Portions created by ActiveState Tool Corp. are Copyright (C) 2000, 2001 +# ActiveState Tool Corp. All Rights Reserved. +# +# Contributor(s): Mark Hammond (original author) +# # NOTE: This is a TEST interface, not a DEMO interface :-) # We try to get as many data-types etc exposed, meaning this diff --git a/extensions/python/xpcom/test/test_components.py b/extensions/python/xpcom/test/test_components.py index af95b5e451bc..5e6e7935b6e7 100644 --- a/extensions/python/xpcom/test/test_components.py +++ b/extensions/python/xpcom/test/test_components.py @@ -1,5 +1,19 @@ -# Copyright (c) 2000-2001 ActiveState Tool Corporation. -# See the file LICENSE.txt for licensing information. +# The contents of this file are subject to the Mozilla Public License Version +# 1.1 (the "License"); you may not use this file except in compliance with the +# License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for +# the specific language governing rights and limitations under the License. +# +# The Original Code is the Python XPCOM language bindings. +# +# The Initial Developer of the Original Code is ActiveState Tool Corp. +# Portions created by ActiveState Tool Corp. are Copyright (C) 2000, 2001 +# ActiveState Tool Corp. All Rights Reserved. +# +# Contributor(s): Mark Hammond (original author) +# """Tests the "xpcom.components" object. """ diff --git a/extensions/python/xpcom/test/test_isupports_primitives.py b/extensions/python/xpcom/test/test_isupports_primitives.py index 92a005346b1d..4fa15c92f489 100644 --- a/extensions/python/xpcom/test/test_isupports_primitives.py +++ b/extensions/python/xpcom/test/test_isupports_primitives.py @@ -1,5 +1,19 @@ -# Copyright (c) 2000-2001 ActiveState Tool Corporation. -# See the file LICENSE.txt for licensing information. +# The contents of this file are subject to the Mozilla Public License Version +# 1.1 (the "License"); you may not use this file except in compliance with the +# License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for +# the specific language governing rights and limitations under the License. +# +# The Original Code is the Python XPCOM language bindings. +# +# The Initial Developer of the Original Code is ActiveState Tool Corp. +# Portions created by ActiveState Tool Corp. are Copyright (C) 2000, 2001 +# ActiveState Tool Corp. All Rights Reserved. +# +# Contributor(s): Mark Hammond (original author) +# # Test our support for the interfaces defined in nsISupportsPrimitives.idl # diff --git a/extensions/python/xpcom/test/test_misc.py b/extensions/python/xpcom/test/test_misc.py index 89e812e255db..0952e8c418d2 100644 --- a/extensions/python/xpcom/test/test_misc.py +++ b/extensions/python/xpcom/test/test_misc.py @@ -1,5 +1,19 @@ -# Copyright (c) 2000-2001 ActiveState Tool Corporation. -# See the file LICENSE.txt for licensing information. +# The contents of this file are subject to the Mozilla Public License Version +# 1.1 (the "License"); you may not use this file except in compliance with the +# License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for +# the specific language governing rights and limitations under the License. +# +# The Original Code is the Python XPCOM language bindings. +# +# The Initial Developer of the Original Code is ActiveState Tool Corp. +# Portions created by ActiveState Tool Corp. are Copyright (C) 2000, 2001 +# ActiveState Tool Corp. All Rights Reserved. +# +# Contributor(s): Mark Hammond (original author) +# import xpcom import xpcom.client diff --git a/extensions/python/xpcom/test/test_streams.py b/extensions/python/xpcom/test/test_streams.py index 65700516a740..76e02ca1ef71 100644 --- a/extensions/python/xpcom/test/test_streams.py +++ b/extensions/python/xpcom/test/test_streams.py @@ -1,5 +1,19 @@ -# Copyright (c) 2000-2001 ActiveState Tool Corporation. -# See the file LICENSE.txt for licensing information. +# The contents of this file are subject to the Mozilla Public License Version +# 1.1 (the "License"); you may not use this file except in compliance with the +# License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for +# the specific language governing rights and limitations under the License. +# +# The Original Code is the Python XPCOM language bindings. +# +# The Initial Developer of the Original Code is ActiveState Tool Corp. +# Portions created by ActiveState Tool Corp. are Copyright (C) 2000, 2001 +# ActiveState Tool Corp. All Rights Reserved. +# +# Contributor(s): Mark Hammond (original author) +# import xpcom from xpcom import _xpcom, components, COMException, ServerException, nsError diff --git a/extensions/python/xpcom/test/test_test_component.js b/extensions/python/xpcom/test/test_test_component.js index e8c3a016295d..3018f90a4579 100644 --- a/extensions/python/xpcom/test/test_test_component.js +++ b/extensions/python/xpcom/test/test_test_component.js @@ -1,3 +1,22 @@ +/* + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for + * the specific language governing rights and limitations under the License. + * + * The Original Code is the Python XPCOM language bindings. + * + * The Initial Developer of the Original Code is ActiveState Tool Corp. + * Portions created by ActiveState Tool Corp. are Copyright (C) 2000, 2001 + * ActiveState Tool Corp. All Rights Reserved. + * + * Contributor(s): Mark Hammond (original author) + * + */ + /* Javascript code calling the Python test interface. */ function MakeTestInterface() diff --git a/extensions/python/xpcom/test/test_test_component.py b/extensions/python/xpcom/test/test_test_component.py index 02824866f8ca..9e7767a9885a 100644 --- a/extensions/python/xpcom/test/test_test_component.py +++ b/extensions/python/xpcom/test/test_test_component.py @@ -1,5 +1,19 @@ -# Copyright (c) 2000-2001 ActiveState Tool Corporation. -# See the file LICENSE.txt for licensing information. +# The contents of this file are subject to the Mozilla Public License Version +# 1.1 (the "License"); you may not use this file except in compliance with the +# License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for +# the specific language governing rights and limitations under the License. +# +# The Original Code is the Python XPCOM language bindings. +# +# The Initial Developer of the Original Code is ActiveState Tool Corp. +# Portions created by ActiveState Tool Corp. are Copyright (C) 2000, 2001 +# ActiveState Tool Corp. All Rights Reserved. +# +# Contributor(s): Mark Hammond (original author) +# import sys, os import xpcom.components diff --git a/extensions/python/xpcom/test/test_weakreferences.py b/extensions/python/xpcom/test/test_weakreferences.py index 9a65034e618e..db0523ef695b 100644 --- a/extensions/python/xpcom/test/test_weakreferences.py +++ b/extensions/python/xpcom/test/test_weakreferences.py @@ -1,5 +1,19 @@ -# Copyright (c) 2000-2001 ActiveState Tool Corporation. -# See the file LICENSE.txt for licensing information. +# The contents of this file are subject to the Mozilla Public License Version +# 1.1 (the "License"); you may not use this file except in compliance with the +# License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for +# the specific language governing rights and limitations under the License. +# +# The Original Code is the Python XPCOM language bindings. +# +# The Initial Developer of the Original Code is ActiveState Tool Corp. +# Portions created by ActiveState Tool Corp. are Copyright (C) 2000, 2001 +# ActiveState Tool Corp. All Rights Reserved. +# +# Contributor(s): Mark Hammond (original author) +# # test_weakreferences.py - Test our weak reference implementation. from xpcom import components, _xpcom diff --git a/extensions/python/xpcom/tools/regxpcom.py b/extensions/python/xpcom/tools/regxpcom.py index e27bd07400cf..d8289385c96b 100644 --- a/extensions/python/xpcom/tools/regxpcom.py +++ b/extensions/python/xpcom/tools/regxpcom.py @@ -1,5 +1,19 @@ -# Copyright (c) 2000-2001 ActiveState Tool Corporation. -# See the file LICENSE.txt for licensing information. +# The contents of this file are subject to the Mozilla Public License Version +# 1.1 (the "License"); you may not use this file except in compliance with the +# License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for +# the specific language governing rights and limitations under the License. +# +# The Original Code is the Python XPCOM language bindings. +# +# The Initial Developer of the Original Code is ActiveState Tool Corp. +# Portions created by ActiveState Tool Corp. are Copyright (C) 2000, 2001 +# ActiveState Tool Corp. All Rights Reserved. +# +# Contributor(s): Mark Hammond (original author) +# # regxpcom.py - basically the standard regxpcom.cpp ported to Python. diff --git a/extensions/python/xpcom/tools/tracer_demo.py b/extensions/python/xpcom/tools/tracer_demo.py index 9e1eb5744040..9a0552d00a9b 100644 --- a/extensions/python/xpcom/tools/tracer_demo.py +++ b/extensions/python/xpcom/tools/tracer_demo.py @@ -1,5 +1,19 @@ -# Copyright (c) 2000-2001 ActiveState Tool Corporation. -# See the file LICENSE.txt for licensing information. +# The contents of this file are subject to the Mozilla Public License Version +# 1.1 (the "License"); you may not use this file except in compliance with the +# License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for +# the specific language governing rights and limitations under the License. +# +# The Original Code is the Python XPCOM language bindings. +# +# The Initial Developer of the Original Code is ActiveState Tool Corp. +# Portions created by ActiveState Tool Corp. are Copyright (C) 2000, 2001 +# ActiveState Tool Corp. All Rights Reserved. +# +# Contributor(s): Mark Hammond (original author) +# # This is a demo is how to use the xpcom.server "tracer" facility. # diff --git a/extensions/python/xpcom/xpcom_consts.py b/extensions/python/xpcom/xpcom_consts.py index 75a075ed652d..c45534aadada 100644 --- a/extensions/python/xpcom/xpcom_consts.py +++ b/extensions/python/xpcom/xpcom_consts.py @@ -1,5 +1,19 @@ -# Copyright (c) 2000-2001 ActiveState Tool Corporation. -# See the file LICENSE.txt for licensing information. +# The contents of this file are subject to the Mozilla Public License Version +# 1.1 (the "License"); you may not use this file except in compliance with the +# License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for +# the specific language governing rights and limitations under the License. +# +# The Original Code is the Python XPCOM language bindings. +# +# The Initial Developer of the Original Code is ActiveState Tool Corp. +# Portions created by ActiveState Tool Corp. are Copyright (C) 2000, 2001 +# ActiveState Tool Corp. All Rights Reserved. +# +# Contributor(s): Mark Hammond (original author) +# # Could maybe later have a process that extracted these enums should they change. # from nsFileLocations.h diff --git a/extensions/python/xpcom/xpt.py b/extensions/python/xpcom/xpt.py index bc5f0bbc68c1..e33d1809cad4 100644 --- a/extensions/python/xpcom/xpt.py +++ b/extensions/python/xpcom/xpt.py @@ -1,5 +1,20 @@ -# Copyright (c) 2000-2001 ActiveState Tool Corporation. -# See the file LICENSE.txt for licensing information. +# The contents of this file are subject to the Mozilla Public License Version +# 1.1 (the "License"); you may not use this file except in compliance with the +# License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for +# the specific language governing rights and limitations under the License. +# +# The Original Code is the Python XPCOM language bindings. +# +# The Initial Developer of the Original Code is ActiveState Tool Corp. +# Portions created by ActiveState Tool Corp. are Copyright (C) 2000, 2001 +# ActiveState Tool Corp. All Rights Reserved. +# +# Contributor(s): David Ascher (original author) +# Mark Hammond +# """ Program: xpt.py