plomino / Plomino

Powerful and flexible web-based application builder
33 stars 37 forks source link

Migrating from 1.15 to 1.19.6 and finally to 2.0 #835

Open ermancio opened 6 years ago

ermancio commented 6 years ago

Hi, I'm trying to migrate my Plomino database from 1.15 (in Plone 4.2) to 1.19.6 (in Plone 4.3). I imported it and I did the same with users and rights. When I try to visualize my Form (or my View) with any user, I have the following error:

**URL: ActionBar
Line 77, Column 2**
Expression: <PythonExpr [(act, parent_id) for act, parent_id in owner.getActions(here, True, owner.id) if act.getInActionBar()==True]>
Names:

{'container': <PloneSite at /Pratiche>,
 'context': <PlominoForm at /Pratiche/pratiche/pratica>,
 'default': <object object at 0x7f538f553560>,
 'here': <PlominoForm at /Pratiche/pratiche/pratica>,
 'loop': {},
 'nothing': None,
 'options': {'args': ()},
 'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0x7f537c54f680>,
 'request': <HTTPRequest, URL=http://localhost:8080/Pratiche/pratiche/pratica/OpenForm>,
 'root': <Application at >,
 'template': <ZopePageTemplate at /Pratiche/OpenForm used for /Pratiche/pratiche/pratica>,
 'traverse_subpath': [],
 'user': <PropertiedUser 'admin'>}

Module Products.PageTemplates.ZRPythonExpr, line 48, in __call__
__traceback_info__: [(act, parent_id) for act, parent_id in owner.getActions(here, True, owner.id) if act.getInActionBar()==True]
Module PythonExpr, line 1, in <expression>

TypeError: getActions() takes at most 3 arguments (4 given)

Some hint?

ermancio commented 6 years ago

I forgot to say that I also migrated from Plone 4.2 to Plone 4.3.14 following the instructions in https://github.com/plomino/Plomino/wiki/HOW-TO-migrate-from-Plomino-1-to-Plomino-2 So the question is: is it necessary to migrate from Plone 4.2 to Plone 4.3 for migrating to Plomino 2.0? Or is it enough to migrate from Plomino 1.5 to Plomino 1.19 within Plone 4.2 and then upgrade to Plone 5?