[Zope] List of Folders

Ulrich Wisser u.wisser@luna-park.de
Thu, 11 Nov 1999 23:55:22 +0100


Hello,

recently I read a thread here about viwing the subfolders 
of a folder. Thats excatly what I want to do, but it doesn't
work. I have two problems:

My folder structure is

eCHECK
  Admin
  Manage
  Kunden
    luna          <- has property kunde
      sub1
        sub1.1
      sub2
    puna          <- has property kunde
      subA
      subB
      subC
      

I want to view a menu with "Admin, Manage and Kunden" in
my navigationbar. I did the follwing code:

          <dtml-with eCHECK>
"menutitle"--><!--#else--><!--#var title_or_id--></A><!--#/if-->
            <dtml-in "eCHECK.objectValues(['Folder'])">
              <dtml-let item=sequence-item>
                <dtml-if "AUTHENTICATED_USER.has_permission('View',
item)">
                  <BR><A HREF="<dtml-var absolute_url>"><!--#if
"hasProperty('menutitle')"--><!--#var "menutitle"--><!--#else--><!--#var
title_or_id--></A><!--#/if-->
                </dtml-if>
              </dtml-let>
            </dtml-in>
          </dtml-with>

When I log in as superuser it works, but when I log in as 
normal user with a local role authentication fails, although
the user has ALL ( nd i mean all) permissions on eCHECK, Admin,
Manage and Kunden.

Further down in the navigationbar I want to display
the folders in Kunden.<kunden-name>. I test for the
property "kunde" which indicates I am viewing something
under Kunden.<kunden-name>. Even when I am in sub1.1 I
want the menu to read "sub1,sub2". My code to this:

      <dtml-if "_.has_key('kunde')">
        <dtml-let userfolder="'Kunden.' + kunde">
          <dtml-with "userfolder">
            <TR><TD>
              <dtml-in "objectValues(['Folder'])">
                <dtml-let item=sequence-item>
                  <BR><A HREF="<dtml-var absolute_url>"><!--#if
"hasProperty('menutitle')"--><!--#var "menutitle"--><!--#else--><!--#var
title_or_id--></A><!--#/if-->
                </dtml-let>
              </dtml-in>
              <BR><A HREF="/">Logout</A>
            </TD></TR>
          </dtml-with>
        </dtml-let>
      </dtml-if>

This doesn't display any folder at all.
I tried <dtml-with "_.namespace(userfolder)"> which leads to
"Kunden.luna not found". 

Any suggestions?

Thanks

Ulli

-- 
----------------- Die Website Effizienzer ------------------
luna-park                Bravo Sanchez, Vollmert, Wisser GbR
Ulrich Wisser                   mailto:u.wisser@luna-park.de
Alter Schlachthof, Immenburgstr. 20      Tel +49-228-9654055
D-53121 Bonn                             Fax +49-228-9654057
------------------http://www.luna-park.de ------------------