Formulator and CMF version 2

Charlie Clark <[email protected]> Fri, 13 Oct 2006 18:09:51 +0200
Newsgroups gmane.comp.web.zope.formulator.devel
Message-ID <[email protected]>
Hi,

out of the box Formulator does not work with CMF version 2 because =20
FSForm imports two things (View and expand_path) from modules that =20
have changed between CMF v1.6 and CMF v2

While I've come up with a way of identifying which version of the CMF =20=

is running I guess the problem is actually in Formulator itself. =20
Looking at __init__.py FSForm should not be imported if CMFCore is =20
detected but this *does* happen

try:
     import Products.FileSystemSite
except ImportError:
     try:
         import Products.CMFCore
     except ImportError:
         pass
     else:
         import FSForm
else:
     import FSForm

I think this should be

try:
     import Products.FileSystemSite
except ImportError:
     try:
         import Products.CMFCore
     except ImportError:
         import FSForm
else:
     import FSForm

Which seems to solve the problem.

Charlie
--
Charlie Clark
Helmholtzstr. 20
D=FCsseldorf
D- 40215
Tel: +49-211-938-5360
GSM: +49-178-782-6226