#60 — Plone 3 support with ATVM 1.6.0a1

by Gilles Lenfant last modified Jun 21, 2011 12:14 PM
State Unconfirmed
Version:
Area Functionality
Issue type Bug
Severity Medium
Submitted by Gilles Lenfant
Submitted on Jan 08, 2011
Responsible
Target release:
Hi,

Sorry, I can't mention the version on that ticket.

I need import/export GS features of the new 1.6 release. ATVM 1.6.0a1, the latest release that's already 6 months old does not work with Plone 3, at least with Plone 3.3.5. Though the doc says it supports "Plone 3.1+".

Starting Plone raises an error. Here are the interesting lines of the traceback :

2011-01-08 17:53:26 ERROR Application Couldn't install ATVocabularyManager
Traceback (most recent call last):
  File "/Users/glenfant/zope/instances/marketsurfer/parts/zope2/lib/python/OFS/Application.py", line 786, in install_product
    initmethod(context)
  File "/Users/glenfant/zope/instances/marketsurfer/eggs/Products.ATVocabularyManager-1.6.0a1-py2.4.egg/Products/ATVocabularyManager/__init__.py", line 27, in initialize
    PROJECTNAME)

[...]

  File "/Users/glenfant/zope/instances/marketsurfer/parts/zope2/lib/python/Interface/Implements.py", line 95, in visitImplements
    raise Exceptions.BadImplements(
Interface.Exceptions.BadImplements: __implements__ should be an interface or tuple,
            not a InterfaceClass

So either Plone 3.x is not supported anymore from ATVM 1.6+ and this should be mentioned in the README / Product page on Pypi, either this is a bug.
Steps to reproduce:
Add this in your buildout :

---------
[buildout]
# Buildout for Plone 3.3.5
...
versions = versions
...
[instance]
...
eggs =
    ...
    Products.ATVocabularyManager
    ...
[versions]
...
Products.ATVocabularyManager = 1.6.0a1
...
---------

Re-run buildout, restart your instance in foreground
Added by Marco Mariani on Jun 14, 2011 12:38 PM
Works for me with this patch:

  --- a/ATVocabularyManager/backports.py
  +++ b/ATVocabularyManager/backports.py
  @@ -2,7 +2,11 @@
   #
   # BSD-like licence, see LICENCE.txt
   #
  -from zope.interface import Interface
  +
  +try:
  + from Interface import Interface
  +except ImportError:
  + from zope.interface import Interface
   
   class IVocabularyTerm(Interface):
       """A VocabularyTerm has a value (which is used to


hope it can be included in 1.6.2dev
Added by Luca Fabbri on Jun 21, 2011 12:14 PM
Seems that the 1.6 is for Plone 4 only (documentation is wrong), while the 1.5 is for Plone 3 and also support GS import steps.

This is right?

No responses can be added.