| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Add test environments for the PURE_PYTHON environment variable. | Tres Seaver | 2013-03-11 | 1 | -1/+5 |
| | | | | | Get the one test which failed under that environment to pass. | ||||
| * | - Make sure that __str__ and __repr__ never fail by catching all exceptions | Stephan Richter | 2013-03-11 | 5 | -15/+22 |
| | | | | | | | | | | | | | | | | and using the custom fallback. (This is equivalent to the C Proxy behavior.) - Allow __getslice__ and __setslice__ to access the original object's implementation instead of always falling back to __getitem__ and __setitem__. Do we really want to support this or just remove the test? (It is deprecated this Python 2.0!) - Make sure that Checker.set_permissions is set initiated as an empty dict, if not provided. While not immediately obvious, this is the C-based checker behavior as well. Oh yeah, all tests pass now on py26, py27, py32, py33, and pypy! | ||||
| * | Changed strategy to hide wrapped to not use the secret anymore, but look | Stephan Richter | 2013-03-11 | 4 | -59/+80 |
| | | | | | | | | | | | at the frames. This fixes a bunch of issues when actually doing binary ops (for which I added a test now). __len__ must return a non-proxied object, so I added a new parameter to the name check wrapper to handle that case. Fixed all but 12 test failures on PyPy. | ||||
| * | Actually made the security proxy secure by not allowing access to | Stephan Richter | 2013-03-11 | 2 | -15/+30 |
| | | | | | _wrapped and _checker. | ||||
| * | Start of PyPy support. | Stephan Richter | 2013-03-11 | 5 | -17/+34 |
| | | |||||
| * | Implemented rich comparison operators as non-checked, which is what the C | Stephan Richter | 2013-03-10 | 1 | -16/+65 |
| | | | | | | | | | | implementation does. Implemented __coerce__() in a special way, since _check_name did not work for some reason. All tests pass on Python 2.7. | ||||
| * | Change the test expectation that was failing for the C and Py proxy | Stephan Richter | 2013-03-10 | 1 | -1/+1 |
| | | | | | version. | ||||
| * | Fixed all attr access: __getattr__, __setattr__, __delattr__. | Stephan Richter | 2013-03-10 | 1 | -2/+11 |
| | | | | | | The main work consisted of making sure that access is allowed and that results are also proxied. | ||||
| * | Implemented proper handling when __str__ and __repr__ are not allowed. In | Stephan Richter | 2013-03-10 | 2 | -4/+32 |
| | | | | | | those cases we do not want to fail with a cryptic error, but provide an informative output. | ||||
| * | Fixed power tests by disabling the ones for PyProxy that expected | Stephan Richter | 2013-03-10 | 1 | -12/+25 |
| | | | | | | | | | | | | | behavior that cannot be created with a pure Python proxy implementation. Undid one previous checking where the DummyChecker only records the first checked name. In several forbidden tests, add a few allowed names, since those are needed to make the tests pass. In the Python version of the proxy, some __<name>__ methods are used where the C implementation gets away without them. | ||||
| * | Make sure we use the API to create a new proxy. The tests depend on that | Stephan Richter | 2013-03-10 | 1 | -1/+1 |
| | | | | | expectation. | ||||
| * | Avoid overwriting of checked name when tests compare. Strangely, only the | Stephan Richter | 2013-03-08 | 1 | -1/+5 |
| | | | | | | Python proxy implementation is affected. I am not sure why __eq__ is not looked up during test output comparison with C-based proxies. | ||||
| * | I think I fixed some tests. Tres, can you review? | Stephan Richter | 2013-03-08 | 2 | -4/+4 |
| | | |||||
| * | Restore 100% coverage. | Tres Seaver | 2013-03-08 | 2 | -3/+34 |
| | | | | | Some tests are still failing. :( | ||||
| * | Merge branch 'master' into pure_python_proxy | Tres Seaver | 2013-03-08 | 7 | -23/+57 |
| |\ | |||||
| | * | Fix ImportError: cannot import name _checkers | Marius Gedminas | 2013-03-08 | 1 | -5/+6 |
| | | | | | | | | | | | The problem was a local variable `m` was being clobbered by importing 3rd party modules between the new location of MOD_DEF() and actual use. | ||||
| | * | Fix build error with MSVC++ on Python 3 | Adam Groszer | 2013-03-07 | 2 | -12/+12 |
| | | | |||||
| | * | - Remove ``untrustedpython`` extra again, since we do not want to support | Stephan Richter | 2013-02-28 | 4 | -83/+0 |
| | | | | | | | | | | | ``zope.untrustedpython`` in ZTK 2.0. If BBB is really needed, we will create a 3.10.0 release. | ||||
| | * | Python-3.3 compatibility for examples | Andrey Lebedev | 2013-02-20 | 1 | -1/+1 |
| | | | |||||
| | * | Merge branch 'moretests' | Andrey Lebedev | 2013-02-19 | 2 | -3/+24 |
| | |\ | |||||
| | | * | Use python3.3 to run documentation testsmoretests | Andrey Lebedev | 2013-02-19 | 1 | -2/+2 |
| | | | | |||||
| | | * | Dictionary views are not proxied | Andrey Lebedev | 2013-02-19 | 1 | -1/+5 |
| | | | | | | | | | | | | | | | | Dict views for keys(), items(), and values() are not proxied, making dicts work in python3 exactly as python2. | ||||
| | | * | More tests are running under python-3 | Andrey Lebedev | 2013-02-19 | 1 | -1/+18 |
| | | | | | | | | | | | | | | | | | | | Include documentation doctests into main test suite. Documentation is updated to be valid under python-3 and some critical bugs in python-3 are revealed. | ||||
| | * | | Try to make the tests pass on Windows | Marius Gedminas | 2013-02-19 | 1 | -2/+14 |
| | |/ | |||||
| | * | Fix test breakage under 4.0.0a2 due to deprecation strategy. | Tres Seaver | 2013-02-15 | 4 | -16/+28 |
| | | | |||||
| | * | Restore deprecated BBB imports of z.s.untrustedpython modules. | Tres Seaver | 2013-02-15 | 4 | -0/+71 |
| | | | |||||
| | * | Fix nondeterministic test failures | Marius Gedminas | 2013-02-15 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | This fixes three test failures I've seen on Python 3.3: test_allow_w_single_interface test_require_w_set_schema_normal_fields test_require_w_single_interface All caused by dictionary iteration returning items in a different order than the test expected. | ||||
| * | | Checkpoint to ask for help. | Tres Seaver | 2013-02-14 | 2 | -9/+205 |
| |/ | |||||
| * | Coverage for C implementation of z.s.proxy.Proxy. | Tres Seaver | 2013-02-14 | 2 | -1/+1283 |
| | | |||||
| * | Suppress Py3k nannyisms. | Tres Seaver | 2013-02-13 | 5 | -107/+107 |
| | | |||||
| * | Get all tests passing (or suppressed) on Py3k. | Tres Seaver | 2013-02-13 | 9 | -55/+123 |
| | | |||||
| * | Fix module initialization. | Tres Seaver | 2013-02-13 | 1 | -2/+33 |
| | | |||||
| * | Get '_zope_security_checker.c' compiling under Py3k. | Tres Seaver | 2013-02-13 | 2 | -133/+188 |
| | | |||||
| * | Get '_proxy.c' compiling under Py3k. | Tres Seaver | 2013-02-13 | 1 | -124/+216 |
| | | |||||
| * | Py3k: remove Py3 syntax errors. | Tres Seaver | 2013-02-13 | 12 | -65/+131 |
| | | |||||
| * | 100% coverage for z.s.zcml. | Tres Seaver | 2013-02-12 | 1 | -0/+199 |
| | | |||||
| * | Normalize imports. | Tres Seaver | 2013-02-12 | 1 | -5/+8 |
| | | |||||
| * | 100% coverage for z.s.simplepolicies. | Tres Seaver | 2013-02-12 | 1 | -0/+127 |
| | | |||||
| * | 100% coverage for z.s.simplepolicies. | Tres Seaver | 2013-02-12 | 1 | -1/+5 |
| | | |||||
| * | TIghten 'getTestProxyITems' implementation. | Tres Seaver | 2013-02-12 | 1 | -7/+2 |
| | | |||||
| * | 100% coverage for z.s.proxy. | Tres Seaver | 2013-02-12 | 1 | -2/+56 |
| | | |||||
| * | Coverage for z.s.protectclass. | Tres Seaver | 2013-02-12 | 1 | -135/+109 |
| | | |||||
| * | Import normalization. | Tres Seaver | 2013-02-12 | 1 | -4/+6 |
| | | |||||
| * | Coverage for z.s.permission.PermissionIdsVocabulary. | Tres Seaver | 2013-02-12 | 1 | -0/+46 |
| | | |||||
| * | Coverage for z.s.permission.PermissionsVocabulary. | Tres Seaver | 2013-02-12 | 1 | -0/+43 |
| | | |||||
| * | Coverage for z.s.permission.allPermissions. | Tres Seaver | 2013-02-12 | 1 | -0/+37 |
| | | |||||
| * | Coverage for z.s.permission.checkPermission. | Tres Seaver | 2013-02-12 | 1 | -0/+30 |
| | | |||||
| * | Coverage for z.s.permission.Permission. | Tres Seaver | 2013-02-12 | 1 | -0/+40 |
| | | |||||
| * | Import normalization. | Tres Seaver | 2013-02-12 | 1 | -3/+7 |
| | | |||||
| * | Full unit test coverage for z.s.metaconfigure.ClassDirective. | Tres Seaver | 2013-02-12 | 1 | -0/+382 |
| | | |||||
