[Zope-PTK] Can't create portal

Shane Hathaway shane@digicool.com
Mon, 21 Aug 2000 09:18:11 -0400


Fabio Forno wrote:
> 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)

Oops.  It *used* to create them based on the object ID, now it creates
them based on the meta type.

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

Thanks for the patch.

Shane