Skip to content

Commit

Permalink
updated version check for Plone 5.x
Browse files Browse the repository at this point in the history
  • Loading branch information
agitator committed Jul 13, 2016
1 parent c2d3c2c commit 94ad48d
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions Products/PloneFormGen/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,9 @@
raise

# Check for Plone versions
try:
from plone.app.upgrade import v41
v41 # pyflakes
except ImportError:
logger.error("PloneFormGen requires Plone >= 4.1.")
raise
from Products.CMFPlone import __version__
if __version__ > 4:
raise Exception("This version of PloneFormGen requires Plone >= 5")


from Products.Archetypes.public import process_types, listTypes
Expand Down

0 comments on commit 94ad48d

Please sign in to comment.