<div class="gmail_quote">On Thu, Apr 2, 2009 at 2:03 AM, Randal L. Schwartz <span dir="ltr">&lt;<a href="mailto:merlyn@stonehenge.com">merlyn@stonehenge.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
&gt;&gt;&gt;&gt;&gt; &quot;Torsten&quot; == Torsten Bergmann &lt;<a href="mailto:astares@gmx.de">astares@gmx.de</a>&gt; writes:<br>
<br>
Torsten&gt; Yes, but #canBeRoot should return &quot;true&quot; instead of &quot;True&quot;.<br>
Torsten&gt; Otherwise it will return the Boolean subclass &quot;True&quot; instead of<br>
Torsten&gt; its sole instance &quot;true&quot; and the code will not work.<br>
<br>
Also, #canBeRoot is *strictly* for the admin GUI.  If the application already<br>
registers itself programmatically (which yours does), no need for #canBeRoot.<br>
<font color="#888888"></font></blockquote><div><br>True, though it&#39;s a bit confusing to go into the UI (could be either the web or OB UI eventually) and see a root component selected that is not in the list of possible UI components (and this could potentially cause problems with some UIs when saving the form -- not sure if it actually does at the moment or not).<br>
<br>I think it&#39;s currently good practice to tag the expected root components of your application with #canBeRoot -- if nothing else it helps document how your application is supposed to be used.<br><br>Julian<br></div>
</div>