Issue 81 in contentmirror: contentmirror is incompatible with Plone 4.2

5 views
Skip to first unread message

conten...@googlecode.com

unread,
Jul 16, 2012, 8:58:24 AM7/16/12
to conten...@googlegroups.com
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.


conten...@googlecode.com

unread,
Aug 24, 2012, 6:29:06 AM8/24/12
to conten...@googlegroups.com

Comment #1 on issue 81 by backup.r...@gmail.com: contentmirror is
the fix can be found in https://dev.plone.org/ticket/12051
R.


conten...@googlecode.com

unread,
Aug 24, 2012, 6:44:31 AM8/24/12
to conten...@googlegroups.com

Comment #2 on issue 81 by backup.r...@gmail.com: contentmirror is
Here is the fix that worked for me, file bulk.py, line 126:

...
instance_path = args[0]
portal = app.unrestrictedTraverse(instance_path)

# FIX: issuie 81
from zope.site.hooks import setHooks
from zope.site.hooks import setSite
setHooks()
setSite(portal)
site.setupCurrentSkin(site.REQUEST)
...

see: https://dev.plone.org/ticket/12051

Regards
R.


conten...@googlecode.com

unread,
Jun 24, 2013, 2:35:50 AM6/24/13
to conten...@googlegroups.com

Comment #4 on issue 81 by backup.r...@gmail.com: contentmirror is
Hi,
contentmirror for dexterity available here
https://github.com/lck/collective.dexteritycontentmirror :)
Regards
R.

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
Reply all
Reply to author
Forward
0 new messages