Zope Subversion Repository |
|
Zope: zope.security/trunk/src/zope/security/permission.py
No default branch
Revision 125980
-
(view)
(download)
(as text)
- [select for diffs]
Modified
Thu May 17 21:22:20 2012 UTC (12 months ago) by tseaver
File length: 6036 byte(s)
Diff to previous 113056
,
to selected 8891
Drop support for Python 2.4 and 2.5.
Replace deprecated 'zope.component.adapts' usage with equivalent
'zope.component.adapter' decorator.
Replace deprecated 'zope.interface.classProvides' usage with equivalent
'zope.interface.provider' decorator.
Replace deprecated 'zope.interface.implements' usage with equivalent
'zope.interface.implementer' 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: 6037 byte(s)
Diff to previous 112046
,
to selected 8891
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: 6043 byte(s)
Diff to previous 107562
,
to selected 8891
Conform to repository policy.
Revision 107562
-
(view)
(download)
(as text)
- [select for diffs]
Modified
Sat Jan 2 18:18:31 2010 UTC (3 years, 4 months ago) by fretin
File length: 6044 byte(s)
Diff to previous 98116
,
to selected 8891
Fixed directlyProvides IVocabularyFactory for PermissionIdsVocabulary in
Python code, even if it's unnecessary because IVocabularyFactory is provided
in zcml.
Revision 98116
-
(view)
(download)
(as text)
- [select for diffs]
Modified
Sun Mar 15 00:51:22 2009 UTC (4 years, 2 months ago) by nadako
File length: 6042 byte(s)
Diff to previous 97913
,
to selected 8891
Ensure that simple zope.schema's VocabularyRegistry is used for PermissionVocabulary tests to make them work in the KGS testing environment.
Revision 97913
-
(view)
(download)
(as text)
- [select for diffs]
Modified
Wed Mar 11 20:54:42 2009 UTC (4 years, 2 months ago) by nadako
File length: 5896 byte(s)
Diff to previous 75174
,
to selected 8891
Move PermissionsVocabulary and PermissionIdsVocabulary from ``zope.app.security`` to here.
Add zcml permission definition for the special "zope.Public" permission.
Add coverage buildout parts and improve test coverage a little.
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: 2145 byte(s)
Diff to previous 70665
,
to selected 8891
Moving code to satellite.
Filename: Zope3/trunk/src/zope/security/permission.py
Revision 70665
-
(view)
(download)
(as text)
- [select for diffs]
Modified
Sun Oct 15 18:42:56 2006 UTC (6 years, 7 months ago) by flox
File length: 2145 byte(s)
Diff to previous 67630
,
to selected 8891
added '__docformat__' to make APIDOC happy.
Filename: Zope3/trunk/src/zope/security/permission.py
Revision 67630
-
(view)
(download)
(as text)
- [select for diffs]
Modified
Thu Apr 27 00:54:03 2006 UTC (7 years ago) by jim
File length: 2109 byte(s)
Copied from: Zope3/branches/jim-adapter/src/zope/security/permission.py revision 67629
Diff to previous 66918
,
to selected 8891
Merge of jim-adapter branch:
This branch has three major refactorings on it:
- A redesign of the adapter registration machinery
- A major simplification of local component management
See zope.component.interfaces.IComponentRegistry.
- A flexible system for combining component registries.
- A beginning of the migration of packages out of zope.app.
- A new package for doing deferred imports. This allows you
to make names available at the package level without creating
circular imports. See zope.deferredimport and see
zope.component.__init__ for examples of it's use. This package
also provides a way to deprecate names in a module.
- Deprecation of zope. i18nmessageid.MessageID
I should have created checkin messages for individual sets of related
changes, but there were just too many for the time allowed.
Filename: Zope3/branches/jim-adapter/src/zope/security/permission.py
Revision 66918
-
(view)
(download)
(as text)
- [select for diffs]
Modified
Wed Apr 12 22:17:35 2006 UTC (7 years, 1 month ago) by philikon
File length: 2109 byte(s)
Copied from: Zope3/branches/jim-adapter/src/zope/app/security/permission.py revision 66899
Diff to previous 66539
,
to selected 8891
Move Permission implementation to zope.security. It's reusable.
Also correct imports of IPermission. It's in zope.security.interfaces,
not in zope.app.security.interfaces.
Filename: Zope3/branches/jim-adapter/src/zope/app/security/permission.py
Revision 66539
-
(view)
(download)
(as text)
- [select for diffs]
Modified
Wed Apr 5 14:15:32 2006 UTC (7 years, 1 month ago) by philikon
File length: 4531 byte(s)
Diff to previous 66391
,
to selected 8891
Adjust zope.app to the new import location of zope.app.location.
Filename: Zope3/branches/jim-adapter/src/zope/app/security/permission.py
Revision 66391
-
(view)
(download)
(as text)
- [select for diffs]
Modified
Tue Apr 4 15:00:50 2006 UTC (7 years, 1 month ago) by philikon
File length: 4518 byte(s)
Diff to previous 39064
,
to selected 8891
Recreate jim-adapter branch
Filename: Zope3/trunk/src/zope/app/security/permission.py
Revision 39064
-
(view)
(download)
(as text)
- [select for diffs]
Modified
Tue Oct 11 18:40:10 2005 UTC (7 years, 7 months ago) by philikon
File length: 4518 byte(s)
Diff to previous 29143
,
to selected 8891
Put the second part of the roadmap described in zope.i18nmessages/messages.txt
into practice by moving to immutable Messages everywhere in Zope.
Filename: Zope3/trunk/src/zope/app/security/permission.py
Revision 29143
-
(view)
(download)
(as text)
- [select for diffs]
Modified
Mon Feb 14 22:43:16 2005 UTC (8 years, 3 months ago) by srichter
File length: 4520 byte(s)
Diff to previous 29078
,
to selected 8891
- Removal of Services. You can now access the adapter and utiliy
registry directly via the site manager's `adapters` and `utilities`
attribute, respecitvely.
+ Converted Principal Annotation Service to be a utility. Added
database evolution code to convert all service instances to
utilities.
+ Converted FSSync Service to be a utility.
+ Created the concept of a global site manager. The adapter and
utility registry, formerly the adapter and utility service, are now
managed by the site manager.
+ The `zope.app.utility` package has been merged into
`zope.app.component`. The utility registration class is in
`site.py`. The utility vocabulary is in `vocabulary.py`.
+ The `zope.app.site` package has been merged into
`zope.app.component`. The site code can be found in `site.py`.
+ Fixed persistent modules code. Persistent modules are now simply
utilities providing `IModuleManager`. The local site manager also
does not know any thing about persistent modules anymore.
+ Updated `zope.app.pluggableauth`, so that it will work as an
authentication utility.
+ Restructured `zope.app.persentation` (a.k.a page folders) to the new
component API.
- Simplified the registration framework by only supporting two states:
active and inactive. This allowed us to get rid of the registration
stack and the complexity it introduced to the site management.
- Removed all presentation-related APIs from `zope.component`. This
included the removal of presentation-related interfaces and the
deprecation of all view-related API functions. One should use the
adapter API functions instead.
- Implemented some initial deprecation framework, see
`zope.deprecation`. It allows one to deprecate methods and properties
in classes as well as any name in a module.
- Moved reusable test setups/APIs from `zope.app.tests` to
`zope.app.testing`. No reusable testing code should be in a `tests`
package or module.
Filename: Zope3/trunk/src/zope/app/security/permission.py
Revision 29078
-
(view)
(download)
(as text)
- [select for diffs]
Modified
Mon Feb 7 22:50:03 2005 UTC (8 years, 3 months ago) by garrett
File length: 4512 byte(s)
Diff to previous 28582
,
to selected 8891
Added a registration event dispatcher for component registrations so that developers can explicitly register for a registration event (e.g. activated and deactivated) rather than having to check for specific component instances.
This change includes conversion of existing subscribers to component registration events to use the new scheme.
Filename: Zope3/trunk/src/zope/app/security/permission.py
Revision 28582
-
(view)
(download)
(as text)
- [select for diffs]
Modified
Wed Dec 8 00:46:02 2004 UTC (8 years, 5 months ago) by srichter
File length: 5264 byte(s)
Diff to previous 28568
,
to selected 8891
Restructure registration framework to use direct references rather than
paths.
I still have to do the database generation code for this, but I do not
understand how they are supposed to work, so I have to ask Jim tomorrow.
So for now, you have to delete your Data.fs file.
Filename: Zope3/trunk/src/zope/app/security/permission.py
Revision 28568
-
(view)
(download)
(as text)
- [select for diffs]
Modified
Sun Dec 5 21:08:25 2004 UTC (8 years, 5 months ago) by srichter
File length: 5426 byte(s)
Diff to previous 26695
,
to selected 8891
Implemented local permissions.
Filename: Zope3/trunk/src/zope/app/security/permission.py
Revision 26695
-
(view)
(download)
(as text)
- [select for diffs]
Modified
Fri Jul 23 08:19:09 2004 UTC (8 years, 9 months ago) by hdima
File length: 2363 byte(s)
Diff to previous 25177
,
to selected 8891
'==' changed to 'is' for CheckerPublic
Filename: Zope3/trunk/src/zope/app/security/permission.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: 2363 byte(s)
Diff to previous 25169
,
to selected 8891
Updated to use ZPL 2.1.
Filename: Zope3/trunk/src/zope/app/security/permission.py
Revision 25169
-
(view)
(download)
(as text)
- [select for diffs]
Modified
Wed Jun 2 03:47:07 2004 UTC (8 years, 11 months ago) by garrett
File length: 2363 byte(s)
Diff to previous 24883
,
to selected 8891
Cleanup of component API and its use. Specific changes to API:
- The 'name' and 'default' arguments in queryAdapter and queryUtility have beeen swapped -- the 'name' argument now precedes the 'default' argument.
- getNamedAdapter and queryNamedAdapter have been deleted. Use instead getAdapter and queryAdapter respectively, supplying the 'name' argument.
- queryService has been deleted. Use getService to obtain a service, which rauses ComponentLookupError is the service is not available.
Filename: Zope3/trunk/src/zope/app/security/permission.py
Revision 24883
-
(view)
(download)
(as text)
- [select for diffs]
Modified
Sat May 22 17:30:08 2004 UTC (8 years, 11 months ago) by jim
File length: 2368 byte(s)
Diff to previous 24869
,
to selected 8891
Changed getUtilitiesFor to be consistent with recent
component-architecture changes.
Filename: Zope3/trunk/src/zope/app/security/permission.py
Revision 24869
-
(view)
(download)
(as text)
- [select for diffs]
Modified
Sat May 22 01:56:25 2004 UTC (8 years, 11 months ago) by alga
File length: 2363 byte(s)
Diff to previous 24769
,
to selected 8891
Updated the code to reflect the changes to the Component Architecture
API: the context is now the last argument and is optional.
getServiceManager() is now called getServices() or getGlobalServices().
Filename: Zope3/trunk/src/zope/app/security/permission.py
Revision 24769
-
(view)
(download)
(as text)
- [select for diffs]
Modified
Mon May 17 10:02:08 2004 UTC (9 years ago) by jim
File length: 2355 byte(s)
Diff to previous 24749
,
to selected 8891
Added a utility function for getting an iterator over all permission ids.
Filename: Zope3/trunk/src/zope/app/security/permission.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: 1391 byte(s)
Diff to previous 13888
,
to selected 8891
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/permission.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: 1447 byte(s)
Diff to previous 13735
,
to selected 8891
Set mime-type or svn-eol property from cvs expansion data
Filename: Zope3/trunk/src/zope/app/security/permission.py
Revision 13735
-
(view)
(download)
(as text)
- [select for diffs]
Modified
Sat Apr 24 23:20:04 2004 UTC (9 years ago) by srichter
File length: 1447 byte(s)
Diff to previous 13575
,
to selected 8891
Remove PermissionField and its widget in favor of Choice and a vocabulary.
Filename: Zope3/trunk/src/zope/app/security/permission.py
Revision 13575
-
(view)
(download)
(as text)
- [select for diffs]
Modified
Sun Apr 11 18:16:32 2004 UTC (9 years, 1 month ago) by jim
File length: 1919 byte(s)
Diff to previous 12939
,
to selected 8891
Added a zcml definition of zope.Public. This was previously defined in
Python, in a way that depended on getting to the global utility
service via a global variable.
Moved the python code to zope.app.security.tests for use in tests.
This is now called by placelesssetup.
Filename: Zope3/trunk/src/zope/app/security/permission.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: 2584 byte(s)
Diff to previous 12697
,
to selected 8891
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/permission.py
Revision 12697
-
(view)
(download)
(as text)
- [select for diffs]
Modified
Tue Feb 24 14:12:11 2004 UTC (9 years, 2 months ago) by srichter
File length: 1756 byte(s)
Diff to previous 12150
,
to selected 8891
improved doc strings
Filename: Zope3/trunk/src/zope/app/security/permission.py
Revision 12150
-
(view)
(download)
(as text)
- [select for diffs]
Modified
Mon Jan 5 08:06:12 2004 UTC (9 years, 4 months ago) by philikon
File length: 1661 byte(s)
Diff to previous 10369
,
to selected 8891
Module docstring.
Filename: Zope3/trunk/src/zope/app/security/permission.py
Revision 10369
-
(view)
(download)
(as text)
- [select for diffs]
Modified
Tue Jun 3 15:45:11 2003 UTC (9 years, 11 months ago) by stevea
File length: 1695 byte(s)
Diff to previous 9648
,
to selected 8891
Various formatting cleanup.
Use new implements() style.
replaced use of 0 and 1 with False and True.
Filename: Zope3/trunk/src/zope/app/security/permission.py
Revision 9648
-
(view)
(download)
(as text)
- [select for diffs]
Modified
Mon Apr 14 18:21:36 2003 UTC (10 years, 1 month ago) by fdrake
File length: 1666 byte(s)
Diff to previous 9212
,
to selected 8891
Rename IValueSet to IEnumerated, and ValueSet to Enumerated.
Treat these more like mixins than like directly useful things.
Filename: Zope3/trunk/src/zope/app/security/permission.py
Revision 9212
-
(view)
(download)
(as text)
- [select for diffs]
Modified
Fri Mar 7 21:13:49 2003 UTC (10 years, 2 months ago) by jim
File length: 1645 byte(s)
Diff to previous 9095
,
to selected 8891
Updated permission fields to accept CheckerPublic as a value.
Filename: Zope3/trunk/src/zope/app/security/permission.py
Revision 9095
-
(view)
(download)
(as text)
- [select for diffs]
Modified
Wed Feb 12 02:17:43 2003 UTC (10 years, 3 months ago) by seanb
File length: 1545 byte(s)
Diff to previous 9088
,
to selected 8891
moved non core CA service names to zope/app/services/servicenames.py,
renamed ResourceService to Resources
Filename: Zope3/trunk/src/zope/app/security/permission.py
Revision 9088
-
(view)
(download)
(as text)
- [select for diffs]
Modified
Tue Feb 11 16:00:10 2003 UTC (10 years, 3 months ago) by sidnei
File length: 1543 byte(s)
Diff to previous 9049
,
to selected 8891
Merging paris-copypasterename-branch. Not very fun :(
Filename: Zope3/trunk/src/zope/app/security/permission.py
Revision 9049
-
(view)
(download)
(as text)
- [select for diffs]
Modified
Thu Feb 6 06:50:08 2003 UTC (10 years, 3 months ago) by seanb
File length: 1542 byte(s)
Diff to previous 8891
finished changing service names to use strings defined in
zope/component/servicenames.py, changed the name of
ErrorReportingService to ErrorReports and Resources to ResourceService
Filename: Zope3/trunk/src/zope/app/security/permission.py
Revision 8891
-
(view)
(download)
(as text)
- [selected]
Modified
Tue Jan 21 21:22:01 2003 UTC (10 years, 3 months ago) by jim
File length: 1492 byte(s)
Diff to previous 8540
Changed permission fields to use permission ids, rather than permission objects
Filename: Zope3/trunk/src/zope/app/security/permission.py
Revision 8540
-
(view)
(download)
(as text)
- [select for diffs]
Added
Thu Dec 26 18:49:09 2002 UTC (10 years, 4 months ago) by jim
File length: 1500 byte(s)
Diff
to selected 8891
Added functions for checking validity of permission, role, and
principal ids.
Updated global grants to perform these chacks.
Renamed and consolidated a number of files in the ongoing quest to get
to single-line imports.
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.