If anyone is interested a first cut demo of MagmaControlPanel is available in
http://www.squeaksource.com/MagmaSeasideWIP
Although the sushi store does not really need its own contol/initialization panel I have added one as an example.
The UI is very rudimentary, stylesheets fairly non existent, but... it works (I think)
Keith
------------ Notes:
Using the Seaside configuration application you can access MagmaControlPanel. (you have to over-ride the default magma location configuration to access the link)
MagmaControlPanel provides a UI for creating a repository if it does not exist
(note: it takes magma quite a long time to report that a repository does not exist, which is not really necessary just to check for the existence of a file, I have held back from hacking this into the mainstream release.)
User is offered a choice of root objects for their repository (just as in the configuration editor a number of sessions/main/configurations are offered, except that some context is provided for the user to know what they are selecting - this contextual information for the uninitiated user is missing from seaside IMHO)
Once a root object has been selected and the repository is online, it may be deleted through the UI.
The repository root object provides a component (itself) to be rendered as a status/initialization/configuration display.
The commit strategy is #commitAndBegin performed on every page refresh, so the MagmaControlPanel handles the magmaSession entirely. The repository root object does not/cannot have any access to the magmaSession while in the context of the WAConfigurationEditor because this is using WASession.
The magmaSession is disconnected when the user clicks the #done button. I have not made any other attempt to clear up open sessions, hoping that they will be garbage collected and handled nicely somewhere eventually. (Is this naive?)
Status display for all open RepositoryControllers is also provided, although what stats would be useful to report here I dont know.
___________________________________________________________ The all-new Yahoo! Mail goes wherever you go - free your email address from your Internet provider. http://uk.docs.yahoo.com/nowyoucan.html