New issue 61 by runyaga: Plone 4 / contentmirror 0.6
http://code.google.com/p/contentmirror/issues/detail?id=61
NOTE: When I did this I was using SQLAlchemy 0.6 which was too many
variables to juggle. I'm creating a separate issue for contentmirror 0.6
and SA 0.6
Few issues found while using Plone 4 w/ 0.6 egg:
- Had to remove ATFavorite, content.zcml
ATFavorite no longer exists?
- Remove PhotoField from implements.zcml
PhotoField was removed from Archetypes?
Once the Plone site was created; it inserted the OOTB content correctly.
I could then create a Folder (which worked). Then any subsequent content
creation would fail with an Integrity error.
2010-05-25 03:01:12 ERROR Zope.SiteErrorLog 1274774472.030.648337262873
http://localhost:8080/Plone/a-folder/portal_factory/Folder/folder.2010-05-25.4677245402/atct_edit
Traceback (innermost last):
Module ZPublisher.Publish, line 135, in publish
Module Zope2.App.startup, line 276, in commit
Module transaction._manager, line 93, in commit
Module transaction._transaction, line 316, in commit
Module transaction._transaction, line 366, in _callBeforeCommitHooks
Module ore.contentmirror.operation, line 205, in flush
Module sqlalchemy.orm.session, line 1348, in flush
Module sqlalchemy.orm.session, line 1429, in _flush
Module sqlalchemy.orm.unitofwork, line 288, in execute
Module sqlalchemy.orm.unitofwork, line 508, in execute_aggregate
Module sqlalchemy.orm.mapper, line 1559, in _save_obj
Module sqlalchemy.engine.base, line 1109, in execute
Module sqlalchemy.engine.base, line 1186, in _execute_clauseelement
Module sqlalchemy.engine.base, line 1215, in __execute_context
Module sqlalchemy.engine.base, line 1284, in _cursor_execute
Module sqlalchemy.engine.base, line 1282, in _cursor_execute
Module sqlalchemy.engine.default, line 277, in do_execute
IntegrityError: (IntegrityError) duplicate key value violates unique
constraint "content_content_uid_idx"
So I tried it again ;)
In content table the object_type column I'm seeing Peer appended
to the content type. i.e. ATFolderPeer
The integrity error should be fixed here as of revision 228 as its likely
the same issue that was in issue 71 (april event/operation regression).