Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get rid of collective.js.jqueryui dependency #851

Open
hvelarde opened this issue Feb 28, 2019 · 6 comments
Open

Get rid of collective.js.jqueryui dependency #851

hvelarde opened this issue Feb 28, 2019 · 6 comments

Comments

@hvelarde
Copy link
Member

collective.js.jqueryui is not compatible with Python 3; we need to get rid of this dependency.

$ bin/instance fg
'import warnings' failed; traceback:
Traceback (most recent call last):
  File "/home/hvelarde/collective/buildout.python/python-3.7/lib/python3.7/warnings.py", line 520, in <module>
    _processoptions(sys.warnoptions)
  File "/home/hvelarde/collective/buildout.python/python-3.7/lib/python3.7/warnings.py", line 197, in _processoptions
    _setoption(arg)
  File "/home/hvelarde/collective/buildout.python/python-3.7/lib/python3.7/warnings.py", line 203, in _setoption
    import re
  File "/home/hvelarde/collective/buildout.python/python-3.7/lib/python3.7/re.py", line 122, in <module>
    import enum
ModuleNotFoundError: No module named 'enum'
/home/hvelarde/.buildout/eggs/Zope-4.0b8-py3.7.egg/Zope2/Startup/serve.py:278: DeprecationWarning: 'U' mode is deprecated
/home/hvelarde/.buildout/eggs/Products.PythonScripts-4.2-py3.7.egg/Products/PythonScripts/PythonScript.py:53: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
  import imp  # NOQA
/home/hvelarde/.buildout/eggs/plone.dexterity-2.8.0-py3.7.egg/plone/dexterity/events.py:3: DeprecationWarning: ObjectEvent is deprecated. Import from zope.interface.interfaces
  from zope.component.interfaces import ObjectEvent
/home/hvelarde/.buildout/eggs/Products.CMFUid-3.0.1-py3.7.egg/Products/CMFUid/UniqueIdHandlerTool.py:24: DeprecationWarning: InitializeClass is deprecated. Please import from AccessControl.class_init.
  from App.class_init import InitializeClass
/home/hvelarde/.buildout/eggs/Products.CMFEditions-3.3.0-py3.7.egg/Products/CMFEditions/StandardModifiers.py:46: DeprecationWarning: ComponentLookupError is deprecated. Import from zope.interface.interfaces
  from zope.component.interfaces import ComponentLookupError
2019-02-27 23:17:49,368 WARNI [Init:88][MainThread] Class Products.CMFFormController.ControllerPythonScript.ControllerPythonScript has a security declaration for nonexistent method 'ZPythonScriptHTML_changePrefs'
2019-02-27 23:17:49,373 WARNI [Init:88][MainThread] Class Products.CMFFormController.ControllerValidator.ControllerValidator has a security declaration for nonexistent method 'ZPythonScriptHTML_changePrefs'
/home/hvelarde/.buildout/eggs/Products.CMFPlacefulWorkflow-2.0.0-py3.7.egg/Products/CMFPlacefulWorkflow/permissions.py:5: DeprecationWarning: setDefaultRoles is deprecated. Please use addPermission from AccessControl.Permission.
  from Products.CMFCore.permissions import setDefaultRoles
/home/hvelarde/.buildout/eggs/Products.PluggableAuthService-2.0b2-py3.7.egg/Products/PluggableAuthService/utils.py:253: DeprecationWarning: inspect.getargspec() is deprecated, use inspect.signature() or inspect.getfullargspec()
  args, varargs, kwargs, defaults = inspect.getargspec(wrapped)
/home/hvelarde/.buildout/eggs/Products.PortalTransforms-3.1.5-py3.7.egg/Products/PortalTransforms/libtransforms/retransform.py:25: DeprecationWarning: Flags not at the start of the expression '<script [^>]>.*</scr' (truncated)
  r = re.compile(pat)
/home/hvelarde/.buildout/eggs/Products.PortalTransforms-3.1.5-py3.7.egg/Products/PortalTransforms/libtransforms/retransform.py:25: DeprecationWarning: Flags not at the start of the expression '<style [^>]>.*</styl' (truncated)
  r = re.compile(pat)
/home/hvelarde/.buildout/eggs/Products.PortalTransforms-3.1.5-py3.7.egg/Products/PortalTransforms/libtransforms/retransform.py:25: DeprecationWarning: Flags not at the start of the expression '<head [^>]>.*</head>' (truncated)
  r = re.compile(pat)
/home/hvelarde/.buildout/eggs/Products.PortalTransforms-3.1.5-py3.7.egg/Products/PortalTransforms/libtransforms/retransform.py:25: DeprecationWarning: Flags not at the start of the expression '<[^>]*>(?i)(?m)'
  r = re.compile(pat)
2019-02-27 23:17:49,689 WARNI [ZODB.FileStorage:398][MainThread] Ignoring index for /home/hvelarde/collective/cover/var/filestorage/Data.fs
/home/hvelarde/.buildout/eggs/plone.subrequest-1.9.0-py3.7.egg/plone/subrequest/__init__.py:18: DeprecationWarning: zope.site.hooks has moved to zope.component.hooks. Import of zope.site.hooks will become unsupported in Version 5.0
  from zope.site.hooks import getSite
/home/hvelarde/.buildout/eggs/z3c.caching-2.1-py3.7.egg/z3c/caching/interfaces.py:2: DeprecationWarning: IObjectEvent is deprecated. Import from zope.interface.interfaces
  from zope.component.interfaces import IObjectEvent
/home/hvelarde/.buildout/eggs/z3c.caching-2.1-py3.7.egg/z3c/caching/registry.py:16: DeprecationWarning: IComponents is deprecated. Import from zope.interface.interfaces
  from zope.component.interfaces import IComponents
/home/hvelarde/.buildout/eggs/plone.jsonserializer-0.9.7-py3.7.egg/plone/jsonserializer/serializer/converters.py:37: DeprecationWarning: getSiteEncoding: `getSiteEncoding` is deprecated. Plone only supports UTF-8 currently. This method always returns "utf-8"
  from Products.CMFPlone.utils import getSiteEncoding
/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/config.py:240: DeprecationWarning: IComponentRegistry is deprecated. Import from zope.interface.interfaces
  obj = getattr(mod, oname)
/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/config.py:240: DeprecationWarning: LazyMap is deprecated. Please import from ZTUtils.Lazy.
  obj = getattr(mod, oname)
/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/config.py:240: DeprecationWarning: LazyCat is deprecated. Please import from ZTUtils.Lazy.
  obj = getattr(mod, oname)
/home/hvelarde/.buildout/eggs/plone.app.viewletmanager-3.0.0-py3.7.egg/plone/app/viewletmanager/manager.py:23: DeprecationWarning: Retry is deprecated. Please import from ZPublisher.
  from ZPublisher.Publish import Retry
/home/hvelarde/.buildout/eggs/pyScss-1.3.5-py3.7-linux-x86_64.egg/scss/namespace.py:172: DeprecationWarning: inspect.getargspec() is deprecated, use inspect.signature() or inspect.getfullargspec()
  argspec = inspect.getargspec(function)
/home/hvelarde/.buildout/eggs/pyScss-1.3.5-py3.7-linux-x86_64.egg/scss/selector.py:54: FutureWarning: Possible nested set at position 329
  ''', re.VERBOSE | re.MULTILINE)
/home/hvelarde/.buildout/eggs/plone.portlet.collection-3.3.1-py3.7.egg/plone/portlet/collection/collection.py:2: DeprecationWarning: isDefaultPage is deprecated. Import from Products.CMFPlone instead
  from plone.app.layout.navigation.defaultpage import isDefaultPage
/home/hvelarde/.buildout/eggs/Products.CMFPlone-5.2b1-py3.7.egg/Products/CMFPlone/browser/syndication/views.py:17: DeprecationWarning: wrap_form is deprecated. Import from plone.z3cform.layout instead.
  from plone.app.z3cform.layout import wrap_form
Traceback (most recent call last):
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/xmlconfig.py", line 391, in endElementNS
    self.context.end()
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/config.py", line 703, in end
    self.stack.pop().finish()
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/config.py", line 867, in finish
    args = toargs(context, *self.argdata)
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/config.py", line 1686, in toargs
    args[str(name)] = field.fromUnicode(s)
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/fields.py", line 171, in fromUnicode
    value = self.context.resolve(name)
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/config.py", line 225, in resolve
    __import__(mname)
  File "/home/hvelarde/.buildout/eggs/collective.js.jqueryui-2.0.1-py3.7.egg/collective/js/jqueryui/resources.py", line 88
    except KeyError, e:
                   ^
SyntaxError: invalid syntax

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/hvelarde/collective/cover/parts/instance/bin/interpreter", line 279, in <module>
    exec(compile(__file__f.read(), __file__, "exec"))
  File "/home/hvelarde/.buildout/eggs/Zope-4.0b8-py3.7.egg/Zope2/Startup/serve.py", line 219, in <module>
    sys.exit(main() or 0)
  File "/home/hvelarde/.buildout/eggs/Zope-4.0b8-py3.7.egg/Zope2/Startup/serve.py", line 216, in main
    return command.run()
  File "/home/hvelarde/.buildout/eggs/Zope-4.0b8-py3.7.egg/Zope2/Startup/serve.py", line 183, in run
    global_conf=vars)
  File "/home/hvelarde/.buildout/eggs/Zope-4.0b8-py3.7.egg/Zope2/Startup/serve.py", line 207, in loadapp
    return loadapp(app_spec, name=name, relative_to=relative_to, **kw)
  File "/home/hvelarde/.buildout/eggs/PasteDeploy-2.0.1-py3.7.egg/paste/deploy/loadwsgi.py", line 253, in loadapp
    return loadobj(APP, uri, name=name, **kw)
  File "/home/hvelarde/.buildout/eggs/PasteDeploy-2.0.1-py3.7.egg/paste/deploy/loadwsgi.py", line 278, in loadobj
    return context.create()
  File "/home/hvelarde/.buildout/eggs/PasteDeploy-2.0.1-py3.7.egg/paste/deploy/loadwsgi.py", line 715, in create
    return self.object_type.invoke(self)
  File "/home/hvelarde/.buildout/eggs/PasteDeploy-2.0.1-py3.7.egg/paste/deploy/loadwsgi.py", line 209, in invoke
    app = context.app_context.create()
  File "/home/hvelarde/.buildout/eggs/PasteDeploy-2.0.1-py3.7.egg/paste/deploy/loadwsgi.py", line 715, in create
    return self.object_type.invoke(self)
  File "/home/hvelarde/.buildout/eggs/PasteDeploy-2.0.1-py3.7.egg/paste/deploy/loadwsgi.py", line 152, in invoke
    return fix_call(context.object, context.global_conf, **context.local_conf)
  File "/home/hvelarde/.buildout/eggs/PasteDeploy-2.0.1-py3.7.egg/paste/deploy/util.py", line 55, in fix_call
    val = callable(*args, **kw)
  File "/home/hvelarde/.buildout/eggs/Zope-4.0b8-py3.7.egg/Zope2/Startup/run.py", line 67, in make_wsgi_app
    starter.prepare()
  File "/home/hvelarde/.buildout/eggs/Zope-4.0b8-py3.7.egg/Zope2/Startup/starter.py", line 40, in prepare
    self.startZope()
  File "/home/hvelarde/.buildout/eggs/Zope-4.0b8-py3.7.egg/Zope2/Startup/starter.py", line 96, in startZope
    Zope2.startup_wsgi()
  File "/home/hvelarde/.buildout/eggs/Zope-4.0b8-py3.7.egg/Zope2/__init__.py", line 49, in startup_wsgi
    _startup()
  File "/home/hvelarde/.buildout/eggs/Zope-4.0b8-py3.7.egg/Zope2/App/startup.py", line 142, in startup
    load_zcml()
  File "/home/hvelarde/.buildout/eggs/Zope-4.0b8-py3.7.egg/Zope2/App/startup.py", line 57, in load_zcml
    load_site()
  File "/home/hvelarde/.buildout/eggs/Zope-4.0b8-py3.7.egg/Zope2/App/zcml.py", line 43, in load_site
    _context = xmlconfig.file(site_zcml)
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/xmlconfig.py", line 657, in file
    include(context, name, package)
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/xmlconfig.py", line 557, in include
    processxmlfile(f, context)
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/xmlconfig.py", line 407, in processxmlfile
    parser.parse(src)
  File "/home/hvelarde/collective/buildout.python/parts/opt/lib/python3.7/xml/sax/expatreader.py", line 111, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/home/hvelarde/collective/buildout.python/parts/opt/lib/python3.7/xml/sax/xmlreader.py", line 125, in parse
    self.feed(buffer)
  File "/home/hvelarde/collective/buildout.python/parts/opt/lib/python3.7/xml/sax/expatreader.py", line 217, in feed
    self._parser.Parse(data, isFinal)
  File "/tmp/tmpoeLdnBbuildout-python-3.7-build/Python-3.7.0a4/Modules/pyexpat.c", line 466, in EndElement
  File "/home/hvelarde/collective/buildout.python/parts/opt/lib/python3.7/xml/sax/expatreader.py", line 381, in end_element_ns
    self._cont_handler.endElementNS(pair, None)
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/xmlconfig.py", line 393, in endElementNS
    self._handle_exception(ex, info)
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/xmlconfig.py", line 391, in endElementNS
    self.context.end()
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/config.py", line 703, in end
    self.stack.pop().finish()
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/config.py", line 868, in finish
    actions = self.handler(context, **args)
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/xmlconfig.py", line 557, in include
    processxmlfile(f, context)
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/xmlconfig.py", line 407, in processxmlfile
    parser.parse(src)
  File "/home/hvelarde/collective/buildout.python/parts/opt/lib/python3.7/xml/sax/expatreader.py", line 111, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/home/hvelarde/collective/buildout.python/parts/opt/lib/python3.7/xml/sax/xmlreader.py", line 125, in parse
    self.feed(buffer)
  File "/home/hvelarde/collective/buildout.python/parts/opt/lib/python3.7/xml/sax/expatreader.py", line 217, in feed
    self._parser.Parse(data, isFinal)
  File "/tmp/tmpoeLdnBbuildout-python-3.7-build/Python-3.7.0a4/Modules/pyexpat.c", line 466, in EndElement
  File "/home/hvelarde/collective/buildout.python/parts/opt/lib/python3.7/xml/sax/expatreader.py", line 381, in end_element_ns
    self._cont_handler.endElementNS(pair, None)
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/xmlconfig.py", line 393, in endElementNS
    self._handle_exception(ex, info)
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/xmlconfig.py", line 391, in endElementNS
    self.context.end()
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/config.py", line 703, in end
    self.stack.pop().finish()
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/config.py", line 868, in finish
    actions = self.handler(context, **args)
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/xmlconfig.py", line 557, in include
    processxmlfile(f, context)
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/xmlconfig.py", line 407, in processxmlfile
    parser.parse(src)
  File "/home/hvelarde/collective/buildout.python/parts/opt/lib/python3.7/xml/sax/expatreader.py", line 111, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/home/hvelarde/collective/buildout.python/parts/opt/lib/python3.7/xml/sax/xmlreader.py", line 125, in parse
    self.feed(buffer)
  File "/home/hvelarde/collective/buildout.python/parts/opt/lib/python3.7/xml/sax/expatreader.py", line 217, in feed
    self._parser.Parse(data, isFinal)
  File "/tmp/tmpoeLdnBbuildout-python-3.7-build/Python-3.7.0a4/Modules/pyexpat.c", line 466, in EndElement
  File "/home/hvelarde/collective/buildout.python/parts/opt/lib/python3.7/xml/sax/expatreader.py", line 381, in end_element_ns
    self._cont_handler.endElementNS(pair, None)
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/xmlconfig.py", line 393, in endElementNS
    self._handle_exception(ex, info)
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/xmlconfig.py", line 391, in endElementNS
    self.context.end()
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/config.py", line 703, in end
    self.stack.pop().finish()
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/config.py", line 868, in finish
    actions = self.handler(context, **args)
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/xmlconfig.py", line 557, in include
    processxmlfile(f, context)
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/xmlconfig.py", line 407, in processxmlfile
    parser.parse(src)
  File "/home/hvelarde/collective/buildout.python/parts/opt/lib/python3.7/xml/sax/expatreader.py", line 111, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/home/hvelarde/collective/buildout.python/parts/opt/lib/python3.7/xml/sax/xmlreader.py", line 125, in parse
    self.feed(buffer)
  File "/home/hvelarde/collective/buildout.python/parts/opt/lib/python3.7/xml/sax/expatreader.py", line 217, in feed
    self._parser.Parse(data, isFinal)
  File "/tmp/tmpoeLdnBbuildout-python-3.7-build/Python-3.7.0a4/Modules/pyexpat.c", line 466, in EndElement
  File "/home/hvelarde/collective/buildout.python/parts/opt/lib/python3.7/xml/sax/expatreader.py", line 381, in end_element_ns
    self._cont_handler.endElementNS(pair, None)
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/xmlconfig.py", line 393, in endElementNS
    self._handle_exception(ex, info)
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/xmlconfig.py", line 391, in endElementNS
    self.context.end()
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/config.py", line 703, in end
    self.stack.pop().finish()
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/config.py", line 868, in finish
    actions = self.handler(context, **args)
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/xmlconfig.py", line 557, in include
    processxmlfile(f, context)
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/xmlconfig.py", line 407, in processxmlfile
    parser.parse(src)
  File "/home/hvelarde/collective/buildout.python/parts/opt/lib/python3.7/xml/sax/expatreader.py", line 111, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/home/hvelarde/collective/buildout.python/parts/opt/lib/python3.7/xml/sax/xmlreader.py", line 125, in parse
    self.feed(buffer)
  File "/home/hvelarde/collective/buildout.python/parts/opt/lib/python3.7/xml/sax/expatreader.py", line 217, in feed
    self._parser.Parse(data, isFinal)
  File "/tmp/tmpoeLdnBbuildout-python-3.7-build/Python-3.7.0a4/Modules/pyexpat.c", line 466, in EndElement
  File "/home/hvelarde/collective/buildout.python/parts/opt/lib/python3.7/xml/sax/expatreader.py", line 381, in end_element_ns
    self._cont_handler.endElementNS(pair, None)
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/xmlconfig.py", line 393, in endElementNS
    self._handle_exception(ex, info)
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/xmlconfig.py", line 391, in endElementNS
    self.context.end()
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/config.py", line 703, in end
    self.stack.pop().finish()
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/config.py", line 868, in finish
    actions = self.handler(context, **args)
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/xmlconfig.py", line 557, in include
    processxmlfile(f, context)
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/xmlconfig.py", line 407, in processxmlfile
    parser.parse(src)
  File "/home/hvelarde/collective/buildout.python/parts/opt/lib/python3.7/xml/sax/expatreader.py", line 111, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/home/hvelarde/collective/buildout.python/parts/opt/lib/python3.7/xml/sax/xmlreader.py", line 125, in parse
    self.feed(buffer)
  File "/home/hvelarde/collective/buildout.python/parts/opt/lib/python3.7/xml/sax/expatreader.py", line 217, in feed
    self._parser.Parse(data, isFinal)
  File "/tmp/tmpoeLdnBbuildout-python-3.7-build/Python-3.7.0a4/Modules/pyexpat.c", line 466, in EndElement
  File "/home/hvelarde/collective/buildout.python/parts/opt/lib/python3.7/xml/sax/expatreader.py", line 381, in end_element_ns
    self._cont_handler.endElementNS(pair, None)
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/xmlconfig.py", line 393, in endElementNS
    self._handle_exception(ex, info)
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/xmlconfig.py", line 391, in endElementNS
    self.context.end()
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/config.py", line 703, in end
    self.stack.pop().finish()
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/config.py", line 868, in finish
    actions = self.handler(context, **args)
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/xmlconfig.py", line 557, in include
    processxmlfile(f, context)
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/xmlconfig.py", line 407, in processxmlfile
    parser.parse(src)
  File "/home/hvelarde/collective/buildout.python/parts/opt/lib/python3.7/xml/sax/expatreader.py", line 111, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/home/hvelarde/collective/buildout.python/parts/opt/lib/python3.7/xml/sax/xmlreader.py", line 125, in parse
    self.feed(buffer)
  File "/home/hvelarde/collective/buildout.python/parts/opt/lib/python3.7/xml/sax/expatreader.py", line 217, in feed
    self._parser.Parse(data, isFinal)
  File "/tmp/tmpoeLdnBbuildout-python-3.7-build/Python-3.7.0a4/Modules/pyexpat.c", line 466, in EndElement
  File "/home/hvelarde/collective/buildout.python/parts/opt/lib/python3.7/xml/sax/expatreader.py", line 381, in end_element_ns
    self._cont_handler.endElementNS(pair, None)
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/xmlconfig.py", line 393, in endElementNS
    self._handle_exception(ex, info)
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/xmlconfig.py", line 391, in endElementNS
    self.context.end()
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/config.py", line 703, in end
    self.stack.pop().finish()
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/config.py", line 868, in finish
    actions = self.handler(context, **args)
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/xmlconfig.py", line 557, in include
    processxmlfile(f, context)
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/xmlconfig.py", line 407, in processxmlfile
    parser.parse(src)
  File "/home/hvelarde/collective/buildout.python/parts/opt/lib/python3.7/xml/sax/expatreader.py", line 111, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/home/hvelarde/collective/buildout.python/parts/opt/lib/python3.7/xml/sax/xmlreader.py", line 125, in parse
    self.feed(buffer)
  File "/home/hvelarde/collective/buildout.python/parts/opt/lib/python3.7/xml/sax/expatreader.py", line 217, in feed
    self._parser.Parse(data, isFinal)
  File "/tmp/tmpoeLdnBbuildout-python-3.7-build/Python-3.7.0a4/Modules/pyexpat.c", line 466, in EndElement
  File "/home/hvelarde/collective/buildout.python/parts/opt/lib/python3.7/xml/sax/expatreader.py", line 381, in end_element_ns
    self._cont_handler.endElementNS(pair, None)
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/xmlconfig.py", line 393, in endElementNS
    self._handle_exception(ex, info)
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/xmlconfig.py", line 391, in endElementNS
    self.context.end()
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/config.py", line 703, in end
    self.stack.pop().finish()
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/config.py", line 868, in finish
    actions = self.handler(context, **args)
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/xmlconfig.py", line 557, in include
    processxmlfile(f, context)
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/xmlconfig.py", line 407, in processxmlfile
    parser.parse(src)
  File "/home/hvelarde/collective/buildout.python/parts/opt/lib/python3.7/xml/sax/expatreader.py", line 111, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/home/hvelarde/collective/buildout.python/parts/opt/lib/python3.7/xml/sax/xmlreader.py", line 125, in parse
    self.feed(buffer)
  File "/home/hvelarde/collective/buildout.python/parts/opt/lib/python3.7/xml/sax/expatreader.py", line 217, in feed
    self._parser.Parse(data, isFinal)
  File "/tmp/tmpoeLdnBbuildout-python-3.7-build/Python-3.7.0a4/Modules/pyexpat.c", line 466, in EndElement
  File "/home/hvelarde/collective/buildout.python/parts/opt/lib/python3.7/xml/sax/expatreader.py", line 381, in end_element_ns
    self._cont_handler.endElementNS(pair, None)
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/xmlconfig.py", line 393, in endElementNS
    self._handle_exception(ex, info)
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/xmlconfig.py", line 391, in endElementNS
    self.context.end()
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/config.py", line 703, in end
    self.stack.pop().finish()
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/config.py", line 868, in finish
    actions = self.handler(context, **args)
  File "/home/hvelarde/.buildout/eggs/z3c.autoinclude-0.3.8-py3.7.egg/z3c/autoinclude/zcml.py", line 104, in includePluginsDirective
    includeZCMLGroup(_context, info, filename)
  File "/home/hvelarde/.buildout/eggs/z3c.autoinclude-0.3.8-py3.7.egg/z3c/autoinclude/zcml.py", line 30, in includeZCMLGroup
    include(_context, filename, includable_package)
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/xmlconfig.py", line 557, in include
    processxmlfile(f, context)
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/xmlconfig.py", line 407, in processxmlfile
    parser.parse(src)
  File "/home/hvelarde/collective/buildout.python/parts/opt/lib/python3.7/xml/sax/expatreader.py", line 111, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/home/hvelarde/collective/buildout.python/parts/opt/lib/python3.7/xml/sax/xmlreader.py", line 125, in parse
    self.feed(buffer)
  File "/home/hvelarde/collective/buildout.python/parts/opt/lib/python3.7/xml/sax/expatreader.py", line 217, in feed
    self._parser.Parse(data, isFinal)
  File "/tmp/tmpoeLdnBbuildout-python-3.7-build/Python-3.7.0a4/Modules/pyexpat.c", line 466, in EndElement
  File "/home/hvelarde/collective/buildout.python/parts/opt/lib/python3.7/xml/sax/expatreader.py", line 381, in end_element_ns
    self._cont_handler.endElementNS(pair, None)
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/xmlconfig.py", line 393, in endElementNS
    self._handle_exception(ex, info)
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/xmlconfig.py", line 391, in endElementNS
    self.context.end()
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/config.py", line 703, in end
    self.stack.pop().finish()
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/config.py", line 868, in finish
    actions = self.handler(context, **args)
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/xmlconfig.py", line 557, in include
    processxmlfile(f, context)
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/xmlconfig.py", line 407, in processxmlfile
    parser.parse(src)
  File "/home/hvelarde/collective/buildout.python/parts/opt/lib/python3.7/xml/sax/expatreader.py", line 111, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/home/hvelarde/collective/buildout.python/parts/opt/lib/python3.7/xml/sax/xmlreader.py", line 125, in parse
    self.feed(buffer)
  File "/home/hvelarde/collective/buildout.python/parts/opt/lib/python3.7/xml/sax/expatreader.py", line 217, in feed
    self._parser.Parse(data, isFinal)
  File "/tmp/tmpoeLdnBbuildout-python-3.7-build/Python-3.7.0a4/Modules/pyexpat.c", line 466, in EndElement
  File "/home/hvelarde/collective/buildout.python/parts/opt/lib/python3.7/xml/sax/expatreader.py", line 381, in end_element_ns
    self._cont_handler.endElementNS(pair, None)
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/xmlconfig.py", line 393, in endElementNS
    self._handle_exception(ex, info)
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/xmlconfig.py", line 235, in _handle_exception
    reraise(exc, None, sys.exc_info()[2])
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/_compat.py", line 30, in reraise
    raise value.with_traceback(tb)
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/xmlconfig.py", line 391, in endElementNS
    self.context.end()
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/config.py", line 703, in end
    self.stack.pop().finish()
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/config.py", line 867, in finish
    args = toargs(context, *self.argdata)
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/config.py", line 1686, in toargs
    args[str(name)] = field.fromUnicode(s)
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/fields.py", line 171, in fromUnicode
    value = self.context.resolve(name)
  File "/home/hvelarde/.buildout/eggs/zope.configuration-4.3.0-py3.7.egg/zope/configuration/config.py", line 225, in resolve
    __import__(mname)
zope.configuration.xmlconfig.ZopeXMLConfigurationError: File "/home/hvelarde/.buildout/eggs/collective.js.jqueryui-2.0.1-py3.7.egg/collective/js/jqueryui/plone.zcml", line 46.2-51.6
    File "/home/hvelarde/collective/cover/parts/instance/etc/site.zcml", line 15.2-15.55
    File "/home/hvelarde/collective/cover/parts/instance/etc/package-includes/002-collective.cover-configure.zcml", line 1.0-1.60
    File "/home/hvelarde/collective/cover/src/collective/cover/configure.zcml", line 14.2-14.40
    File "/home/hvelarde/.buildout/eggs/plone.app.blocks-4.3.0-py3.7.egg/plone/app/blocks/configure.zcml", line 19.4-19.44
    File "/home/hvelarde/.buildout/eggs/plone.app.registry-1.7.3-py3.7.egg/plone/app/registry/configure.zcml", line 12.4-12.34
    File "/home/hvelarde/.buildout/eggs/plone.app.registry-1.7.3-py3.7.egg/plone/app/registry/browser/configure.zcml", line 6.4-6.43
    File "/home/hvelarde/.buildout/eggs/plone.app.z3cform-3.0.9-py3.7.egg/plone/app/z3cform/configure.zcml", line 10.2-10.41
    File "/home/hvelarde/.buildout/eggs/plone.app.widgets-2.4.1-py3.7.egg/plone/app/widgets/configure.zcml", line 12.2-12.41
    File "/home/hvelarde/.buildout/eggs/Products.CMFPlone-5.2b1-py3.7.egg/Products/CMFPlone/configure.zcml", line 110.2-114.8
    File "/home/hvelarde/.buildout/eggs/collective.js.jqueryui-2.0.1-py3.7.egg/collective/js/jqueryui/configure.zcml", line 7.4-7.33
    SyntaxError: invalid syntax
                       ^

        except KeyError, e:

      File "/home/hvelarde/.buildout/eggs/collective.js.jqueryui-2.0.1-py3.7.egg/collective/js/jqueryui/resources.py", line 88
@hvelarde
Copy link
Member Author

collective.js.jqueryui is now compatible with Python 3:

collective/collective.js.jqueryui#40

we must pin >= 2.1.2.

@hvelarde
Copy link
Member Author

seems collective.js.jqueryui is still not fully compatible with Plone 5.2; when installing collective.cover I get the following error:

Traceback (innermost last):
  Module ZPublisher.WSGIPublisher, line 128, in transaction_pubevents
  Module ZPublisher.WSGIPublisher, line 276, in publish_module
  Module ZPublisher.WSGIPublisher, line 210, in publish
  Module ZPublisher.mapply, line 85, in mapply
  Module ZPublisher.WSGIPublisher, line 57, in call_object
  Module Products.CMFPlone.controlpanel.browser.quickinstaller, line 689, in __call__
  Module Products.CMFPlone.controlpanel.browser.quickinstaller, line 454, in install_product
  Module Products.GenericSetup.tool, line 391, in runAllImportStepsFromProfile
   - __traceback_info__: profile-collective.cover:default
  Module Products.GenericSetup.tool, line 1463, in _runImportStepsFromContext
  Module Products.GenericSetup.tool, line 1275, in _doRunImportStep
   - __traceback_info__: plone.app.registry
  Module plone.app.registry.exportimport.handler, line 79, in importRegistry
   - __traceback_info__: registry.xml
  Module plone.app.registry.exportimport.handler, line 127, in importDocument
  Module plone.app.registry.exportimport.handler, line 414, in importRecords
   - __traceback_info__: records name: collective.js.jqueryui.controlpanel.IJQueryUIPlugins
  Module plone.app.registry.exportimport.handler, line 331, in importRecord
   - __traceback_info__: record name: collective.js.jqueryui.controlpanel.IJQueryUIPlugins.ui_core
  Module plone.registry.record, line 90, in _set_value
  Module zope.event, line 32, in notify
  Module zope.component.event, line 27, in dispatch
  Module zope.component._api, line 124, in subscribers
  Module zope.interface.registry, line 442, in subscribers
  Module zope.interface.adapter, line 607, in subscribers
  Module plone.registry.events, line 62, in redispatchInterfaceAwareRecordEvents
  Module zope.component._api, line 124, in subscribers
  Module zope.interface.registry, line 442, in subscribers
  Module zope.interface.adapter, line 607, in subscribers
  Module collective.js.jqueryui.controlpanel, line 290, in cook_js_resources
AttributeError: 'RequestContainer' object has no attribute 'portal_javascripts'

@wesleybl
Copy link
Member

Well, maybe we can make collective.js.jqueryui fully compatible with Python 3.

@hvelarde
Copy link
Member Author

it doesn't make sense; you have Webpack now and a lot of new resources to develop in JS.

we better get rid of jQuery.

@wesleybl
Copy link
Member

What I'm thinking is to reduce conflicts in portals that use collective.js.jqueryui

@hvelarde
Copy link
Member Author

hvelarde commented Sep 28, 2021

it doesn't matter; just remove the dependency of cover on this package. you can follow the same approach we did when removing, for instance, the dependency on plone.app.relationfield on #809.

obviously this has more work involved because you need to replace what is done with jQueryUI with some custom JS code, but is not too difficult and in the long run is the way to go.

what @rodfersou and I were thinking at the time was to use Vue to rewrite all the UI code of this package.

I think jQueryUI is just used on a couple of places on the UI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants