[Zope] ZopeXMLMethods installation woes

garry saddington garry at scholarpack.org
Wed Dec 1 11:53:00 EST 2004


On Wednesday 01 December 2004 15:37, Ken Ara wrote:
> 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:
Exactly the same happened to me.
regards
garry
> 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
>
>
> _______________________________________________
> 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