[Seaside] A little HowTo

Julian Fitzell jfitzell at gmail.com
Thu Apr 9 10:47:15 UTC 2009

On Thu, Apr 2, 2009 at 2:03 AM, Randal L. Schwartz <merlyn at stonehenge.com>wrote:

> >>>>> "Torsten" == Torsten Bergmann <astares at gmx.de> writes:
> Torsten> Yes, but #canBeRoot should return "true" instead of "True".
> Torsten> Otherwise it will return the Boolean subclass "True" instead of
> Torsten> its sole instance "true" and the code will not work.
> Also, #canBeRoot is *strictly* for the admin GUI.  If the application
> already
> registers itself programmatically (which yours does), no need for
> #canBeRoot.

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).

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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20090409/5e233ba0/attachment.htm

More information about the seaside mailing list