Zope Subversion Repository

  Zope

Zope: zope.security/trunk/src/zope/security/_proxy.c


No default branch

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

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

Revision 102691 - (view) (download) - [select for diffs]
Modified Tue Aug 11 21:32:45 2009 UTC (3 years, 9 months ago) by gary
File length: 26339 byte(s)
Diff to previous 88349 , to selected 13888
fix for potential segfault (LP 181833)

Revision 88349 - (view) (download) - [select for diffs]
Modified Mon Jul 14 14:20:09 2008 UTC (4 years, 10 months ago) by shane
File length: 26389 byte(s)
Diff to previous 75174 , to selected 13888
Made compatible with Python 2.5 on 64 bit architectures.  See PEP 353.

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

Filename: Zope3/trunk/src/zope/security/_proxy.c
Revision 67762 - (view) (download) - [select for diffs]
Modified Sun Apr 30 13:56:45 2006 UTC (7 years ago) by jim
File length: 26329 byte(s)
Diff to previous 37889 , to selected 13888
We had a policy that hash, non-zero and comparison operators should
always be allowed.  I moved this policy into the proxy, providing
about a 1% speedup.  (Doesn't sound like much, but 1% here, 1% there, 
pretty soon you've got 2%. ;)

Filename: Zope3/trunk/src/zope/security/_proxy.c
Revision 37889 - (view) (download) - [select for diffs]
Modified Fri Aug 12 15:25:08 2005 UTC (7 years, 9 months ago) by fdrake
File length: 26915 byte(s)
Diff to previous 26665 , to selected 13888
Merge revisions 37851, 37882 from the Zope-3.1 branch:

Log message for revision 37851:
  reduce zpkg configuration cruft; relies on a moderately recent zpkg checkout
  (earlier this week)

Log message for revision 37882:
  Move to a zpkg-based setup:
  
  - Switch to ZODB 3.5.0a7.
  
  - References to headers now involve the package names.
  
  - The setup.py in the checkout can only be used for "in-place" builds
    (setup.py build_ext -i); you can't do out-of-place builds or
    installations directly from a checkout (use a distribution package
    for that).
  
  - If you add C code to a package, make sure to update/create the
    SETUP.cfg for that package, and make sure that package is listed in
    setup.py at the top.  (I expect we'll remove that last step before
    too long.)

Filename: Zope3/trunk/src/zope/security/_proxy.c
Revision 26665 - (view) (download) - [select for diffs]
Modified Wed Jul 21 22:49:38 2004 UTC (8 years, 10 months ago) by jim
File length: 26904 byte(s)
Diff to previous 26129 , to selected 13888
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.c
Revision 26129 - (view) (download) - [select for diffs]
Modified Tue Jul 6 19:12:08 2004 UTC (8 years, 10 months ago) by jim
File length: 26546 byte(s)
Diff to previous 25968 , to selected 13888
Merged from ZopeX3-3.0 branch 26077 & 26078

Added a sanity check to make sure that None isn't passed as a checker.

Filename: Zope3/trunk/src/zope/security/_proxy.c
Revision 25968 - (view) (download) - [select for diffs]
Modified Thu Jun 24 15:12:01 2004 UTC (8 years, 11 months ago) by jim
File length: 26414 byte(s)
Diff to previous 25949 , to selected 13888
Added comments explaining the slot-performance hacks I added.

Thanks to Tim for pointing out my omission.

Filename: Zope3/trunk/src/zope/security/_proxy.c
Revision 25949 - (view) (download) - [select for diffs]
Modified Tue Jun 22 22:40:23 2004 UTC (8 years, 11 months ago) by jim
File length: 25729 byte(s)
Diff to previous 25884 , to selected 13888
Shameless hack to increase security checking performance

It is much faster to call operators, especially from C, than it is to
call methods.  Now if a checker implements __setitem__, it will be
called rather than check or check_getattr.  Similarly, if a checker 
implements __getitem__, it will be called rather than proxy. Yes, this
is an egregious hack, but it does yield a significant speedup and is
thus worth it. Hopefully, it is well marked.

This change reduces the time required to display a sample contents
page by about 5%.  This percentage will increase as other
optimizations are made and things get faster.

Filename: Zope3/trunk/src/zope/security/_proxy.c
Revision 25884 - (view) (download) - [select for diffs]
Modified Wed Jun 16 18:26:51 2004 UTC (8 years, 11 months ago) by jim
File length: 25163 byte(s)
Diff to previous 25177 , to selected 13888
Changed to use precomuted strings when doing method lookup and when
passing operation names to the checker. This yielded around a 4%
speedup when viewing a test page.

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

Filename: Zope3/trunk/src/zope/security/_proxy.c
Revision 24749 - (view) (download) - [select for diffs]
Modified Sun May 16 13:00:21 2004 UTC (9 years ago) by philikon
File length: 22137 byte(s)
Diff to previous 24610 , to selected 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.c
Revision 24610 - (view) (download) - [select for diffs]
Modified Wed May 12 21:07:55 2004 UTC (9 years ago) by fdrake
File length: 22187 byte(s)
Diff to previous 13888
Make the Zope 3 components buildable from both a simple checkout and a
zpkg-constructed package; the directory layouts for these are very
different.

setup.py
  Instead of using src/ as a common directory added to the
  include_dirs list for many of the extensions, use the specific
  directories that are needed for each.  include_dirs is no longer
  used where not required.

src/zope/app/container/_zope_app_container_contained.c
src/zope/security/_proxy.c
  Don't include src/-relative path information in #include
  directives.

src/zope/proxy/_zope_proxy_proxy.c
  Don't include src/-relative path information in #include
  directives.  Add a comment explaining how to deal with some extreme
  code sharing with src/zope/app/container/.

src/zope/app/container/_zope_proxy_proxy.c
  An "svn copy" of src/zope/proxy/_zope_proxy_proxy.c; an extreme form
  of code sharing.

Filename: Zope3/trunk/src/zope/security/_proxy.c
Revision 13888 - (view) (download) - [selected]
Modified Tue May 11 18:24:59 2004 UTC (9 years ago) by root
File length: 22198 byte(s)
Diff to previous 12690
Set mime-type or svn-eol property from cvs expansion data

Filename: Zope3/trunk/src/zope/security/_proxy.c
Revision 12690 - (view) (download) - [select for diffs]
Modified Tue Feb 24 14:01:33 2004 UTC (9 years, 3 months ago) by srichter
File length: 22198 byte(s)
Diff to previous 10238 , to selected 13888
Addded header to C code and improved doc strings

Filename: Zope3/trunk/src/zope/security/_proxy.c
Revision 10238 - (view) (download) - [select for diffs]
Modified Thu May 29 09:06:36 2003 UTC (9 years, 11 months ago) by stevea
File length: 21492 byte(s)
Diff to previous 10207 , to selected 13888
Wrappers now allow subclasses to supply new methods and other descriptors,
and to override existing slots and methods.

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

Filename: Zope3/trunk/src/zope/security/_proxy.c
Revision 9084 - (view) (download) - [select for diffs]
Modified Fri Feb 7 20:16:35 2003 UTC (10 years, 3 months ago) by gvanrossum
File length: 21840 byte(s)
Diff to previous 8532 , to selected 13888
This C type was still advertising its old name.

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