Zope Subversion Repository

  Zope

Zope: zope.security/trunk/src/zope/security/proxy.py


No default branch

Revision 122916 - (view) (download) (as text) - [select for diffs]
Modified Sat Sep 24 05:37:10 2011 UTC (19 months, 4 weeks ago) by icemac
File length: 2249 byte(s)
Diff to previous 122915
whitespace

Revision 122915 - (view) (download) (as text) - [select for diffs]
Modified Sat Sep 24 05:36:03 2011 UTC (19 months, 4 weeks ago) by icemac
File length: 2251 byte(s)
Diff to previous 121514
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.

Revision 121514 - (view) (download) (as text) - [select for diffs]
Modified Tue May 3 06:25:13 2011 UTC (2 years ago) by icemac
File length: 2043 byte(s)
Diff to previous 113056
Fixed circular import beween ``zope.security.decorator`` and ``zope.security.proxy`` by moving the code leading to the ``ImportError`` from proxy to decorator

Revision 113056 - (view) (download) (as text) - [select for diffs]
Modified Thu Jun 3 17:34:32 2010 UTC (2 years, 11 months ago) by tseaver
File length: 2540 byte(s)
Diff to previous 112046
Remove CVS-era Id fossils.

Revision 112046 - (view) (download) (as text) - [select for diffs]
Modified Wed May 5 19:21:19 2010 UTC (3 years ago) by tseaver
File length: 2546 byte(s)
Diff to previous 97709
Conform to repository policy.

Revision 97709 - (view) (download) (as text) - [select for diffs]
Modified Mon Mar 9 16:19:10 2009 UTC (4 years, 2 months ago) by nadako
File length: 2547 byte(s)
Diff to previous 97708
import of zope.location is also only needed for monkey-patch, so move it down to the patch itself.

Revision 97708 - (view) (download) (as text) - [select for diffs]
Modified Mon Mar 9 16:10:49 2009 UTC (4 years, 2 months ago) by nadako
File length: 2547 byte(s)
Diff to previous 95540
Change use of zope.deferredimport to from imports.

Revision 95540 - (view) (download) (as text) - [select for diffs]
Modified Fri Jan 30 09:40:45 2009 UTC (4 years, 3 months ago) by ctheune
File length: 2547 byte(s)
Diff to previous 75174
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.

Revision 75174 - (view) (download) (as text) - [select for diffs]
Modified Thu May 3 22:29:32 2007 UTC (6 years ago) by ctheune
File length: 2050 byte(s)
Diff to previous 73624
Moving code to satellite.

Filename: Zope3/trunk/src/zope/security/proxy.py
Revision 73624 - (view) (download) (as text) - [select for diffs]
Modified Mon Mar 26 12:50:23 2007 UTC (6 years, 1 month ago) by dobe
File length: 2050 byte(s)
Diff to previous 70897
clean imports

Filename: Zope3/trunk/src/zope/security/proxy.py
Revision 70897 - (view) (download) (as text) - [select for diffs]
Modified Tue Oct 24 08:21:55 2006 UTC (6 years, 7 months ago) by flox
File length: 2077 byte(s)
Diff to previous 39055
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.

Filename: Zope3/trunk/src/zope/security/proxy.py
Revision 39055 - (view) (download) (as text) - [select for diffs]
Modified Tue Oct 11 17:20:57 2005 UTC (7 years, 7 months ago) by philikon
File length: 2052 byte(s)
Diff to previous 27322
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.

Filename: Zope3/trunk/src/zope/security/proxy.py
Revision 27322 - (view) (download) (as text) - [select for diffs]
Modified Sat Aug 28 00:59:04 2004 UTC (8 years, 8 months ago) by jim
File length: 2652 byte(s)
Diff to previous 27237
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


Filename: Zope3/trunk/src/zope/security/proxy.py
Revision 27237 - (view) (download) (as text) - [select for diffs]
Modified Mon Aug 23 23:42:11 2004 UTC (8 years, 9 months ago) by jim
File length: 1861 byte(s)
Diff to previous 27129
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.)



Filename: Zope3/trunk/src/zope/security/proxy.py
Revision 27129 - (view) (download) (as text) - [select for diffs]
Modified Fri Aug 13 20:17:50 2004 UTC (8 years, 9 months ago) by jim
File length: 1871 byte(s)
Diff to previous 26665
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.

Filename: Zope3/trunk/src/zope/security/proxy.py
Revision 26665 - (view) (download) (as text) - [select for diffs]
Modified Wed Jul 21 22:49:38 2004 UTC (8 years, 10 months ago) by jim
File length: 1839 byte(s)
Diff to previous 26454
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.

Filename: Zope3/trunk/src/zope/security/proxy.py
Revision 26454 - (view) (download) (as text) - [select for diffs]
Modified Tue Jul 13 16:28:46 2004 UTC (8 years, 10 months ago) by srichter
File length: 1837 byte(s)
Diff to previous 25920
Converted XXX to TODO.

Filename: Zope3/trunk/src/zope/security/proxy.py
Revision 25920 - (view) (download) (as text) - [select for diffs]
Modified Mon Jun 21 14:04:16 2004 UTC (8 years, 11 months ago) by jim
File length: 1835 byte(s)
Diff to previous 25177
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. 

Filename: Zope3/trunk/src/zope/security/proxy.py
Revision 25177 - (view) (download) (as text) - [select for diffs]
Modified Wed Jun 2 13:17:31 2004 UTC (8 years, 11 months ago) by jim
File length: 1940 byte(s)
Diff to previous 24749
Updated to use ZPL 2.1.

Filename: Zope3/trunk/src/zope/security/proxy.py
Revision 24749 - (view) (download) (as text) - [select for diffs]
Modified Sun May 16 13:00:21 2004 UTC (9 years ago) by philikon
File length: 1940 byte(s)
Diff to previous 13888
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".

Filename: Zope3/trunk/src/zope/security/proxy.py
Revision 13888 - (view) (download) (as text) - [select for diffs]
Modified Tue May 11 18:24:59 2004 UTC (9 years ago) by root
File length: 1990 byte(s)
Diff to previous 12673
Set mime-type or svn-eol property from cvs expansion data

Filename: Zope3/trunk/src/zope/security/proxy.py
Revision 12673 - (view) (download) (as text) - [select for diffs]
Modified Fri Feb 20 20:44:23 2004 UTC (9 years, 3 months ago) by srichter
File length: 1990 byte(s)
Diff to previous 10211
Improved doc strings.

Filename: Zope3/trunk/src/zope/security/proxy.py
Revision 10211 - (view) (download) (as text) - [select for diffs]
Modified Wed May 28 17:19:24 2003 UTC (9 years, 11 months ago) by jim
File length: 1956 byte(s)
Diff to previous 10207
renamed zope.proxy.getObject to zope.proxy.getProxiedObject

Filename: Zope3/trunk/src/zope/security/proxy.py
Revision 10207 - (view) (download) (as text) - [select for diffs]
Modified Wed May 28 15:49:27 2003 UTC (9 years, 11 months ago) by jim
File length: 1942 byte(s)
Diff to previous 10183
Now getObject comes from zope.proxy

Filename: Zope3/trunk/src/zope/security/proxy.py
Revision 10183 - (view) (download) (as text) - [select for diffs]
Modified Wed May 28 12:55:29 2003 UTC (9 years, 11 months ago) by stevea
File length: 1923 byte(s)
Diff to previous 10107
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.

Filename: Zope3/trunk/src/zope/security/proxy.py
Revision 10107 - (view) (download) (as text) - [select for diffs]
Modified Tue May 20 20:28:50 2003 UTC (10 years ago) by jim
File length: 1938 byte(s)
Diff to previous 8539
Added a doc string documenting the mysterious
trustedRemoveSecurityProxy.

Filename: Zope3/trunk/src/zope/security/proxy.py
Revision 8539 - (view) (download) (as text) - [select for diffs]
Modified Thu Dec 26 18:42:47 2002 UTC (10 years, 4 months ago) by stevea
File length: 1583 byte(s)
Diff to previous 8538
reinstated the import of ProxyFactory. It is part of the api of the
module.

Filename: Zope3/trunk/src/zope/security/proxy.py
Revision 8538 - (view) (download) (as text) - [select for diffs]
Modified Thu Dec 26 18:11:48 2002 UTC (10 years, 4 months ago) by stevea
File length: 1478 byte(s)
Diff to previous 8532
Removed extraneous import.
Corrected docstring typo.

Filename: Zope3/trunk/src/zope/security/proxy.py
Revision 8532 - (view) (download) (as text) - [select for diffs]
Added Wed Dec 25 14:15:36 2002 UTC (10 years, 5 months ago) by jim
File length: 1489 byte(s)
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.

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

  Diffs between and
  Type of Diff should be a

Sort log by:

webmaster@zope.org

Powered by ViewCVS 1.0-dev
(Powered by Apache)

ViewCVS and CVS Help