Submitted by : simon at: 2003-10-26T21:31:48+00:00 (17 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 (innermost last):
  File /usr/lib/zope/lib/python/ZPublisher/, line 150, in publishmodule
  File /home/zcustomers/www/zope/Products/Localizer/, line 65, in new_publish
  File /usr/lib/zope/lib/python/ZPublisher/, line 114, in publish
  File /usr/lib/zope/lib/python/Zope/, line 159, in zpublisher_exception_hook
    (Object: Zope)
  File /usr/lib/zope/lib/python/ZPublisher/, line 98, in publish
  File /usr/lib/zope/lib/python/ZPublisher/, line 88, in mapply
    (Object: install_zwiki)
  File /usr/lib/zope/lib/python/ZPublisher/, line 39, in call_object
    (Object: install_zwiki)
  File /usr/lib/zope/lib/python/Products/ExternalMethod/, line 198, in __call_
    (Object: install_zwiki)
    (Info: ((<Application instance at 8b94268>,), {}, None))
  File /home/zcustomers/www/zope/Products/ZWiki/Extensions/, line 48, in install
    (Object: Zope)
  File /home/zcustomers/www/zope/Products/CMFCore/, 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


... --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