How do I pass dict as parameterlist in Python 1.52 ?

Neal Norwitz neal at metaslash.com
Fri Jan 11 08:52:09 EST 2002


maxm wrote:
> 
> I am writing a product in Zope, and it works fine on Zope 2.4.3 (Python 2.1)
> where I developed it. Now I am testing it on Zope 2.3.3 (Python 1.5.2) To be
> backwards compatible, but When I start the server I get an error:
> 
> manage_addots_UserForm = HTMLFile('manage_addots_UserForm',
>         globals(), **{'formatTypes':ots_User.formatTypes})
>                    ^
>  SyntaxError: invalid syntax

apply(HTMLFile, ('manage_addots_UserForm', globals()),
                {'formatTypes':ots_User.formatTypes})



More information about the Python-list mailing list