projects
/
GroupUserFolder.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
386ecff
)
Compat zope-2.12 : résolution des problèmes avec les interfaces.
master
author
Benoît Pin
<benoit.pin@gmail.com>
Tue, 26 Oct 2010 12:37:23 +0000
(14:37 +0200)
committer
Benoît Pin
<benoit.pin@gmail.com>
Tue, 26 Oct 2010 12:37:23 +0000
(14:37 +0200)
GroupDataTool.py
patch
|
blob
|
history
diff --git
a/GroupDataTool.py
b/GroupDataTool.py
index
9b05326
..
2da2493
100644
(file)
--- a/
GroupDataTool.py
+++ b/
GroupDataTool.py
@@
-37,8
+37,11
@@
from BTrees.OOBTree import OOBTree
from ZPublisher.Converters import type_converters
from Acquisition import aq_inner, aq_parent, aq_base
from AccessControl import ClassSecurityInfo, Permissions, Unauthorized, getSecurityManager
from ZPublisher.Converters import type_converters
from Acquisition import aq_inner, aq_parent, aq_base
from AccessControl import ClassSecurityInfo, Permissions, Unauthorized, getSecurityManager
+from zope.interface import implements
+from Products.CMFCore.interfaces import IActionProvider
from Products.CMFCore.ActionProviderBase import ActionProviderBase
from Products.CMFCore.ActionProviderBase import ActionProviderBase
+
# BBB CMF < 1.5
try:
from Products.CMFCore.permissions import ManagePortal
# BBB CMF < 1.5
try:
from Products.CMFCore.permissions import ManagePortal
@@
-61,7
+64,8
@@
class GroupDataTool (UniqueObject, SimpleItem, PropertyManager, ActionProviderBa
""" This tool wraps group objects, allowing transparent access to properties.
"""
# The latter will work only with Plone 1.1 => hence, the if
""" This tool wraps group objects, allowing transparent access to properties.
"""
# The latter will work only with Plone 1.1 => hence, the if
- __implements__ = (IGroupDataTool, ActionProviderBase.__implements__)
+ implements(IGroupDataTool, IActionProvider)
+ # __implements__ = (IGroupDataTool, ActionProviderBase.__implements__)
id = 'portal_groupdata'
meta_type = 'CMF Group Data Tool'
id = 'portal_groupdata'
meta_type = 'CMF Group Data Tool'