Changeset [e8e69e9f5644907885c0b4bf4b0d5217e10443cd] by Paul J. Davis

June 14th, 2009 @ 07:36 PM

Filter Python access with a function.

JavaScript requests for data from the Python VM can now be filtered by specifying an access callback function on the Context instance. See the README or test-access.py tests for API usage.

Thanks to Richard Boulton for the initial patch. http://github.com/davisp/python-...

Committed by Paul J. Davis

  • M README.md
  • M THANKS
  • M spidermonkey/context.c
  • M spidermonkey/context.h
  • M spidermonkey/pyobject.c
  • M spidermonkey/runtime.c
  • M tests/test-access.py
  • M tests/test-global.py
New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Python/JavaScript bridge module, making use of Mozilla's spidermonkey JavaScript implementation. Allows implementation of JavaScript classes, objects and functions in Python, and evaluation and calling of JavaScript scripts and functions respectively. Borrows heavily from Claes Jacobssen's Javascript Perl module, in turn based on Mozilla's 'PerlConnect' Perl binding.