Commit Graph

171 Commits

Author SHA1 Message Date
mhammond%skippinet.com.au
cd03200213 Go further in the concept of a "wrapped native". DOM objects get their
own nsISupports wrapper, which has support in context.py for expandos,
and all object returned by these objects are also this custom object.


git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@181687 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-05 22:21:35 +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
ea52fe66cc Compiler package is different in Python 2.4.
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@181555 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-04 04:18:35 +00:00
mhammond%skippinet.com.au
abf7b92d6e CompileEventHandler new args, and delegate most stuff to Python.
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@181534 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-04 02:10:34 +00:00
mhammond%skippinet.com.au
ee774d5992 Add nsdom package
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@181533 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-04 02:07:27 +00:00
mhammond%skippinet.com.au
0bc2eb5a5f Oops - checked in Makefile instead of Makefile.in
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@181530 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-04 01:35:41 +00:00
mhammond%skippinet.com.au
679e0eb9ca nsdom package, which does most of the grunt work.
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@181529 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-04 01:34:21 +00:00
mhammond%skippinet.com.au
8ec88ff7b4 Add error event tests
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@181528 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-04 01:32:10 +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
8e66ae6d1a scripttype->script-type
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@181461 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-03 09:51:50 +00:00
mhammond%skippinet.com.au
3d082bdfe0 Brings things up to date with the rest of the world.
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@181434 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-02 13:29:11 +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
a16fa16c39 Fix type in comments.
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@180643 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-20 12:37:59 +00:00
mhammond%skippinet.com.au
8327630cde Add a test of different attributes with different default languages.
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@180641 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-20 12:00:07 +00:00
mhammond%skippinet.com.au
329bdfca9f Get things working with the new event regime.
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@180486 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-18 09:00:40 +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
a3f788386c Tweak leak checking.
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@179985 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-11 14:18:01 +00:00
mhammond%skippinet.com.au
8db0a2b899 Fail if a version string is specified, so we can define the semantics later
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@179984 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-11 14:03:07 +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
985422a570 Consolidate the compilation functions and tried (but failed) to trick
Python into using the line-number as specified.


git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@179902 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-09 14:35:19 +00:00
mhammond%skippinet.com.au
8a570e68da Support scripttype= at the root node, and add overlay tests.
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@179891 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-09 03:01:43 +00:00
mhammond%skippinet.com.au
b6fabc11cc Bring things up to date with the new world order, including serialization
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@179889 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-09 02:37:32 +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
073c06deeb A bit more work on the test/sample
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@179657 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-05 06:58:34 +00:00
mhammond%skippinet.com.au
f901ce03e0 Add an implicit 'nsdom' module complete with a JSExec method.
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@179656 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-05 06:57:16 +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
3b0e417bab Get pydom stuff building on Linux.
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@179651 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-05 05:30:53 +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
008fd07a69 First cut at python breaking the JS grip on the DOM.
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@179621 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-04 13:23:30 +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