[Zope] ZopeXMLMethods installation woes

Kees de Brabander cj.de.brabander at hccnet.nl
Tue Nov 30 16:44:44 EST 2004


This is the same problem I reported a few weeks ago on this list. It
surfaced for the first time in Zope 2.7.3. Zope 2.7.2 still was not
affected.
cb
----- Original Message ----- 
From: "Marco Bizzarri" <m.bizzarri at icube.it>
To: "Ken Ara" <feedreader at yahoo.com>
Cc: <zope at zope.org>
Sent: Tuesday, November 30, 2004 3:58 PM
Subject: Re: [Zope] ZopeXMLMethods installation woes


> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Ken Ara wrote:
> | Once again, thank you Dieter and others who have had
> | the patience to help me learn. I searched a lot but
> | never did find out where one should install third
> | party Python modules. It is often mentioned that they
> | should be installed using the same Python that runs
> | Zope, but not where to install!
> |
> | I installed 4Suite and Py-XML into my SOFTWARE_HOME.
> | Now I can import the 4Suite modules from the command
> | line using Zope's python.
> |
> | But when I ran the tests that come with
> | ZopeXMLMethods, the product is still unable to import
> | the necessary modules.
> |
> | Maybe this is linked to the other, _new_ problem I
> | have:
> |
>
> The problem I suspect is that ZopeXMLMethod is not yet been ported to
> the 2.7.x series. Indeed, it uses something which was feasible in Zope
> 2.6.x, which is no more allowed in Zope 2.7.x
>
> The problem is in the __init__.py inside ZopeXMLMethod, since it uses
> the methods dictionary to make the availableProcessors method globally
> avaialbe.
>
> Try the enclosed patch... We had a similar problem with our product
> PAFlow (look in the archives)
>
> Regards
> Marco
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.4 (GNU/Linux)
> Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
>
> iD8DBQFBrIqDXhfyAQQVoaIRArSWAJ0e+jF6DdhJRG7LFCol9LnBwxwRIQCdF8n4
> 2FKmoHUWY5HRUvv+8LdVlwg=
> =+tmm
> -----END PGP SIGNATURE-----
>


----------------------------------------------------------------------------
----


> --- __init__.py.dist 2004-11-30 15:55:06.000000000 +0100
> +++ __init__.py 2004-11-30 15:56:05.000000000 +0100
> @@ -18,6 +18,7 @@
>
>  from XSLTMethod import manage_addXSLTMethod, \
>       manage_addXSLTMethodForm, addXSLTMethod
> +from XSLTMethod.XSLTMethod import availableProcessors
>  from CacheManager import manage_addXMLMethodCacheManagerForm, \
>       manage_addXMLMethodCacheManager, addXMLMethodCacheManager
>
> @@ -41,7 +42,8 @@
>          context.registerClass( CacheManager.CacheManager,
>                                 constructors = (
manage_addXMLMethodCacheManagerForm,
>
manage_addXMLMethodCacheManager,
> -
addXMLMethodCacheManager),
> +                                                addXMLMethodCacheManager,
> + availableProcessors),
>                                 icon = 'www/cache.gif' )
>
>          context.registerHelp()
>


----------------------------------------------------------------------------
----


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



More information about the Zope mailing list