-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Andrew Watkins wrote:

> We have a legacy web service that is running on Zope 2.6.2 with
> Python 2.3.3
> 
> For various reasons - security, maintenance etc we have decide to try
> migrating this forward to a current version of python and zope. e.g.
> Python 2.6 + Zope 2.12.2
> 
> I have a new clean SUSE linux 11 installation with the correct
> python, setuptools and I am using virtualenv to create a sandbox
> 
> I have installed the zope 2.12.2 and configured it in much the same
> way as the older system - (zeo with two data files, + 1 zope
> instance.)
> 
> All is good and I can start up the instance and access the management
> pages.
> 
> My next step is to get the Products list that we were using running.
> Here I have run into two problems 1. ExternalFile This fails to load
> with the error 'ImportError: No module named Interface'  (stack trace
> below) I tested this with zope 2.11.4 and it works ok.

You will eed to patch ExternalFile to use Zope3-style interfaces.  E.g.,
instead of:

  from Interface import Interface

patch it to be:

  from zope.interface import Interface

Their may be other changes required, as well, depending on how the
product uses the interfaces.  (Later:  I've done the patch, at least to
the extent of getting the appserver to start:  see attachment).

> 2. ZMySQLDA This fails with the message 'ImportError: No module named
> _mysql' again this works ok on zope 2.11.4

You need to install the MySQL-python package into your virtuaenv:

  $ bin/easy_install MySQL-python

> So I guess there is a key step that I am missing out or a path, or
> installation that is required. The main difference is that 2.12 is
> installed using virtualenv and then easy_install
> 
> e.g. bin/easy_install -i http://download.zope.org/Zope2/index/2.12.2
> Zope2
> 
> Are there known incompatabilities with these Products ?  or is my
> installation just not quite right.

The ExternalFile product is quite old, and could likely use a maintainer
to keep it up to date.  I haven't seen Craeg Strong (the author) around
in Zopeland for quite some time:  he might be happy to hand it over to
you as a person who still needs to have the product work.


Tres.
- --
===================================================================
Tres Seaver          +1 540-429-0999          tsea...@palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkuZBqMACgkQ+gerLs4ltQ7iEwCdEd6cK5kdQeca99TcNcyRxliG
mFsAoMrhzX4LaHA6tram/qp231jaUZ1l
=Tla2
-----END PGP SIGNATURE-----
=== modified file 'ExternalFile.py'
--- ExternalFile.py	2010-03-11 14:26:01 +0000
+++ ExternalFile.py	2010-03-11 14:28:28 +0000
@@ -33,6 +33,7 @@
                                        # traversal, acquisition, and persistence
 from Products.ZCatalog.CatalogAwareness import CatalogAware # Reqd for ZCatalog support
 from OFS.PropertyManager import PropertyManager  # Reqd for proper property mgmt
+from zope.interface import implements
 from IExternalFile import IExternalFile
 
 # Local modules
@@ -117,7 +118,7 @@
     meta_type = 'External File' # This is the name Zope will use for
                                 # the Product in the "addProduct" list
 
-    __implements__ = IExternalFile
+    implements(IExternalFile)
 
     behave_like_list    = [ 'DTMLDocument', 'DTMLMethod', 'File', 'Image', 'PageTemplate'  ]
 

=== modified file 'IExternalFile.py'
--- IExternalFile.py	2010-03-11 14:26:01 +0000
+++ IExternalFile.py	2010-03-11 14:27:56 +0000
@@ -13,13 +13,13 @@
 __version__ = '$Revision: 1.7 $'[10:-2]
 
 # Zope Base Classes
-from Interface import Base
+from zope.interface import Interface
 
 ################################################################
 # IExternalFile interface
 ################################################################
 
-class IExternalFile(Base):
+class IExternalFile(Interface):
     """
     Encapsulates a file in the filesystem as a Zope object.
     """

_______________________________________________
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to