[Zope-PTK] AW: [Zope-PTK] Can't Create Portal

Gottfried Ryser gryser@cgx.ch
Mon, 4 Sep 2000 21:25:42 +0200


Andy

I had bad luck with my PTK. After taking the latest portal.py from CSV and
taking the other steps I got now this errormsg.

Traceback (innermost last):
  File /usr/local/Zope2/lib/python/ZPublisher/Publish.py, line 222, in
publish_module
  File /usr/local/Zope2/lib/python/ZPublisher/Publish.py, line 187, in
publish
  File /usr/local/Zope2/lib/python/Zope/__init__.py, line 221, in
zpublisher_exception_hook
    (Object: DemoPortalBase)
  File /usr/local/Zope2/lib/python/ZPublisher/Publish.py, line 171, in
publish
  File /usr/local/Zope2/lib/python/ZPublisher/mapply.py, line 160, in mapply
    (Object: finish)
  File /usr/local/Zope2/lib/python/ZPublisher/Publish.py, line 112, in
call_object
    (Object: finish)
  File /usr/local/Zope2/lib/python/OFS/DTMLMethod.py, line 167, in __call__
    (Object: finish)
  File /usr/local/Zope2/lib/python/DocumentTemplate/DT_String.py, line 502,
in __call__
    (Object: finish)
  File /usr/local/Zope2/lib/python/OFS/DTMLMethod.py, line 163, in __call__
    (Object: standard_html_header)
  File /usr/local/Zope2/lib/python/DocumentTemplate/DT_String.py, line 502,
in __call__
    (Object: standard_html_header)
  File /usr/local/Zope2/lib/python/DocumentTemplate/DT_Let.py, line 147, in
render
    (Object: member="getPortal().getAuthenticatedMember()")
  File /usr/local/Zope2/lib/python/DocumentTemplate/DT_Util.py, line 337, in
eval
    (Object: getPortal().getToolbox(REQUEST)(this(),REQUEST))
    (Info: this)
  File <string>, line 0, in ?
  File /usr/local/Zope2/lib/python/Products/PTKBase/Toolbox.py, line 141, in
__call__
  File /usr/local/Zope2/lib/python/App/special_dtml.py, line 121, in
__call__
    (Object: dtml/toolbox)
    (Info: /usr/local/Zope2/lib/python/Products/PTKBase/dtml/toolbox.dtml)
  File /usr/local/Zope2/lib/python/DocumentTemplate/DT_String.py, line 445,
in __call__
    (Object: dtml/toolbox)
  File /usr/local/Zope2/lib/python/DocumentTemplate/DT_String.py, line 383,
in cook
    (Object: dtml/toolbox)
  File /usr/local/Zope2/lib/python/DocumentTemplate/DT_String.py, line 376,
in read
    (Object: dtml/toolbox)
  File /usr/local/Zope2/lib/python/DocumentTemplate/DT_String.py, line 538,
in read_raw
    (Object: dtml/toolbox)
IOError: [Errno 13] Permission denied:
'/usr/local/Zope2/lib/python/Products/PTKBase/dtml/toolbox.dtml'


Thank you for help

Gottfried Ryser


> -----Ursprüngliche Nachricht-----
> Von: Andy Dawkins [mailto:andyd@nipltd.com]
> Gesendet: Montag, 4. September 2000 09:36
> An: gryser@cgx.ch
> Betreff: RE: [Zope-PTK] Can't Create Portal
>
>
> Gottfired
>
> The file you are looking for is in
> zope/lib/python/Products/PTKDemo/Portal.py and is the method called
> createPortalTools in the class DemoPortalBase.
>
> If you have the latest CVS checkout you do not need to make this change.
> Although I am not sure about version 0.8.2
>
> You will also have to delete your zope/lib/python/Products/Wizard
> directory
> and your zope/lib/python/Products/DemoPortal directory.
>
> Restart Zope.  Manually remove the DemoPortal and Wizard product from the
> Control_Panel/Products within Zope, if this hasn't automatically happened.
>
> Then copy the DemoPortal.zexp and the Wizard.zexp file from the
> zope/lib/python/Products/PTKDemo directory in to your zope/Import
> directory,
> and import them in to the Control_Panel/Products folder in Zope.
>
> Hope that helps.
> -Andy Dawkins
>