Zope Subversion Repository |
|
whitespace
Fixed a regression introduced in 3.8.1: ``zope.location`` 's LocationProxy did not get a security checker if ``zope.security.decorator`` was not imported manually. Now ``zope.security.decorator`` is imported in ``zope.security.proxy`` without re-introducing the circular import fixed in 3.8.1.
Fixed circular import beween ``zope.security.decorator`` and ``zope.security.proxy`` by moving the code leading to the ``ImportError`` from proxy to decorator
Remove CVS-era Id fossils.
Conform to repository policy.
import of zope.location is also only needed for monkey-patch, so move it down to the patch itself.
Change use of zope.deferredimport to from imports.
Shuffle code around again, to not make the test a self-fulfulling prophecy: trigger the monkey patch (darn, I said it) when someone starts using security proxies.
Moving code to satellite.
clean imports
Declared docstring format being 'restructuredtext'. If we omit to declare, code samples are not rendered properly through APIDOC. Added empty line before code block, if missing. Removed wrong indentations.
Remove BBB stuff that claimed it was going to be removed in Zope 3.1. Apparently it wasn't, so let's at least remove it for Zope 3.2.
Merged from ZopeX3-3.0 branch: r27321 | jim | 2004-08-27 20:43:53 -0400 (Fri, 27 Aug 2004) | 2 lines Changed to import removeSecurityProxy from zope.security.proxy ------------------------------------------------------------------------ r27320 | jim | 2004-08-27 20:43:51 -0400 (Fri, 27 Aug 2004) | 4 lines Changed so that removeAllProxies is no-longer needed. Updated README.txt to test handling of faults. ------------------------------------------------------------------------ r27319 | jim | 2004-08-27 20:43:49 -0400 (Fri, 27 Aug 2004) | 3 lines Removed unneeded removeAllProxies call. I'm pretty sure it was unneeded. No tests failed. ;) ------------------------------------------------------------------------ r27318 | jim | 2004-08-27 20:43:48 -0400 (Fri, 27 Aug 2004) | 2 lines Moved the proxy-aware isinstance to zope.security.proxy
Merged from ZopeX3-3.0 branch: r27201 | jim | 2004-08-20 18:14:11 -0400 (Fri, 20 Aug 2004) | 2 lines Removed unneeded removeAllProxies calls. ------------------------------------------------------------------------ r27200 | jim | 2004-08-20 17:47:26 -0400 (Fri, 20 Aug 2004) | 2 lines Removed unneeded removeAllProxies calls. ------------------------------------------------------------------------ r27199 | jim | 2004-08-20 17:42:45 -0400 (Fri, 20 Aug 2004) | 2 lines Converted removeAllProxies calls to the prefered removeSecurityProxy. ------------------------------------------------------------------------ r27198 | jim | 2004-08-20 17:07:23 -0400 (Fri, 20 Aug 2004) | 2 lines Converted a package with one module to a regulat module. ------------------------------------------------------------------------ r27197 | jim | 2004-08-20 17:05:39 -0400 (Fri, 20 Aug 2004) | 2 lines Made the dependency subscriber trusted ------------------------------------------------------------------------ r27196 | jim | 2004-08-20 17:05:37 -0400 (Fri, 20 Aug 2004) | 8 lines Converted removeAllProxies calls to the prefered removeSecurityProxy. D src/zope/app/security/interfaces D src/zope/app/security/interfaces/__init__.py A + src/zope/app/security/interfaces.py Converted a package with one module to a regulat module. ------------------------------------------------------------------------ r27195 | jim | 2004-08-20 16:29:43 -0400 (Fri, 20 Aug 2004) | 4 lines Added a zapi.isinstance method that works with security proxies. ------------------------------------------------------------------------ r27194 | jim | 2004-08-20 15:26:59 -0400 (Fri, 20 Aug 2004) | 3 lines Added some defensive programming to work around a lame implicit Python string-formatting behavior. ------------------------------------------------------------------------ r27193 | jim | 2004-08-20 15:26:57 -0400 (Fri, 20 Aug 2004) | 2 lines Removed unneeded removeAllProxies call ------------------------------------------------------------------------ r27192 | jim | 2004-08-20 15:26:55 -0400 (Fri, 20 Aug 2004) | 3 lines Fixed a problem with the security dclarations to make calling removeAllProxies unnecessary. ------------------------------------------------------------------------ r27191 | jim | 2004-08-20 14:20:12 -0400 (Fri, 20 Aug 2004) | 2 lines Removed unneeded removeAllProxies calls. ------------------------------------------------------------------------ r27190 | jim | 2004-08-20 14:20:07 -0400 (Fri, 20 Aug 2004) | 2 lines Converted removeAllProxies calls to the prefered removeSecurityProxy. ------------------------------------------------------------------------ r27189 | jim | 2004-08-20 13:02:06 -0400 (Fri, 20 Aug 2004) | 6 lines Added "trusted" option for defining trusted subscribers. Deprecated zope.security.trustedRemoveSecurityProxy and zope.security.getProxiedObject. Use zope.security.removeSecurityProxy instead. (This should also be used rather than removeAllProxies.) ------------------------------------------------------------------------ r27188 | jim | 2004-08-20 13:02:03 -0400 (Fri, 20 Aug 2004) | 4 lines Deprecated zope.security.trustedRemoveSecurityProxy and zope.security.getProxiedObject. Use zope.security.removeSecurityProxy instead. (This should also be used rather than removeAllProxies.) Also converted additional removeAllProxies calls to the prefered removeSecurityProxy. (These were on the trunk, but not the branch.)
Merged from ZopeX3-3.0 branch: r27105 | jim | 2004-08-13 11:29:24 -0400 (Fri, 13 Aug 2004) | 3 lines Added a new method, removeSecurityProxy, which should, eventually replace both removeAllProxies and trustedRemoveSecurityProxy.
Added (back) a getObject _proxy module method to unproxy an object only if it is in a security proxy. Changed zope.security.proxy.getProxiedObject to use the new getObject method.
Converted XXX to TODO.
Changed basic checkers to use dictionaries. Now when you create checkers, you must pass one or two dictionary objects. We used to allow functions to be passed that would be called to get the permission needed to access a name. It turns out that this generality wasn't needed or used. If we need this in the furture, we can add custom checkers. For now, we only allow dictionaries, as that will enable more efficient checker implementation.
Updated to use ZPL 2.1.
Tell subversion to expand the Id keyword: - replaced old CVS expansion with a clean $Id$ - set the svn:keywords property to "Id" When you check-in files in the future and want $Id$ to be expanded, make sure it reads "$Id$" in that file; then set svn:keywords to "Id".
Set mime-type or svn-eol property from cvs expansion data
Improved doc strings.
renamed zope.proxy.getObject to zope.proxy.getProxiedObject
Now getObject comes from zope.proxy
Merged some of the work done by SteveA and MariusG on the stevea-decorators-branch. * Refactored acting on WATCH_CHECKERS into a reusable and unobtrusive mixin class. Execution speed will be faster when WATCH_CHECKERS is false. * Improved and clearer implementation of ProxyFactory. * Added comprehensive test of ProxyFactory. * Made an explicit TrustedCheckerBase marker type to show the connection between the checker module and the proxy module. * Added a note about the poor naming of _always_available. The name _available_by_default would better reflect actual use. That is, it is possible to make an _always_available name unavailable. * Added a BasicTypes_examples dict that can be imported into unit tests that want to check whether basic types are handled properly. * Added comprehensive test of ProxyFactory.
Added a doc string documenting the mysterious trustedRemoveSecurityProxy.
reinstated the import of ProxyFactory. It is part of the api of the module.
Removed extraneous import. Corrected docstring typo.
Grand renaming: - Renamed most files (especially python modules) to lower case. - Moved views and interfaces into separate hierarchies within each project, where each top-level directory under the zope package is a separate project. - Moved everything to src from lib/python. lib/python will eventually go away. I need access to the cvs repository to make this happen, however. There are probably some bits that are broken. All tests pass and zope runs, but I haven't tried everything. There are a number of cleanups I'll work on tomorrow.
|
webmaster@zope.org Powered by ViewCVS 1.0-dev |
ViewCVS and CVS Help |