Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 81 by
d...@tonimueller.org: contentmirror is incompatible with
Plone 4.2
http://code.google.com/p/contentmirror/issues/detail?id=81
What steps will reproduce the problem?
1. Add contentmirror to a Plone 4.2 site
2. Run buildout
3. Try to start the instance
What is the expected output? What do you see instead?
The expected output would be some log messages, then "Ready to serve
requests".
Instead, I see a stacktrace due to contentmirror being incompatible with
Plone 4.2:
(virtualenv)$ ./bin/secondary fg
...
2012-07-16 14:48:56 INFO ZEO.cache created temporary cache file '<fdopen>'
2012-07-16 14:48:57 INFO ZEO.ClientStorage zeostorage Testing connection
<ManagedClientConnection ('127.0.0.1', 8108)>
2012-07-16 14:48:57 INFO ZEO.zrpc.Connection(C) (
127.0.0.1:8108) received
handshake 'Z3101'
2012-07-16 14:48:57 INFO ZEO.ClientStorage zeostorage Server authentication
protocol None
2012-07-16 14:48:57 INFO ZEO.ClientStorage zeostorage Connected to storage:
('localhost', 8108)
2012-07-16 14:48:57 INFO ZEO.ClientStorage zeostorage No verification
necessary -- empty cache
/path/to/eggs/five.grok-1.2.0-py2.6.egg/five/grok/meta.py:29:
DeprecationWarning: protectClass is deprecated. Please import from
AccessControl.security
from Products.Five.security import protectClass, protectName
/path/to/eggs/five.grok-1.2.0-py2.6.egg/five/grok/meta.py:29:
DeprecationWarning: protectName is deprecated. Please import from
AccessControl.security
from Products.Five.security import protectClass, protectName
2012-07-16 14:49:22 INFO plone.app.theming Patched Zope Management
Interface to disable theming.
2012-07-16 14:49:37 INFO ATContentTypes Warning: You have content instances
of the ATFavorite type in your site. This type is no longer available.
Please remove all remaining instances of this type or migrate them to links.
2012-07-16 14:49:44 WARNING Init Class z3c.blobfile.file.File has a
security declaration for nonexistent method 'contentType'
2012-07-16 14:49:44 WARNING Init Class z3c.blobfile.image.Image has a
security declaration for nonexistent method 'contentType'
Traceback (most recent call last):
File "/path/to/eggs/Zope2-2.13.15-py2.6.egg/Zope2/Startup/run.py", line
76, in <module>
run()
File "/path/to/eggs/Zope2-2.13.15-py2.6.egg/Zope2/Startup/run.py", line
22, in run
starter.prepare()
File "/path/to/eggs/Zope2-2.13.15-py2.6.egg/Zope2/Startup/__init__.py",
line 86, in prepare
self.startZope()
File "/path/to/eggs/Zope2-2.13.15-py2.6.egg/Zope2/Startup/__init__.py",
line 259, in startZope
Zope2.startup()
File "/path/to/eggs/Zope2-2.13.15-py2.6.egg/Zope2/__init__.py", line 47,
in startup
_startup()
File "/path/to/eggs/Zope2-2.13.15-py2.6.egg/Zope2/App/startup.py", line
118, in startup
load_zcml()
File "/path/to/eggs/Zope2-2.13.15-py2.6.egg/Zope2/App/startup.py", line
52, in load_zcml
load_site()
File "/path/to/eggs/Zope2-2.13.15-py2.6.egg/Zope2/App/zcml.py", line 46,
in load_site
_context = xmlconfig.file(site_zcml)
File "/path/to/eggs/zope.configuration-3.7.4-py2.6.egg/zope/configuration/xmlconfig.py",
line 651, in file
context.execute_actions()
File "/path/to/eggs/zope.configuration-3.7.4-py2.6.egg/zope/configuration/config.py",
line 626, in execute_actions
callable(*args, **kw)
File "/path/to/project/src/ore.contentmirror/ore/contentmirror/loader.py",
line 43, in load
transformer = self.transform(instance)
File "/path/to/project/src/ore.contentmirror/ore/contentmirror/loader.py",
line 51, in transform
transformer.transform()
File "/path/to/project/src/ore.contentmirror/ore/contentmirror/transform.py",
line 46, in transform
columns = list(self.columns())
File "/path/to/project/src/ore.contentmirror/ore/contentmirror/transform.py",
line 73, in columns
for field in self.context.Schema().fields():
File "/path/to/eggs/Products.Archetypes-1.8-py2.6.egg/Products/Archetypes/BaseObject.py",
line 823, in Schema
return ImplicitAcquisitionWrapper(ISchema(self), self)
File "/path/to/eggs/zope.component-3.9.5-py2.6.egg/zope/component/hooks.py",
line 104, in adapter_hook
return siteinfo.adapter_hook(interface, object, name, default)
File "/path/to/eggs/archetypes.schemaextender-2.1.1-py2.6.egg/archetypes/schemaextender/extender.py",
line 122, in cachingInstanceSchemaFactory
lookup = site.aq_acquire
zope.configuration.config.ConfigurationExecutionError:
<type 'exceptions.AttributeError'>: 'NoneType' object has no
attribute 'aq_acquire'
in:
File "/path/to/project/src/ore.contentmirror/ore/contentmirror/content.zcml",
line 3.4-3.80
<ore:mirror
content="Products.ATContentTypes.content.document.ATDocument" />
What version of the product are you using? On what operating system?
SVN tip on Linux
Please provide any additional information below.