[Zope] ZopeXMLMethods installation woes
Ken Ara
feedreader at yahoo.com
Wed Dec 1 10:37:20 EST 2004
Marco,
Thank you for the patch. I was unable to apply it
using the patch program, but carefully copied the
changes to __init__.py. Then I tried to refresh the
ZopeXMLMethods product. This failed... here's the
traceback:
An exception occurred during the last refresh.
Exception type: ImportError
Exception value: No module named XSLTMethod
Traceback (most recent call last):
File
"/usr/local/www/Zope/lib/python/App/RefreshFuncs.py",
line 182, in performSafeRefresh
if not performRefresh(jar, productid):
File
"/usr/local/www/Zope/lib/python/App/RefreshFuncs.py",
line 169, in performRefresh
Application.reimport_product(productid)
File
"/usr/local/www/Zope/lib/python/OFS/Application.py",
line 863, in reimport_product
raise_exc=1, log_exc=0)
File
"/usr/local/www/Zope/lib/python/OFS/Application.py",
line 660, in import_product
product=__import__(pname, global_dict,
global_dict, silly)
File
"/usr/local/www/Zope/Products/ZopeXMLMethods/__init__.py",
line 21, in ?
from XSLTMethod.XSLTMethod import
availableProcessors
ImportError: No module named XSLTMethod
---
I think it is not complaining about the XSLTMethod.py
module itself, rather the XSLTMethod class within the
XSLTMethod module. If so, what is the proper
incantation?
Ken
--- Marco Bizzarri <m.bizzarri at icube.it> wrote:
>
> 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()
>
__________________________________
Do you Yahoo!?
Meet the all-new My Yahoo! - Try it today!
http://my.yahoo.com
More information about the Zope
mailing list