Zope Subversion Repository

  Zope

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


No default branch

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: 3362 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: 3368 byte(s)
Diff to previous 95308
Conform to repository policy.

Revision 95308 - (view) (download) (as text) - [select for diffs]
Modified Wed Jan 28 13:03:16 2009 UTC (4 years, 3 months ago) by brandon_rhodes
File length: 3369 byte(s)
Copied from: zope.app.security/trunk/src/zope/app/security/protectclass.py revision 95302
Diff to previous 75382
Moved the "protectclass" module, a slender collection of three
commonly-used utility functions, into "zope.security" so that the Zope
modules that use it can stop depending on the much larger (and ZMI-
supporting) "zope.app.security" if they do not need to.

Filename: zope.app.security/trunk/src/zope/app/security/protectclass.py
Revision 75382 - (view) (download) (as text) - [select for diffs]
Modified Fri May 4 11:52:52 2007 UTC (6 years ago) by ctheune
File length: 3369 byte(s)
Diff to previous 26696
Moving code to satellite.

Filename: Zope3/trunk/src/zope/app/security/protectclass.py
Revision 26696 - (view) (download) (as text) - [select for diffs]
Modified Fri Jul 23 08:20:41 2004 UTC (8 years, 10 months ago) by hdima
File length: 3369 byte(s)
Diff to previous 26370
Removed unused imports

Filename: Zope3/trunk/src/zope/app/security/protectclass.py
Revision 26370 - (view) (download) (as text) - [select for diffs]
Modified Fri Jul 9 20:09:14 2004 UTC (8 years, 10 months ago) by sidnei
File length: 3409 byte(s)
Diff to previous 25920
Add __traceback_info__ to zope.app.traversing.adapters, as it seems its a very common place to have errors when you mistype something on a view template, and no info was provided that could help finding the source of the problem. Fix a typo and clarify by adding a comment the code inside protectclass.

Filename: Zope3/trunk/src/zope/app/security/protectclass.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: 2764 byte(s)
Diff to previous 25251
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/app/security/protectclass.py
Revision 25251 - (view) (download) (as text) - [select for diffs]
Modified Fri Jun 4 13:50:37 2004 UTC (8 years, 11 months ago) by jim
File length: 2893 byte(s)
Diff to previous 25177
Permissions were being checked by individual directive handlers
even though permissions are now checked by permission schema
fields. This work is redundant and doesn't provide suffient control.


Filename: Zope3/trunk/src/zope/app/security/protectclass.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: 2969 byte(s)
Diff to previous 24749
Updated to use ZPL 2.1.

Filename: Zope3/trunk/src/zope/app/security/protectclass.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: 2969 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/app/security/protectclass.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: 3026 byte(s)
Diff to previous 12939
Set mime-type or svn-eol property from cvs expansion data

Filename: Zope3/trunk/src/zope/app/security/protectclass.py
Revision 12939 - (view) (download) (as text) - [select for diffs]
Modified Mon Mar 8 12:06:27 2004 UTC (9 years, 2 months ago) by srichter
File length: 3026 byte(s)
Diff to previous 11399

Adjusted code to use the new APIs for permissions and principals. Also, use
the utility service instead of the permission registry to look up permissions.

Filename: Zope3/trunk/src/zope/app/security/protectclass.py
Revision 11399 - (view) (download) (as text) - [select for diffs]
Modified Sat Aug 16 00:44:50 2003 UTC (9 years, 9 months ago) by srichter
File length: 3266 byte(s)
Diff to previous 8532
Merging dreamcatcher's TTW Schema branch:

1. Fixed Bug in adding that would cause infinite loops when the menu items
   action was not a valif view or factory id.

2. Extended adding to support more complex views. Until now we only
   supported constructions like "+/AddView=id". Now you are able to say
   "+/AddView/More=id", which means that more information can be carried
   in the URL. This can be used in many ways, including multi-page adding
   wizards. In my case I needed it to pass in the type of the TTW Schema-
   based Content Component.

3. Added Local Menus. This was a pain in the butt, but I think I got a
   fairly nice model, where you can create local Menu Services, and Menus
   are simply named utilities. When active they are menus in the menu
   service. This is very similar to the local interface service and TTW
   Schema.

4. Made some modifications to TTW Schema, cleaned up the code and moved
   the browser code and interfaces to the places they belong.

5. Added a Content Component Definition utility component, which takes a
   Schema and creates a content component for it, including permission
   settings and a menu entry. Currently the menu entry is always made to
   a local 'add_content' menu. I will change this and make it actually a
   screen, where the menu and title of the menu item can be chosen by the
   developer. Mmmh, should I add a factory for the definition as well, so
   that the content component is also available via python?

6. Added a Content Component Instance component that represents an
   instance od a Content Component Definition. You will never directly
   encounter this component, since it is automatically used by the adding
   code of the Content Component Definition.

7. Cleanups by both dreamcatcher and myself.

That's it. For more details see the branch checkin messages. I now consider
the dreamcatcher-ttwschema-branch closed.

Filename: Zope3/trunk/src/zope/app/security/protectclass.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: 2996 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