You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like set_*_resources expects each resource as a new positional argument. To fix, change all the .resources.default_resources to sequences and use * as below.
Hey Daniel. Would you kindly send a pull request, it's not entirely clear to me what the changes need to look like. Also, can you specify which version of deform we're targeting with this change. Thanks.
It looks like set_*_resources expects each resource as a new positional argument. To fix, change all the .resources.default_resources to sequences and use * as below.
http://deform.readthedocs.org/en/latest/api.html#deform.widget.ResourceRegistry.set_css_resources
deform_bootstrap.init:
def add_resources_to_registry():
"""
Register deform_bootstrap widget specific requirements to deform's
default resource registry
"""
registry = Form.default_resource_registry
for rqrt, versions in default_resources.items():
for version, resources in versions.items():
registry.set_js_resources(rqrt, version, *resources.get('js'))
registry.set_css_resources(rqrt, version, *resources.get('css'))
The text was updated successfully, but these errors were encountered: