[Seaside] Re: [ANN] Seaside Tutorial
stephane.ducasse at free.fr
Fri Mar 10 07:55:57 UTC 2006
Indeed I was pushing lukas since weeks to make a cool video.
So feel free to do some of them :)
On 9 mars 06, at 18:09, Wilkes Joiner wrote:
> I need to spend some time with Magritte. I'll go through your
> tutorial and get back to you about this. Initial impression is that
> it looks fantastic and would make an impressive demo.
> - Wilkes
> On 3/9/06, Lukas Renggli <renggli at gmail.com> wrote:
>> Hi Rogers,
>>> You also might consider plugging Magritte into the framework.
>> yes, that would be very cool, indeed. Especially much more powerful
>> and still very easy for beginners.
>> Instead of adding your own instance-variables you simply press a menu
>> "Add Descriptions" showing a list of possible descriptions, such as
>> "String Description" and "Meno Description", "Date Description", etc.
>> Then a morphic dialog on this description is opened to specify its
>> properties, such as the label, default value, view-component,
>> validation rules, etc.
>> Note that this configuration dialog can be built automatically, since
>> descriptions are described using themselves. The description
>> serializes itself to a description-method on the class side (that is
>> not yet done, but I could add that) and you have a great interface
>> that is easily extensible.
>> For your example this would just add two methods:
>> SOSPost class>>descriptionTitle
>> ^ MAStringDescription auto: #title label: 'Title'
>> SOSPost class>>description
>> ^ MAMemoDescription auto: #body label: 'Body'
>> Now as a user you are probably not happy with simply that, you
>> want to
>> add some validation: the fields should be required (send the message
>> #beRequired to the description), maybe you want a default value (send
>> the message #default: anObject), you want some custom condtion (send
>> the message #addCondition: aBlock), and so on ...
>> I really think Magritte could turn your baby into something much more
>> powerful than they have in Ruby!
>> Lukas Renggli
>> Seaside mailing list
>> Seaside at lists.squeakfoundation.org
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
More information about the Seaside