mhammond%skippinet.com.au
20205c380d
Allow PYXPCOM_LOG_LEVEL and PYXPCOM_LOG_FILE from the environment to change
...
the logfile behaviour.
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@181844 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-09 09:18:26 +00:00
mhammond%skippinet.com.au
3b4e6118e8
Add PyObject_FromNSInterface as a public function.
...
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@181843 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-09 08:55:22 +00:00
mhammond%skippinet.com.au
c73211d45d
Finish rename of logger to 'xpcom'
...
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@181710 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-06 09:48:34 +00:00
mhammond%skippinet.com.au
1742d0ad46
Only the caller of PrErr_Fetch can call PyErr_NormalizeException - it may
...
change the pointers!
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@181704 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-06 07:29:20 +00:00
mhammond%skippinet.com.au
e459c4c4f1
Avoid looking for _eq_ and _neq_ attributes, and always pass the raw
...
object to XPTC_InvokeByIndex.
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@181686 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-05 22:14:51 +00:00
mhammond%skippinet.com.au
00644c99bf
Chage log name to simply 'xpcom' to match the package name.
...
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@181685 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-05 22:13:53 +00:00
mhammond%skippinet.com.au
22d53280da
Few more nsVariant tests
...
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@181684 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-05 22:13:06 +00:00
mhammond%skippinet.com.au
fc11431a03
Allow a Py_nsISupports object to control how interface objects obtained
...
from its methods or attributes are created. Various nsVariant fixes
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@181683 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-05 22:12:21 +00:00
mhammond%skippinet.com.au
16deaf6871
Delete stale module.
...
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@181519 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-04 00:39:08 +00:00
mhammond%skippinet.com.au
6f223094ae
new xpcom.primitives module for nsISupportsPrimitive interface helpers
...
and tests.
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@181517 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-04 00:36:36 +00:00
mhammond%skippinet.com.au
d6a450b609
2nd param to Component() is optional, and correct typo in docstring.
...
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@181515 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-04 00:35:06 +00:00
mhammond%skippinet.com.au
a077cf0cc8
Add public PyObject_AsNSString, and refactor VariantUtils to use it when
...
appropriate.
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@181514 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-04 00:33:58 +00:00
mhammond%skippinet.com.au
4686cd2578
* Bring nsISupportsPrimitives support into the unicode world.
...
* test_isupports_primitives moves to unittest and tests unicode.
* More overloads for PyObject_FromNSString, dropping PyUnicode_FromPRUnichar.
* PyExc_MemoryError translated to NS_ERROR_OUT_OF_MEMORY
* PyXPCOM_FormatCurrentException becomes public.
* Add more type slots, even though we don't use them yet.
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@181432 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-02 13:00:15 +00:00
mhammond%skippinet.com.au
7ab59c55da
Updates some comments.
...
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@179986 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-11 14:18:56 +00:00
mhammond%skippinet.com.au
0dd0630a4e
Clear the current Python error when returning an error code to xpcom
...
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@179903 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-09 14:36:29 +00:00
mhammond%skippinet.com.au
c934921021
Various fixes to support the logging module.
...
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@179678 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-06 02:40:36 +00:00
mhammond%skippinet.com.au
47e515ba03
Avoid compiler warnings relating to _POSIX_C_SOURCE
...
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@179652 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-05 05:39:26 +00:00
mhammond%skippinet.com.au
841af17494
Work with the Python logging module.
...
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@179650 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-05 05:07:22 +00:00
mhammond%skippinet.com.au
b528d6a0b2
Patch from Shane to prevent Python components with an array param from
...
ever getting None for that param.
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@179645 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-04 23:30:12 +00:00
mhammond%skippinet.com.au
b0f12aa6b6
oops - lost the python libs
...
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@179644 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-04 23:13:27 +00:00
mhammond%skippinet.com.au
5babba133f
Get the "shared" pyxpcom building correctly on non-windows.
...
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@179643 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-04 22:54:53 +00:00
mhammond%skippinet.com.au
066d447808
Fixes to the new logging skeleton
...
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@179620 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-04 12:50:23 +00:00
mhammond%skippinet.com.au
ef0487975b
The core library was being built with .pyd suffix.
...
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@179619 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-04 10:56:16 +00:00
mhammond%skippinet.com.au
6c3af8c7c7
pyxpcom enhancements done as part of the dom work:
...
* pyxpcom.dll/.so holds the core library. _xpcom module becomes a thin
wrapper around the DLL, and the module loader gets the main loader logic
back.
* Don't globally block pending deprecation warnings in Python 2.4 -
also fix a few places where 2.3 and 2.4 behaved differently.
* Add the start of logging module support, pending approval from the mailing list.
* Expose NS_GetComponentRegistrar so regxpcom.py works again.
* 'make check' now runs the test suite (like it does for various other parts of the moz tree)
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@179616 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-04 04:11:12 +00:00
mhammond%skippinet.com.au
1cf8051395
Bug 297598 - bring pyxpcom up to speed.
...
r=alecf, sr=shaver - not used by any builds.
git-svn-id: svn://10.0.0.236/trunk@178999 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-25 21:52:19 +00:00
cbiesinger%web.de
2ce7d2cbfa
Bug 129216 Integrate Python xpcom bindings with build system
...
patch by Mark Hammond <mhammond@skippinet.com.au > / Remy C. Cool
<dev-python@smartology.nl > / Christian Persch <chpe@gnome.org >
r+a=bsmedberg
git-svn-id: svn://10.0.0.236/trunk@174797 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-17 21:03:43 +00:00
gerv%gerv.net
7ecbd9f694
Bug 236613: change to MPL/LGPL/GPL tri-license. This was authorised by an email from David Ascher <DavidA@ActiveState.com>.
...
git-svn-id: svn://10.0.0.236/trunk@167152 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-01 15:34:06 +00:00
gerv%gerv.net
9f207af4db
Bug 236613: change to MPL/LGPL/GPL tri-license.
...
git-svn-id: svn://10.0.0.236/trunk@166101 18797224-902f-48f8-a5cc-f745e15eee43
2004-12-01 22:27:03 +00:00
gerv%gerv.net
872f5cb1ce
Bug 236613: change to MPL/LGPL/GPL tri-license.
...
git-svn-id: svn://10.0.0.236/trunk@161286 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-25 23:02:50 +00:00
mhammond%skippinet.com.au
1d72a2810d
test_misc moves to being a unittest based test. Not part of the build.
...
git-svn-id: svn://10.0.0.236/trunk@159576 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-21 11:46:18 +00:00
mhammond%skippinet.com.au
615fa683e1
Add NS_ERROR_GENERATE_SUCCESS - not part of the build.
...
git-svn-id: svn://10.0.0.236/trunk@159575 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-21 11:45:42 +00:00
mhammond%skippinet.com.au
ad9716e8f6
Update build instructions - nmake builds are long dead.
...
git-svn-id: svn://10.0.0.236/trunk@159574 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-21 11:44:56 +00:00
mhammond%skippinet.com.au
86d164fbca
Fix build breakage for Python 2.2 and earlier - not part of the build.
...
git-svn-id: svn://10.0.0.236/trunk@159573 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-21 11:43:33 +00:00
mhammond%skippinet.com.au
bbc9765867
Update initialize of nsString, which changed sometime in the last 2 years!
...
Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@159572 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-21 11:42:46 +00:00
mhammond%skippinet.com.au
f3f3fc5d92
Initialize out params before calling the interface.
...
Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@159571 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-21 11:41:50 +00:00
gerv%gerv.net
9efd617dd4
Bug 236613: change to MPL/LGPL/GPL tri-license.
...
git-svn-id: svn://10.0.0.236/trunk@159360 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-16 19:30:11 +00:00
gerv%gerv.net
d6544e324a
Bug 236613: change to MPL/LGPL/GPL tri-license.
...
git-svn-id: svn://10.0.0.236/trunk@155092 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-18 22:14:17 +00:00
mhammond%skippinet.com.au
8c9e42bffb
Don't keep the Python thread-lock - this prevents secondary threads from
...
starting. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@150791 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-30 23:15:33 +00:00
bryner%brianryner.com
101a9e4e72
Fix build on gcc 3.4 by removing extra semicolons (bug 218551). r/sr=dbaron, a=brendan.
...
git-svn-id: svn://10.0.0.236/trunk@146615 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-07 22:05:34 +00:00
mhammond%skippinet.com.au
20db0111df
Fix errors with (and add tests for) unsigned long constants on solaris.
...
Not part of the build (and neither was the last checkin - sorry)
git-svn-id: svn://10.0.0.236/trunk@145716 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-08 00:51:40 +00:00
mhammond%skippinet.com.au
fd03b99bb2
Add some extra utf8 string tests.
...
git-svn-id: svn://10.0.0.236/trunk@145715 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-08 00:50:34 +00:00
mhammond%skippinet.com.au
5c9b4ceab8
Fix a bug when registering just a single component. Not part of the build.
...
git-svn-id: svn://10.0.0.236/trunk@145638 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-06 01:04:15 +00:00
mhammond%skippinet.com.au
ac489b8807
One final wchar_t -> PRUnichar. Not part of the build.
...
git-svn-id: svn://10.0.0.236/trunk@145403 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-30 23:24:05 +00:00
mhammond%skippinet.com.au
d85c11ee4d
Tweak so it still builds with Python 2.2. Not part of the build.
...
git-svn-id: svn://10.0.0.236/trunk@145401 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-30 23:10:31 +00:00
mhammond%skippinet.com.au
03173c38eb
Remove a couple of unused variables. Not part of the build.
...
git-svn-id: svn://10.0.0.236/trunk@145366 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-30 01:18:12 +00:00
mhammond%skippinet.com.au
5b9691f9e2
Remove unused variable.
...
git-svn-id: svn://10.0.0.236/trunk@145365 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-30 01:13:50 +00:00
mhammond%skippinet.com.au
9a14fdb870
Not part of the build.
...
Explicitly use Python UCS2 functions, for platforms where
sizeof(wchar) != sizeof(PRUnichar).
Incorporate Linux build changes for dynamic linking.
git-svn-id: svn://10.0.0.236/trunk@145364 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-30 01:08:13 +00:00
mhammond%skippinet.com.au
33152e29f9
We were breaking Python's rules for comparison result returns - and
...
this only started mattering in Python 2.3.
Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@145091 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-23 00:23:45 +00:00
mhammond%skippinet.com.au
446028483d
When new components are registered, re-scan the Python directory for
...
new .pth files (which may have just been installed).
Add _xpcom.GetSpecialDirectory() to make this work.
Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@145049 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-22 07:30:55 +00:00
mhammond%skippinet.com.au
f0a5bd7907
Convert constants from hex to dec, to prevent warnings in Python 2.3
...
Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@144917 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-17 11:02:34 +00:00