[Zope] My objectValues doesn't have the right permissions ... I guess

Max Møller Rasmussen maxm@normik.dk
Mon, 9 Jul 2001 17:26:32 +0200


I am trying to make a minimal ObjectManager How-To. So far so good. I have
made the product and it works ... allmost.

I can add objects to my objectmanager class. But when I try to see then in
the management interface they dont show up. 

When I try to list the objects through:

<dtml-in objectValues>
    <a href="<dtml-var absolute_url>"><dtml-var title_or_id></a><br>
</dtml-in>

I get nothing too.

I CAN see them directly through the url. So my guess is that there is
something wrong with my permissions for "objectValues" or somesuch.

These are my permissions:

    __ac_permissions__ = ObjectManager.__ac_permissions__ + (
        ('View', # label
            ('index_html',), # methods
            ('Anonymous', 'Manager'), # roles
        ),
        ('Change minimalOM',
            ('manage_editAction', 'manage_editForm'),
            ('Manager',)
        ),
        ('Add minimalOM',
            ('manage_addminimalOMAction', 'manage_addminimalOMForm'),
            ('Manager',)
        ),
    )

If I print them out concatenated, they look like this:

(
    ('View management screens',
        ('manage_main', 'manage_menu')),
    ('Access contents information', 
        ('objectIds', 'objectValues', 'objectItems', ''), 
        ('Anonymous', 'Manager')),
    ('Delete objects', 
        ('manage_delObjects',)),
    ('FTP access', 
        ('manage_FTPstat', 'manage_FTPlist')),
    ('Import/Export objects', 
        ('manage_importObject', 'manage_importExportForm',
'manage_exportObject')),
    ('View', 
        ('index_html',), ('Anonymous', 'Manager')),
    ('Change minimalOM', 
        ('manage_editAction', 'manage_editForm'),
        ('Manager',)),
    ('Add minimalOM', 
        ('manage_addminimalOMAction', 'manage_addminimalOMForm'),
        ('Manager',))
) 

I cannot see what is wrong here. "objectValues" has the usual settings, and
the user im logged on as has manager role.

Anybody has a clue?

Regards Max M


                         - Nørgård Mikkelsen a/s -
             www.normik.dk - Vandværksvej 18 - DK 5000 Odense C
               Tlf (+45) 66 14 14 80 - Fax (+45) 66 14 19 43
                     Max M - Direkte (+45) 63 14 47 15