Hello Dieter,<br><br>This is my all_meta_types function:<br><br>def all_meta_types(self):<br>&nbsp;&nbsp;&nbsp; return (<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &#39;name&#39; : &#39;Web Page&#39;,<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &#39;action&#39;: &#39;manage_addProduct/DWT/WebPage_add&#39;,
<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &#39;permission&#39;: &#39;Add Web Page&#39;,<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; },<br>&nbsp;&nbsp;&nbsp; )<br><br>I haven&#39;t followed Maciej&#39;s suggestion yet to use pdb to more closely trace what&#39;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> &lt;<a href="mailto:dieter@handshake.de">dieter@handshake.de</a>&gt; 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>&nbsp;You have included the &quot;&#39;permission&#39;&quot; definition in your &quot;meta_type&quot; 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;">
&gt;I&#39;m trying to filter the objects that appear in the Add drop down, and I&#39;m<br>&gt;having odd results.&nbsp;&nbsp;There are two scenarios.<br>&gt;<br>&gt;In the first scenario, the active user is a Manager and my folderish object
<br>&gt;does not have a defined all_meta_types function.&nbsp;&nbsp;Everything shows up in the<br>&gt;Add drop down as expected.&nbsp;&nbsp;When I define all_meta_types for my folderish<br>&gt;object to only return one kind of object, the &quot;Add xxxxx&quot; button appears as
<br>&gt;one would expect.<br>&gt;<br>&gt;In the second scenario, I have a role &quot;Editor&quot; which controls what kinds of<br>&gt;objects the user can add.&nbsp;&nbsp;When I do not have an all_meta_types function<br>&gt;defined on my folderish object, only those objects that the role permits the
<br>&gt;user to add are shown.&nbsp;&nbsp;When I define all_meta_types for my folderish object<br>&gt;to only return one of the kinds of objects that the role does permit, the<br>&gt;user can&#39;t add anything.&nbsp;&nbsp;No &quot;Add xxxxx&quot; button that one would normally see
<br>&gt;when only able to add a single type of object to a folderish object.<br><br>--<br>Dieter<br></blockquote></div><br>