[Zope] how access zclass subfolders from an instance ??

Bernd Dorn bernddorn@hotmail.com
Sat, 17 Feb 2001 18:40:54 +0100


i tried this already
but i get an error
is this a bug in 2.3.0 ??
here is the description:
Error Type: TypeError
Error Value: too many arguments; expected 2, got 3

Traceback (innermost last):
  File E:\zope230\zope230\lib\python\ZPublisher\Publish.py, line 222, in
publish_module
  File E:\zope230\zope230\lib\python\ZPublisher\Publish.py, line 187, in
publish
  File E:\zope230\zope230\lib\python\Zope\__init__.py, line 221, in
zpublisher_exception_hook
    (Object: Traversable)
  File E:\zope230\zope230\lib\python\ZPublisher\Publish.py, line 171, in
publish
  File E:\zope230\zope230\lib\python\ZPublisher\mapply.py, line 160, in
mapply
    (Object: manage_setPermissionMapping)
  File E:\zope230\zope230\lib\python\ZPublisher\Publish.py, line 112, in
call_object
    (Object: manage_setPermissionMapping)
  File E:\zope230\zope230\lib\python\AccessControl\PermissionMapping.py,
line 150, in manage_setPermissionMapping
    (Object: Traversable)
TypeError: (see above)

thx bd
----- Original Message -----
From: "Shane Hathaway" <shane@digicool.com>
To: <zope@zope.org>
Sent: Friday, February 16, 2001 7:45 PM
Subject: Re: [Zope] how access zclass subfolders from an instance ??


> Bernd Dorn wrote:
> >
> > hello
> >
> > i've created a zClass (folder,objectmanager are the superclasses)
> > i created a folder in the zClass and placed an image there
> >
> > from an instance of the zClass i cant access the image, i get an
permission
> > denied error
> > with the permissions, everything should be ok, cause i'm logged in as
admin
> > if i put the image in the root folder of the zClass it works just fine
> > but i want to organize various contents with folders
>
> You might try setting a permission mapping that maps the "Access
> Contents Information" and "View" permissions.
>
> Shane
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>