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
This commit is contained in:
mhammond%skippinet.com.au
2005-09-09 02:37:32 +00:00
parent 617c48e981
commit b6fabc11cc
4 changed files with 92 additions and 9 deletions

View File

@@ -91,11 +91,6 @@ nsPythonRuntime::RegisterSelf(nsIComponentManager* aCompMgr,
if (NS_FAILED(rv))
return rv;
// And also register a short name.
rv = catman->AddCategoryEntry(SCRIPT_LANGUAGE_CATEGORY,
"python",
NS_SCRIPT_LANGUAGE_PYTHON_CONTRACTID,
PR_TRUE, PR_TRUE, getter_Copies(previous));
return rv;
}
@@ -116,11 +111,25 @@ nsPythonRuntime::UnregisterSelf(nsIComponentManager* aCompMgr,
catman->DeleteCategoryEntry(SCRIPT_LANGUAGE_CATEGORY,
"application/x-python", PR_TRUE);
catman->DeleteCategoryEntry(SCRIPT_LANGUAGE_CATEGORY,
"python", PR_TRUE);
return rv;
}
nsresult
nsPythonRuntime::LockGCThing(void *object)
{
return NS_OK;
}
nsresult
nsPythonRuntime::UnlockGCThing(void *object)
{
return NS_OK;
}
////////////////////////////////////////////////////////////////////////
//
// An "implicit" Python module.
//
PyObject *PyJSExec(PyObject *self, PyObject *args)
{
PyObject *obGlobal;