Submitted by : simon at: 2003-10-26T21:31:48+00:00 (14 years ago)
Name :
Category : Severity : Status :
Optional subject :  
Optional comment :

When testing the installation External Method, I get an AttributeError?: portal_types on line 48:

typestool = getToolByName(self, portal_types)

I'm using Zope 2.5.1 with Python 2.1.3 on Debian/GNU Linux 3.0r0

Traceback:

Traceback (innermost last):
  File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 150, in publishmodule
  File /home/zcustomers/www/zope/Products/Localizer/__init__.py, line 65, in new_publish
  File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 114, in publish
  File /usr/lib/zope/lib/python/Zope/__init__.py, line 159, in zpublisher_exception_hook
    (Object: Zope)
  File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 98, in publish
  File /usr/lib/zope/lib/python/ZPublisher/mapply.py, line 88, in mapply
    (Object: install_zwiki)
  File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 39, in call_object
    (Object: install_zwiki)
  File /usr/lib/zope/lib/python/Products/ExternalMethod/ExternalMethod.py, line 198, in __call_
    (Object: install_zwiki)
    (Info: ((<Application instance at 8b94268>,), {}, None))
  File /home/zcustomers/www/zope/Products/ZWiki/Extensions/cmf_install_zwiki.py, line 48, in install
    (Object: Zope)
  File /home/zcustomers/www/zope/Products/CMFCore/utils.py, line 97, in getToolByName
    (Object: Zope)
AttributeError: (see above)

SimonMichael, 2002/12/19 23:41 GMT (via web):
You need to call the external method in the context of the CMF site: visit CMF_SITE_URL/cmf_install_zwiki.

SimonMichael, 2002/12/19 23:43 GMT (via web):
Zwiki and Plone gets this right, but I see the docstring in the method is wrong. I'll fix it.

fixed for 0.18 --SimonMichael, 2003/04/02 23:14 GMT


comments:

... --EmmaLaurijssens, Mon, 09 Apr 2007 00:29:11 +0000 reply
Status: open => closed

... --EmmaLaurijssens, Mon, 09 Apr 2007 00:29:24 +0000 reply
Category: user-editing-extedit => admin-installing