Commit 3819e97f authored by Arnaud Fontaine's avatar Arnaud Fontaine

py3: keys() returns a dict_keys not supporting Indexing.

parent 5c56bc7b
......@@ -113,6 +113,8 @@ import zope.interface
from ZODB.POSException import ConflictError
from zLOG import LOG, INFO, ERROR, WARNING
import six
_MARKER = []
class PersistentContainer(Persistent):
......@@ -1893,6 +1895,9 @@ class Base(
if 'Owner' in rolesForPermissionOn(Permissions.View, self):
owner_list = self.users_with_local_role('Owner')
if owner_list:
if six.PY3:
# keys() returns a dict_keys not supporting Indexing
owner_list = list(owner_list)
return owner_list[0]
# Private accessors for the implementation of relations based on
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment