Skip to content

Commit

Permalink
Merge pull request #104 from plone/petschki-dependency
Browse files Browse the repository at this point in the history
Remove dependency on `plone.app.z3cform`
  • Loading branch information
gforcada authored Jun 30, 2023
2 parents f039aad + fd61e7f commit cd01589
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 2 additions & 0 deletions news/104.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Remove dependency on `plone.app.z3cform` which is circular.
[petschki]
6 changes: 2 additions & 4 deletions plone/schemaeditor/schema.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from plone.app.z3cform.interfaces import IDateField
from plone.app.z3cform.interfaces import IDatetimeField
from plone.schemaeditor import _
from zope import schema
from zope.interface import alsoProvides
Expand Down Expand Up @@ -31,7 +29,7 @@ class IFloat(interfaces.IFloat, interfaces.IFromUnicode):
)


class IDatetime(IDatetimeField):
class IDatetime(interfaces.IDatetime):
min = schema.Datetime(
title=interfaces.IDatetime["min"].title,
required=interfaces.IDatetime["min"].required,
Expand All @@ -45,7 +43,7 @@ class IDatetime(IDatetimeField):
)


class IDate(IDateField):
class IDate(interfaces.IDate):
min = schema.Date(
title=interfaces.IDate["min"].title,
required=interfaces.IDate["min"].required,
Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
"zope.publisher",
"z3c.form",
"plone.z3cform",
"plone.app.z3cform",
"plone.autoform",
],
extras_require={
Expand Down

0 comments on commit cd01589

Please sign in to comment.