[Zope-CMF] ActionProviderBase fix for migration problem

Christian Heimes heimes at faho.rwth-aachen.de
Wed Mar 10 17:56:38 EST 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello!

Some people reported migration problems for migration from plone using
an older version of CMF to plone 2 with CMF 1.4.2. The flag 'visible'
isn't an integer or isn't convertable to an int with int() in some
cases. This code sometimes breaks when called form
TypesTool:_convertActions()

ActionProviderBase:addAction()
~    [...]
~        new_action = ActionInformation( id=str(id)
~                                      , title=str(name)
~                                      , action=a_expr
~                                      , condition=c_expr
~                                      , permissions=permission
~                                      , category=str(category)
~                                      , visible=int(visible)
~                                      )

I would like to chance 'visible=int(visible)' to 'not not visible'. The
bool() method would be nicer but it's not available in python 2.1

Christian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Debian - http://enigmail.mozdev.org

iD8DBQFAT50m9aLWrfOU0PgRAuZWAKC8zEY1HvSaY1/mlVUeijV+17JNGACeOcMg
p6Jd3yWYTzGTe+JBE5hybhA=
=F/+T
-----END PGP SIGNATURE-----




More information about the Zope-CMF mailing list