diff --git a/inst/loops/main.py b/inst/loops/main.py
index efe01b1..9dccf45 100644
--- a/inst/loops/main.py
+++ b/inst/loops/main.py
@@ -1,5 +1,9 @@
# loops/inst/loops/main.py
+import sys
+from zope.securitypolicy import securitymap
+sys.modules['zope.app.securitypolicy.securitymap'] = securitymap
+
import waitress
from zope.app.wsgi import config, getWSGIApplication
diff --git a/loops/browser/common.py b/loops/browser/common.py
index 61e729d..f78b766 100755
--- a/loops/browser/common.py
+++ b/loops/browser/common.py
@@ -895,6 +895,7 @@ class BaseView(GenericView, I18NView, SortableMixin):
@Lazy
def xeditable(self):
+ return False
if self.typeOptions('no_external_edit'):
return False
ct = getattr(self.context, 'contentType', '')
diff --git a/loops/browser/external.py b/loops/browser/external.py
index a9e2728..7015dce 100644
--- a/loops/browser/external.py
+++ b/loops/browser/external.py
@@ -1,28 +1,8 @@
-#
-# Copyright (c) 2008 Helmut Merz helmutm@cy55.de
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#
+# loops.browser.external
-"""
-view class(es) for import/export.
-
-$Id$
+""" view class(es) for import/export.
"""
-from zope.interface import Interface, implements
from zope.app import zapi
from zope.app.pagetemplate.viewpagetemplatefile import ViewPageTemplateFile
from zope.cachedescriptors.property import Lazy
diff --git a/loops/browser/node_target.pt b/loops/browser/node_target.pt
index 3150584..cb35077 100644
--- a/loops/browser/node_target.pt
+++ b/loops/browser/node_target.pt
@@ -18,10 +18,6 @@
Document xy
-
-
-
diff --git a/loops/external/external.py b/loops/external/external.py
index 6d7381a..eeb14d7 100644
--- a/loops/external/external.py
+++ b/loops/external/external.py
@@ -1,30 +1,11 @@
-#
-# Copyright (c) 2008 Helmut Merz helmutm@cy55.de
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#
+# loops.external.external
-"""
-Adapter implementations for export, import, ...
+""" Adapter implementations for export, import, ...
Obsolete, replaced by functionality in loops.external.base and other modules
-
-$Id$
"""
-from zope.interface import implements, Interface
+from zope.interface import implementer, Interface
from zope.app import zapi
from zope.component import adapts
@@ -76,9 +57,9 @@ class IExporter(Interface):
# implementations for views/nodes
+@implementer(ILoader)
class NodesLoader(object):
- implements(ILoader)
adapts(IViewManager)
def __init__(self, context):
@@ -99,9 +80,9 @@ class NodesLoader(object):
parent[name] = node
+@implementer(IExporter)
class NodesExporter(object):
- implements(IExporter)
adapts(IViewManager)
filename = 'loops.dmp'
@@ -140,9 +121,9 @@ class NodesExporter(object):
file.close()
+@implementer(IExternalContentSource)
class NodesImporter(object):
- implements(IExternalContentSource)
adapts(IViewManager)
filename = 'loops.dmp'
diff --git a/loops/interfaces.py b/loops/interfaces.py
index 4715c09..b9040eb 100644
--- a/loops/interfaces.py
+++ b/loops/interfaces.py
@@ -764,7 +764,7 @@ class IIsSubtype(IRelationAdapter):
# probably not useful
-class xxIMappingAttributeRelation(IConceptSchema):
+class IMappingAttributeRelation(IConceptSchema):
""" A relation based on a predicate ('mappingAttribute') that provides
values for an attribute name on a parent and a corresponding
identifiers on the the child objects that will be used as keys