summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Add test environments for the PURE_PYTHON environment variable.Tres Seaver2013-03-111-1/+5
| | | | Get the one test which failed under that environment to pass.
* - Make sure that __str__ and __repr__ never fail by catching all exceptionsStephan Richter2013-03-115-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 lookStephan Richter2013-03-114-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 toStephan Richter2013-03-112-15/+30
| | | | _wrapped and _checker.
* Start of PyPy support.Stephan Richter2013-03-115-17/+34
|
* Implemented rich comparison operators as non-checked, which is what the CStephan Richter2013-03-101-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 proxyStephan Richter2013-03-101-1/+1
| | | | version.
* Fixed all attr access: __getattr__, __setattr__, __delattr__.Stephan Richter2013-03-101-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. InStephan Richter2013-03-102-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 expectedStephan Richter2013-03-101-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 thatStephan Richter2013-03-101-1/+1
| | | | expectation.
* Avoid overwriting of checked name when tests compare. Strangely, only theStephan Richter2013-03-081-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 Richter2013-03-082-4/+4
|
* Restore 100% coverage.Tres Seaver2013-03-082-3/+34
| | | | Some tests are still failing. :(
* Merge branch 'master' into pure_python_proxyTres Seaver2013-03-087-23/+57
|\
| * Fix ImportError: cannot import name _checkersMarius Gedminas2013-03-081-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 3Adam Groszer2013-03-072-12/+12
| |
| * - Remove ``untrustedpython`` extra again, since we do not want to supportStephan Richter2013-02-284-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 examplesAndrey Lebedev2013-02-201-1/+1
| |
| * Merge branch 'moretests'Andrey Lebedev2013-02-192-3/+24
| |\
| | * Use python3.3 to run documentation testsmoretestsAndrey Lebedev2013-02-191-2/+2
| | |
| | * Dictionary views are not proxiedAndrey Lebedev2013-02-191-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-3Andrey Lebedev2013-02-191-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 WindowsMarius Gedminas2013-02-191-2/+14
| |/
| * Fix test breakage under 4.0.0a2 due to deprecation strategy.Tres Seaver2013-02-154-16/+28
| |
| * Restore deprecated BBB imports of z.s.untrustedpython modules.Tres Seaver2013-02-154-0/+71
| |
| * Fix nondeterministic test failuresMarius Gedminas2013-02-151-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 Seaver2013-02-142-9/+205
|/
* Coverage for C implementation of z.s.proxy.Proxy.Tres Seaver2013-02-142-1/+1283
|
* Suppress Py3k nannyisms.Tres Seaver2013-02-135-107/+107
|
* Get all tests passing (or suppressed) on Py3k.Tres Seaver2013-02-139-55/+123
|
* Fix module initialization.Tres Seaver2013-02-131-2/+33
|
* Get '_zope_security_checker.c' compiling under Py3k.Tres Seaver2013-02-132-133/+188
|
* Get '_proxy.c' compiling under Py3k.Tres Seaver2013-02-131-124/+216
|
* Py3k: remove Py3 syntax errors.Tres Seaver2013-02-1312-65/+131
|
* 100% coverage for z.s.zcml.Tres Seaver2013-02-121-0/+199
|
* Normalize imports.Tres Seaver2013-02-121-5/+8
|
* 100% coverage for z.s.simplepolicies.Tres Seaver2013-02-121-0/+127
|
* 100% coverage for z.s.simplepolicies.Tres Seaver2013-02-121-1/+5
|
* TIghten 'getTestProxyITems' implementation.Tres Seaver2013-02-121-7/+2
|
* 100% coverage for z.s.proxy.Tres Seaver2013-02-121-2/+56
|
* Coverage for z.s.protectclass.Tres Seaver2013-02-121-135/+109
|
* Import normalization.Tres Seaver2013-02-121-4/+6
|
* Coverage for z.s.permission.PermissionIdsVocabulary.Tres Seaver2013-02-121-0/+46
|
* Coverage for z.s.permission.PermissionsVocabulary.Tres Seaver2013-02-121-0/+43
|
* Coverage for z.s.permission.allPermissions.Tres Seaver2013-02-121-0/+37
|
* Coverage for z.s.permission.checkPermission.Tres Seaver2013-02-121-0/+30
|
* Coverage for z.s.permission.Permission.Tres Seaver2013-02-121-0/+40
|
* Import normalization.Tres Seaver2013-02-121-3/+7
|
* Full unit test coverage for z.s.metaconfigure.ClassDirective.Tres Seaver2013-02-121-0/+382
|