[Zope-PTK] Yet another install failure for DemoPortal

Tres Seaver tseaver@palladion.com
Mon, 07 Feb 2000 17:57:18 -0600


Mike Pelletier wrote:
> 
> On Mon, 7 Feb 2000, Jim Cain wrote:
> 
> > I imported the DemoPortal and began to create a portal in my top-level
> > folder. On step 3 of the wizard, after clicking "Finish," I get the
> > following error:
> >
> > Error Type: TypeError
> > Error Value: not enough arguments; expected 6, got 3
> 
> >   File /usr/local/src/Zope/lib/python/Products/PTKDemo/Portal.py, line 56, in install
> >     (Object: DemoPortalBase)
> > TypeError: (see above)
> >
> > I'm getting closer, a little at a time. :-)
> 
>     Hmm.  In Portal.py (rev 1.31), this is the line:
> 
>         catalog.manage_addIndex('review_state', 'FieldIndex')
> 
>     This is the first line that an index is added.  Some people reported
> that ZCatalog doesn't even have a manage_addIndex method in their version,
> so I have changed this to add indexes and columns differently.  The change
> was made yesterday sometime.  I can't imagine why it would be expecting 6
> parameters in any case.
> 
>     Try updating to the latest version (run 'cvs up' in each of PTKBase
> and PTKDemo) and trying again.  Let me know!
> 
> Thanks!
> Mike.

I see the same problem:

  * I just fetched the whole PTK module via 'cvs -d ... co ZopePTK'.

  * I linked PTKBase and PTKDemo into my Products tree via 'ln -s'
    and restarted -- both show up fine in the Control Panel.

  * I linked DemoPortal.zexp into the /import directory, and imported it;
    the Help class and the PortalWizard showed up borken.

  * I restarted Zope -- the PortalWizard class is now not broken.  I
    switched to the main tree and tried to create a Portal.  I filled out the
    three forms, hit the Finish button (why not the Swedish button?  or the
    Latt button? :) and got the same "expected 6, got 3" TypeError reported
    by Jim Cain.

Running Zope 2.1.3 on a RH5.2 Linux box.
-- 
=========================================================
Tres Seaver         tseaver@palladion.com    713-523-6582
Palladion Software  http://www.palladion.com