Skip to content

Commit

Permalink
check for dexterity on IDexterityContent
Browse files Browse the repository at this point in the history
  • Loading branch information
thet committed Feb 27, 2015
1 parent 1362e54 commit 49a3900
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions collective/jsonify/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,14 +419,13 @@ def get_dexterity_fields(self):
"""If dexterity is used then extract fields.
"""
try:
from plone.dexterity.interfaces import IDexterityContent
if not IDexterityContent.providedBy(self.context):
return
from plone.dexterity.utils import iterSchemata
# from plone.uuid.interfaces import IUUID
from zope.schema import getFieldsInOrder
from datetime import date
from plone.directives import form

if not form.Schema.providedBy(self.context):
return
except:
return

Expand Down

0 comments on commit 49a3900

Please sign in to comment.