[Checkins] SVN: grok/trunk/src/grok/meta.py Perform the permission
registrations even earlier.
Jan-Wijbrand Kolman
janwijbrand at gmail.com
Thu Apr 17 08:14:40 EDT 2008
Log message for revision 85457:
Perform the permission registrations even earlier.
Changed:
U grok/trunk/src/grok/meta.py
-=-
Modified: grok/trunk/src/grok/meta.py
===================================================================
--- grok/trunk/src/grok/meta.py 2008-04-17 10:36:23 UTC (rev 85456)
+++ grok/trunk/src/grok/meta.py 2008-04-17 12:14:39 UTC (rev 85457)
@@ -164,7 +164,7 @@
methods = public_methods_from_class(factory)
default_permission = get_default_permission(factory)
-
+
# make sure we issue an action to check whether this permission
# exists. That's the only thing that action does
if default_permission is not None:
@@ -172,8 +172,8 @@
discriminator=None,
callable=check_permission,
args=(factory, default_permission)
- )
-
+ )
+
for method in methods:
name = method.__name__
@@ -220,8 +220,8 @@
discriminator=None,
callable=check_permission,
args=(factory, default_permission)
- )
-
+ )
+
# grab layer from class or module
view_layer = determine_class_directive('grok.layer', factory,
module_info,
@@ -347,7 +347,7 @@
discriminator=None,
callable=check_permission,
args=(factory, default_permission)
- )
+ )
for method in methods:
# The grok.JSON component inherits methods from its baseclass
@@ -721,7 +721,7 @@
discriminator=('utility', IPermission, id),
callable=component.provideUtility,
args=(permission, IPermission, id),
- order=0 # need to do this early in the process
+ order=-1 # need to do this early in the process
)
return True
More information about the Checkins
mailing list