Hello Dieter,<br><br>This is my all_meta_types function:<br><br>def all_meta_types(self):<br> return (<br> {<br> 'name' : 'Web Page',<br> 'action': 'manage_addProduct/DWT/WebPage_add',
<br> 'permission': 'Add Web Page',<br> },<br> )<br><br>I haven't followed Maciej's suggestion yet to use pdb to more closely trace what's going on, but if you have suggestions on what *might* be going on to help me in my debugging, that would be great.
<br><br>Thank you,<br>Garth<br><br><div><span class="gmail_quote">On 1/7/07, <b class="gmail_sendername">Dieter Maurer</b> <<a href="mailto:dieter@handshake.de">dieter@handshake.de</a>> wrote:<br></span><span class="gmail_quote">
</span><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote"><br></blockquote><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
</blockquote><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote"><div> You have included the "'permission'" definition in your "meta_type" entry?
<br><br></div></blockquote><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Garth B. wrote at 2007-1-5 23:06 -0500: <br></blockquote><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
>I'm trying to filter the objects that appear in the Add drop down, and I'm<br>>having odd results. There are two scenarios.<br>><br>>In the first scenario, the active user is a Manager and my folderish object
<br>>does not have a defined all_meta_types function. Everything shows up in the<br>>Add drop down as expected. When I define all_meta_types for my folderish<br>>object to only return one kind of object, the "Add xxxxx" button appears as
<br>>one would expect.<br>><br>>In the second scenario, I have a role "Editor" which controls what kinds of<br>>objects the user can add. When I do not have an all_meta_types function<br>>defined on my folderish object, only those objects that the role permits the
<br>>user to add are shown. When I define all_meta_types for my folderish object<br>>to only return one of the kinds of objects that the role does permit, the<br>>user can't add anything. No "Add xxxxx" button that one would normally see
<br>>when only able to add a single type of object to a folderish object.<br><br>--<br>Dieter<br></blockquote></div><br>