[Zope-PTK] PTK Zope Portal Wizard Error

Paul Erickson erickson@kaivo.com
Thu, 24 Aug 2000 12:38:34 -0600


This was happening to me also.  I removed the
lib/python/Products/DemoPortal directory, and another one that I think
was called "Wizard".  They seem to contain an out of sync version of
DemoPortal and Wizard that automatically get installed from the .dat
files when Zope starts.

After doing that, then I imported both from the .zexp files.

I also needed to use the following fix from Fabio Forno.  CVS may have
been updated to include it. I don't really know.

-paul

--quote from FF starts here--


I had the same problem. You must replace the
PTKDemo.DemoPortalBase.createPortalTools method with this one (it was
using tool ids instead of meta_types)

def createPortalTools(self, props):
        """Set up initial components  --  called by ZClass
constructor"""

        # Add tools.
        addPTKBaseTool =
self.manage_addProduct['PTKBase'].manage_addTool
        addPTKBaseTool(self, 'PTK Basic Actions Tool', None)
        addPTKBaseTool(self, 'PTK Basic Catalog', None)
        addPTKBaseTool(self, 'PTK Basic Discussion Tool', None)
        addPTKBaseTool(self, 'PTK Basic Workflow Tool', None)
        addPTKBaseTool(self, 'PTK Basic Undo Tool', None)

        addPTKDemoTool =
self.manage_addProduct['PTKDemo'].manage_addTool
        addPTKDemoTool(self, 'PTK Demo Membership Tool', None)
        addPTKDemoTool(self, 'PTK Demo Registration Tool', None)
        addPTKDemoTool(self, 'PTK Demo URL Tool', None)
        addPTKDemoTool(self, 'PTK Demo Interface Tool', None)

        # portal_properties is implemented as a ZClass.
        propsTool = self.PortalProperties()
        self._setObject(propsTool.id, propsTool)

        # Add Members folder
        manage_addPortalFolder(self, 'Members')
        self.Members.manage_addDTMLMethod('index_html', 'Member list',
                                          members_roster)


LAMATRC wrote:
> 
> Hi all!
> 
> After some time i have successfully installed all the
> components of PTK (except LoginManager). When i click
> Finish at the last step of Zope's Portal Wizard I get
> the following error:
> 
> Zope has encountered an error while publishing this
> resource.
> 
> Error Type: NameError
> Error Value: apply_wizard
> 
> Troubleshooting Suggestions
> 
> This resource may be trying to reference a nonexistent
> object or variable apply_wizard.
> The URL may be incorrect.
> The parameters passed to this resource may be
> incorrect.
> A resource that this resource relies on may be
> encountering an error.
> For more detailed information about the error, please
> refer to the HTML source for this page.
> 
> If the error persists please contact the site
> maintainer. Thank you for your patience.
> 
> Traceback (innermost last):
>   File
> C:\PROGRA~1\IS\lib\python\ZPublisher\Publish.py, line
> 222, in publish_module
>   File
> C:\PROGRA~1\IS\lib\python\ZPublisher\Publish.py, line
> 187, in publish
>   File C:\PROGRA~1\IS\lib\python\Zope\__init__.py,
> line 221, in zpublisher_exception_hook
>     (Object: RoleManager)
>   File
> C:\PROGRA~1\IS\lib\python\ZPublisher\Publish.py, line
> 171, in publish
>   File C:\PROGRA~1\IS\lib\python\ZPublisher\mapply.py,
> line 160, in mapply
>     (Object: Portal_add)
>   File
> C:\PROGRA~1\IS\lib\python\ZPublisher\Publish.py, line
> 112, in call_object
>     (Object: Portal_add)
>   File C:\PROGRA~1\IS\lib\python\OFS\DTMLMethod.py,
> line 167, in __call__
>     (Object: Portal_add)
>   File
> C:\PROGRA~1\IS\lib\python\DocumentTemplate\DT_String.py,
> line 502, in __call__
>     (Object: Portal_add)
>   File
> C:\PROGRA~1\IS\lib\python\DocumentTemplate\DT_With.py,
> line 146, in render
>     (Object:
> Portal.createInObjectManager(REQUEST['id'], REQUEST))
>   File
> C:\PROGRA~1\IS\lib\python\DocumentTemplate\DT_Util.py,
> line 337, in eval
>     (Object: apply_wizard(REQUEST))
>     (Info: REQUEST)
>   File <string>, line 0, in ?
> NameError: (see above)
> 
> Thanks in advance for your help!
> Lama
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Mail - Free email you can access from anywhere!
> http://mail.yahoo.com/
> 
> _______________________________________________
> Zope-PTK maillist  -  Zope-PTK@zope.org
> http://lists.zope.org/mailman/listinfo/zope-ptk
> 
> See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests

-- 
Paul Erickson       | erickson@kaivo.com
Kaivo, Inc.         | www.kaivo.com