Skip to content

Commit

Permalink
restored the target argument of find_spec
Browse files Browse the repository at this point in the history
  • Loading branch information
mdipierro committed Jul 1, 2024
1 parent abbb265 commit 06431fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion py4web/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1794,7 +1794,7 @@ def __init__(self, pkg, pkg_alias="apps"):
# register as path finder
sys.meta_path.append(self)

def find_spec(self, fullname, path=None):
def find_spec(self, fullname, path=None, target=None):
"""Loads the spec for the module at fullname"""
if fullname == self.pkg_alias and path is None:
spec = importlib.util.find_spec(self.pkg)
Expand Down
2 changes: 1 addition & 1 deletion py4web/utils/form.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def get_options(validators):
options = item.options
break
if callable(options):
options = options()
options = options(zero=True)
return options


Expand Down

0 comments on commit 06431fc

Please sign in to comment.