Mailing List Archive

[Zope-PTK] DemoPortal still not working!
Hi,

After reading a bunch of messages on this list, I 'cvs up'ed my PTK,
de-installed everything related to PTK on my zope, and re-installed
all the freshly updated ones (2/10/00 around 11pm EST).

After clicking here and there, and restarting zope a few times, the
PortalWizard appeared with the cute little hat, but Help is still
broken. I the try to add a portal in my main directory.

After the three steps, I click on finish, and get the following:


[...some html removed...]

<H2>Zope Error</H2>
<P>Zope has encountered an error while publishing this resource.
</P>

<P>
<STRONG>Error Type: AttributeError</STRONG><BR>
<STRONG>Error Value: manage_addPortalFolder</STRONG><BR>
</P>

[...some html removed...]

<!--
Traceback (innermost last):
File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 214, in
publish_module
File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 179, in
publish
File /usr/lib/zope/lib/python/Zope/__init__.py, line 202, in
zpublisher_exception_hook
File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 165, in
publish
File /usr/lib/zope/lib/python/ZPublisher/mapply.py, line 160, in
mapply
(Object: Portal_add)
File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 102, in
call_object
(Object: Portal_add)
File /usr/lib/zope/lib/python/OFS/DTMLMethod.py, line 145, in __call__

(Object: Portal_add)
File /usr/lib/zope/lib/python/DocumentTemplate/DT_String.py, line 502,
in __call__
(Object: Portal_add)
File /usr/lib/zope/lib/python/DocumentTemplate/DT_With.py, line 148,
in render
(Object: Portal.createInObjectManager(REQUEST['id'], REQUEST))
File /usr/lib/zope/lib/python/Products/PTKDemo/Portal.py, line 32, in
install
(Object: DemoPortalBase)
AttributeError: (see above)

-->

Any ideas?

Thanks,

Stefan.
Re: [Zope-PTK] DemoPortal still not working! [ In reply to ]
On Thu, 10 Feb 2000, Stefan Langerman wrote:

> Hi,
>
> After reading a bunch of messages on this list, I 'cvs up'ed my PTK,
> de-installed everything related to PTK on my zope, and re-installed
> all the freshly updated ones (2/10/00 around 11pm EST).
>
> After clicking here and there, and restarting zope a few times, the
> PortalWizard appeared with the cute little hat, but Help is still
> broken. I the try to add a portal in my main directory.

> Any ideas?

Yep, this was my fault. When I unregistered PortalFolder, I forgot to
change how the DemoPortal tried to instantiate them. I've checked in the
fix. Thanks!

Mike.

--
Mike Pelletier email: mike@digicool.com
Mild mannered software developer icq: 7127228
by day, super villain by night. phone: 519-884-2434