• Remember Mailing List

issues migrating from CMFMember

from Kevin Worth on Mar 04, 2008 03:47 PM
Hi-

I'm trying to move up from a CMFMember based site to a remember site.   
I'm having issues with the migration.  I have a feeling it is either  
in my MIGRATION_MAP for my custom member types or the way I am  
handling the new remember-based members.

I regenerated my member types (faculty and staff) using ArchGenXML  
1.5.2 by changing the stereotype for member to remember.  I then  
replaced the existing faculty.py and staff.py with the newly generated  
files.  Should the original faculty.py and staff.py be somewhere?

My MIGRATION_MAP looks like this:

    'Products.<my product>.people.faculty.faculty':
            {'atct_newTypeFor': {'portal_type': 'faculty',
                                 'meta_type': 'faculty'},
             'project_name': '<my product>',
             'product': '<my product>',
              'replace_workflows': REPLACE_CMFMEMBER_WORKFLOWS,
              'workflow_ids': ('member_auto_workflow',
                               'member_approval_workflow'),
             },
    'Products.<my product>.people.staff.staff':
            {'atct_newTypeFor': {'portal_type': 'staff',
                                 'meta_type': 'staff'},
             'project_name': '<my product>',
             'product': '<my product>',
              'replace_workflows': REPLACE_CMFMEMBER_WORKFLOWS,
              'workflow_ids': ('member_auto_workflow',
                               'member_approval_workflow'),
             },

During the migration I get:

	• Dry run selected.
	• Starting the migration from version: 2.1.2
	• Attempting to upgrade from: 2.1.2
	• Removed vcXMLRPC.js
	• Added icons for copy, cut, paste and delete
	• Upgrade to: 2.1.3-rc1, completed
	• Attempting to upgrade from: 2.1.3-rc1
	• Upgrade to: 2.1.3, completed
	• Attempting to upgrade from: 2.1.3
	• Upgrade to: 2.1.4-rc1, completed
	• Attempting to upgrade from: 2.1.4-rc1
	• Upgrade to: 2.1.4, completed
	• Attempting to upgrade from: 2.1.4
	• Installed CMFPlacefulWorkflow.
	• Upgrade to: 2.5-alpha1, completed
	• Attempting to upgrade from: 2.5-alpha1
	• Upgrade aborted
	• Error type: exceptions.AttributeError
	• Error value: 'NoneType' object has no attribute '__of__'
	• File "/Applications/Plone-2.5.5/Instance/Products/CMFPlone/ 
MigrationTool.py", line 308, in upgrade newv, msgs = self._upgrade(newv)
	• File "/Applications/Plone-2.5.5/Instance/Products/CMFPlone/ 
MigrationTool.py", line 416, in _upgrade res = function(self.aq_parent)
	• File "/Applications/Plone-2.5.5/Instance/Products/CMFPlone/ 
migrations/v2_5/alphas.py", line 24, in alpha1_alpha2  
installPlonePAS(portal, out)
	• File "/Applications/Plone-2.5.5/Instance/Products/remember/ 
cmfmember/monkey.py", line 61, in installPlonePAS result =  
InstallPlonePAS.install(portal)
	• File "/Applications/Plone-2.5.5/Instance/Products/PlonePAS/ 
Extensions/Install.py", line 837, in install setupTools(portal, out)
	• File "/Applications/Plone-2.5.5/Instance/Products/PlonePAS/ 
Extensions/Install.py", line 399, in setupTools  
migrateMemberDataTool(portal, out)
	• File "/Applications/Plone-2.5.5/Instance/Products/remember/ 
cmfmember/monkey.py", line 100, in migrateMemberDataTool  
unrestricted_move(portal.cmfmember_tmp, portal.portal_memberdata)
	• File "/Applications/Plone-2.5.5/Instance/Products/contentmigration/ 
utils.py", line 69, in unrestricted_move notify(ObjectMovedEvent(ob,  
orig_container, orig_id, self, id))
	• File "/Applications/Plone-2.5.5/lib/python/zope/event/__init__.py",  
line 23, in notify subscriber(event)
	• File "/Applications/Plone-2.5.5/lib/python/zope/app/event/ 
dispatching.py", line 66, in dispatch for ignored in  
subscribers(event, None):
	• File "/Applications/Plone-2.5.5/lib/python/zope/component/ 
__init__.py", line 181, in subscribers return  
sitemanager.subscribers(objects, interface)
	• File "/Applications/Plone-2.5.5/lib/python/zope/component/site.py",  
line 89, in subscribers return self.adapters.subscribers(required,  
provided)
	• File "/Applications/Plone-2.5.5/lib/python/zope/interface/ 
adapter.py", line 481, in subscribers subscribers =  
[subscription(*objects)
	• File "/Applications/Plone-2.5.5/lib/python/zope/app/event/ 
objectevent.py", line 192, in objectEventNotify adapters =  
subscribers((event.object, event), None)
	• File "/Applications/Plone-2.5.5/lib/python/zope/component/ 
__init__.py", line 181, in subscribers return  
sitemanager.subscribers(objects, interface)
	• File "/Applications/Plone-2.5.5/lib/python/zope/component/site.py",  
line 89, in subscribers return self.adapters.subscribers(required,  
provided)
	• File "/Applications/Plone-2.5.5/lib/python/zope/interface/ 
adapter.py", line 481, in subscribers subscribers =  
[subscription(*objects)
	• File "/Applications/Plone-2.5.5/lib/python/OFS/subscribers.py",  
line 117, in dispatchObjectMovedEvent dispatchToSublocations(ob, event)
	• File "/Applications/Plone-2.5.5/lib/python/zope/app/container/ 
contained.py", line 184, in dispatchToSublocations for ignored in  
zapi.subscribers((sub, event), None):
	• File "/Applications/Plone-2.5.5/lib/python/zope/component/ 
__init__.py", line 181, in subscribers return  
sitemanager.subscribers(objects, interface)
	• File "/Applications/Plone-2.5.5/lib/python/zope/component/site.py",  
line 89, in subscribers return self.adapters.subscribers(required,  
provided)
	• File "/Applications/Plone-2.5.5/lib/python/zope/interface/ 
adapter.py", line 481, in subscribers subscribers =  
[subscription(*objects)
	• File "/Applications/Plone-2.5.5/Instance/Products/remember/ 
utils.py", line 98, in fixOwnership ob.fixOwnership()
	• File "/Applications/Plone-2.5.5/Instance/Products/remember/content/ 
member.py", line 115, in fixOwnership user = self.getUser()
	• File "/Applications/Plone-2.5.5/Instance/Products/remember/content/ 
member.py", line 133, in getUser return user.__of__(self)
	• End of upgrade path, migration has finished
	• The upgrade path did NOT reach current version
	• Migration has failed
	• Dry run selected, transaction aborted

Any help would be greatly appreciated.

Kevin

---------------------------------------------------
Kevin Worth <kworth@...>
Senior IT Administrator
Department of Materials Science and Engineering
University of Michigan


Return to date view: threaded or flat