<div class="gmail_quote">On Thu, Apr 2, 2009 at 2:03 AM, Randal L. Schwartz <span dir="ltr"><<a href="mailto:merlyn@stonehenge.com">merlyn@stonehenge.com</a>></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;">
>>>>> "Torsten" == Torsten Bergmann <<a href="mailto:astares@gmx.de">astares@gmx.de</a>> writes:<br>
<br>
Torsten> Yes, but #canBeRoot should return "true" instead of "True".<br>
Torsten> Otherwise it will return the Boolean subclass "True" instead of<br>
Torsten> its sole instance "true" 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'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'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>