kapilt / contentmirror

Automatically exported from code.google.com/p/contentmirror
1 stars 0 forks source link

mirror-ddl and mirror-ddl and related script commands not working with Plone > 4.2.1 #85

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

1. Install a checkout of ore.contentmirror 0.7.0svn with bulk.py patch for 
Plone 4.2.x in a Plone 4.2.5 or 4.3.1 development buildout
2. do proper database setup
3. try to run:

./bin/instance run ./bin/mirror-ddl mysql | sed '/content_id INTEGER NOT NULL,/ 
s//content_id INTEGER NOT NULL AUTO_INCREMENT,/g' > ./mysql-schema.sql

Usually with Plone 4.2.1 a proper database schema is created.

Instead you get an error::

     Usage: ./bin/instance run /path/to/ddl.py [options] portal_path

     interpreter: error: no such option: -c

The same error message occurs with the mirror-bulk command.

### Installation details ###

Plone 4 development buildout created with paster

OS: MacOSX 10.8.4
custom Python 2.7.3
Plone Version 4.2.1 or 4.3.1 version.cfg setup
MySQL: Server version: 5.5.29 MySQL Community Server (GPL)

Remark:
-------

If you already had run these commands with Plone 4.2.1 you can run 
ore.contentmirror with the Plone Versions 4.2.5 and 4.3.1 after doing in place 
migration.

Original issue reported on code.google.com by develo...@acsr.de on 18 Jul 2013 at 5:38

GoogleCodeExporter commented 9 years ago
# Workaround #
--------------

There is a difference how the zopepy interpreter is setup by the 
plone.recipe.zope2instanc recipe.

With Plone 4.2.1 you get the version pinned to:

plone.recipe.zope2instance = 4.2.3

With Plone 4.3.1 you get 4.2.11

If you pin down 

plone.recipe.zope2instance = 4.2.3

the ore.contentmirror commands are working again.

Side effect of this pindown are not evaluated currently. Feedback welcome.

Original comment by develo...@acsr.de on 18 Jul 2013 at 5:42