[Zope] manage_addProperty [basic] syntax question

Jason Cunliffe jasonic@nomadicsltd.com
Sun, 15 Apr 2001 20:35:32 -0400


----- Original Message -----
From: "Dieter Maurer" <dieter@handshake.de>
> Jason Cunliffe writes:
>  > I have searched, and I know its really simple, but please can anyone
tell me
>  > how to take a working URL like this:
>  >
>  > http://Zsite231/images/manage_addProduct/Photo/PhotoAdd_version2
>
> Whenever you have a path (absolute, server local),
> you can use "restrictedTraverse" to resolve it into an
> object (under the condition of sufficient permissions).

Thanks
...... so I tried this:

<dtml-var
"restrictedTraverse('/images/manage_addProduct/Photo/PhotoAdd_jason').absolu
te_url()">

following a syntax example from a post at
http://lists.zope.org/pipermail/zope/2000-September/117834.html

I imagine that you will not be surprised to learn that I keep getting a
Network Password dialog box popping up...

What do I have to do to set the 'sufficient permissions'
Permissions of what where when?

Here's the 'Unauthorized' Zope error:
..snip..
  File D:\Program Files\Zsite231\lib\python\DocumentTemplate\DT_Util.py,
line 334, in eval
    (Object:
restrictedTraverse('/images/manage_addProduct/Photo/PhotoAdd_jason').absolut
e_url())
    (Info: restrictedTraverse)
  File <string>, line 0, in ?
  File D:\Program Files\Zsite231\lib\python\OFS\Traversable.py, line 223, in
restrictedTraverse
    (Object: ApplicationDefaultPermissions)
  File D:\Program Files\Zsite231\lib\python\OFS\Traversable.py, line 190, in
unrestrictedTraverse
    (Object: ApplicationDefaultPermissions)
Unauthorized: Photo

Zope Version  Zope 2.3.1 (binary release, python 1.5.2, win32-x86)
Python Version  1.5.2 (#0, Jul 30 1999, 09:52:18) [MSC 32 bit (Intel)]
System Platform  win32

How do I authorize 'Photo' or any product?

- Jason
___________________________________________________________
Jason CUNLIFFE = NOMADICS['Interactive Art and Technology']