From rdrvr.biz at gmail.com Tue Jan 6 05:11:37 2009 From: rdrvr.biz at gmail.com (David Farber) Date: Mon, 5 Jan 2009 21:11:37 -0700 Subject: Rendering constraints Message-ID: <2DA905DA-8F67-4A13-8A60-9259AFF8219B@gmail.com> If I add 'beRequired' to descriptionStreet on the MAAddressModel, the constraint error message ("Street: Input is required but no input given") isn't displayed on the personeditor page. What do I need to do to render the error? Thanks, David From renggli at gmail.com Tue Jan 6 08:06:57 2009 From: renggli at gmail.com (Lukas Renggli) Date: Tue, 6 Jan 2009 08:06:57 +0100 Subject: Rendering constraints In-Reply-To: <2DA905DA-8F67-4A13-8A60-9259AFF8219B@gmail.com> References: <2DA905DA-8F67-4A13-8A60-9259AFF8219B@gmail.com> Message-ID: <67628d690901052306q3b5d51eeveb5d0eb3cf6b640@mail.gmail.com> On Tue, Jan 6, 2009 at 5:11 AM, David Farber wrote: > If I add 'beRequired' to descriptionStreet on the MAAddressModel, the > constraint error message ("Street: Input is required but no input given") > isn't displayed on the personeditor page. What do I need to do to render > the error? You are propbably required to add some style sheet that visualizes the beRequired property. If a description is required the CSS class 'required' is added to the HTML of that description. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From rdrvr.biz at gmail.com Tue Jan 6 18:19:24 2009 From: rdrvr.biz at gmail.com (David Farber) Date: Tue, 6 Jan 2009 10:19:24 -0700 Subject: Rendering constraints In-Reply-To: <67628d690901052306q3b5d51eeveb5d0eb3cf6b640@mail.gmail.com> References: <2DA905DA-8F67-4A13-8A60-9259AFF8219B@gmail.com> <67628d690901052306q3b5d51eeveb5d0eb3cf6b640@mail.gmail.com> Message-ID: No, I don't think it is a css issue. The error is not present in the generated HTML. Here is what I am doing: 1) Set beRequired on MAAddressModel>>descriptionStreet 2) Go to the personeditor 3) Click on the create button for Home Address 4) Click the Save button (without entering any data). What I see when I do this is: ? First Name: Input is required but no input given ? Last Name: Input is required but no input given ? Email: Input is required but no input given But there is no error for Home Address:, Street:. Looking at the html, Street does have the 'required' class, but it doesn't have the 'error' class and there is no error message for Street. My guess is that the problem has to do with the fact that Home Address is an MAToOneRelationDescription and some piece of code somewhere isn't recursing down into its constraints and errors. David On Jan 6, 2009, at 12:06 AM, Lukas Renggli wrote: > On Tue, Jan 6, 2009 at 5:11 AM, David Farber > wrote: >> If I add 'beRequired' to descriptionStreet on the MAAddressModel, the >> constraint error message ("Street: Input is required but no input >> given") >> isn't displayed on the personeditor page. What do I need to do to >> render >> the error? > > You are propbably required to add some style sheet that visualizes the > beRequired property. If a description is required the CSS class > 'required' is added to the HTML of that description. > > Cheers, > Lukas > > -- > Lukas Renggli > http://www.lukas-renggli.ch > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki From joel at ardishealth.com Wed Jan 7 16:22:04 2009 From: joel at ardishealth.com (Joel Turnbull) Date: Wed, 07 Jan 2009 10:22:04 -0500 Subject: Extending the Pier User Data Model Message-ID: <4964C89C.5080307@ardishealth.com> I'm trying to find the best way to add a collection into the Pier user data model. I located this advice: "For adding properties like first name, last name and email to a user the easiest way is to add some Magritte descriptions to PUUser.Add your new description methods to a new category called something like *myproject-usermodel so it won't be overwritten when you load new versions of Pier-Unix-Security from Monticello (the star at the beginning of the name is essential)." Can one do this without also adding instance vars in the PUUser class? And If not, wouldn't those instance vars be overwritten when you load new versions of Pier-Unix-Security? In my case it also applies to PUUser>>initialize, which initializes my empty collection. Won't that be overwritten? Am I going about this the wrong way? -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 5145 bytes Desc: S/MIME Cryptographic Signature URL: From keith_hodges at yahoo.co.uk Wed Jan 7 17:19:08 2009 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Wed, 07 Jan 2009 16:19:08 +0000 Subject: Extending the Pier User Data Model In-Reply-To: <4964C89C.5080307@ardishealth.com> References: <4964C89C.5080307@ardishealth.com> Message-ID: <4964D5FC.2000001@yahoo.co.uk> > > Can one do this without also adding instance vars in the PUUser class? > And If not, wouldn't those instance vars be overwritten when you load > new versions of Pier-Unix-Security? PUUser is a PRObject which has a properties dictionary, so you can store your new data in there. Keith From joel at ardishealth.com Thu Jan 8 15:10:36 2009 From: joel at ardishealth.com (Joel Turnbull) Date: Thu, 08 Jan 2009 09:10:36 -0500 Subject: Extending the Pier User Data Model In-Reply-To: <4964D5FC.2000001@yahoo.co.uk> References: <4964C89C.5080307@ardishealth.com> <4964D5FC.2000001@yahoo.co.uk> Message-ID: <4966095C.7050404@ardishealth.com> Keith Hodges wrote: >> Can one do this without also adding instance vars in the PUUser class? >> And If not, wouldn't those instance vars be overwritten when you load >> new versions of Pier-Unix-Security? >> > PUUser is a PRObject which has a properties dictionary, so you can store > your new data in there. > > Keith > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > Thanks! -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 5145 bytes Desc: S/MIME Cryptographic Signature URL: From stevemccusker at pobox.com Fri Jan 9 04:21:49 2009 From: stevemccusker at pobox.com (Steve McCusker) Date: Fri, 9 Jan 2009 14:21:49 +1100 Subject: MAStringWriter >> visitContainer: aDescription Message-ID: <4BCC40596D364EC89581AE883CBF10EE@PLATINI> I have been playing around with Seaside, Magritte and Glorp with the intention of converting (or just adding to) a web application I started using Django and Python. The data is stored in a PostgreSQL database. I have some of the Magritte list views working but one of them wasn't. A column was not displaying properly. The column should display a MAToOneRelationDescription, the target object of which had four separate string components. The list view was only displaying the first of these. I think the fault is in MAStringWriter >> visitContainer: aDescription. The original method was like this: visitContainer: aDescription aDescription do: [ :each | each isVisible ifTrue: [ each stringWriter write: (self object readUsing: each) description: each to: stream. ^ self ] ]. But I think the ^self should be outside the iteration. When I changed the method to: visitContainer: aDescription aDescription do: [ :each | each isVisible ifTrue: [ each stringWriter write: (self object readUsing: each) description: each to: stream. ] ]. ^ self I get all four components displayed (unfortunately without any spacing but I guess that is a separate problem. Cheers Steve McCusker PS My image is sq3.9-7067web08.01.1 From renggli at gmail.com Fri Jan 9 08:07:02 2009 From: renggli at gmail.com (Lukas Renggli) Date: Fri, 9 Jan 2009 08:07:02 +0100 Subject: MAStringWriter >> visitContainer: aDescription In-Reply-To: <4BCC40596D364EC89581AE883CBF10EE@PLATINI> References: <4BCC40596D364EC89581AE883CBF10EE@PLATINI> Message-ID: <67628d690901082307m1e1fbde0o5cf20343062c52cd@mail.gmail.com> > I think the fault is in MAStringWriter >> visitContainer: aDescription. The > original method was like this: This is intentional. The decision was by default to only display the first visible description for relationships. Of course you can change that as you have done. As I mentioned already several times, from a framework point of view relationships lead to an explosion of meaningful ways to display, edit, and validate the associated data. Magritte has chosen one of these possibilities. You have to subclass or reconfigure the descriptions if you want something else. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From rdrvr.biz at gmail.com Fri Jan 9 08:50:33 2009 From: rdrvr.biz at gmail.com (David Farber) Date: Fri, 9 Jan 2009 00:50:33 -0700 Subject: Composing MAReport Message-ID: <26C4AF24-27DA-4308-8B4E-F08A0B34003C@gmail.com> Is it possible to compose an MAReport to use fields from different objects? For example, the person editor exercise has a PersonModel that contains an AddressModel. Right now, an MAReport on the PersonModel shows the AddressModel instance as one column. Would it be possible to show only the Country field of the AddressModel (and have the columns titled 'Country', not 'Home Address') in the report? Thanks, David From renggli at gmail.com Fri Jan 9 09:33:42 2009 From: renggli at gmail.com (Lukas Renggli) Date: Fri, 9 Jan 2009 09:33:42 +0100 Subject: Composing MAReport In-Reply-To: <26C4AF24-27DA-4308-8B4E-F08A0B34003C@gmail.com> References: <26C4AF24-27DA-4308-8B4E-F08A0B34003C@gmail.com> Message-ID: <67628d690901090033i69615642t3abd3cae28ec5ab9@mail.gmail.com> > Is it possible to compose an MAReport to use fields from different objects? Yes. You can add columns manually using #addColumnDescription:. Just make sure that you change the accessor object, so that it reaches the other object. For example: aReport addColumnDescription: (MAAddressModel descriptionStreet accessor: #(address street); " calls #address on the receiver, and on the result #street " yourself) You can also directly add such a description to the PersonModel if you need it everywhere. Lukas -- Lukas Renggli http://www.lukas-renggli.ch From estebanlm at gmail.com Fri Jan 9 11:57:29 2009 From: estebanlm at gmail.com (Esteban Lorenzano) Date: Fri, 9 Jan 2009 08:57:29 -0200 Subject: pier persistency not working right for me Message-ID: Hi, Yesterday I had a chain of bad things with my pier image (on production). First, I learned the bad way that uploafing a 16M file is a bad idea :(... it hangs my application, maybe not for a problem on pier but my hosting provider... and very stupid I, that image is the only one who does not have a VNC server running there so I cannot see what was happening. So I tried to start a backup... and there is the problem: last backup image is from Dec 5 :( I have a simple image persistence configured there... so I thought I should have at least one image a day... :( :( Well, transactions.txt is full of transactions, but I don't know how to use it for restablish my pier image... what I need to do? Thanks in advance, Esteban pd: of course, right now I'm installing it a VNC server and a few more things to ensure this will not happen again -at least, it will not catch me so nude :) From renggli at gmail.com Fri Jan 9 12:30:14 2009 From: renggli at gmail.com (Lukas Renggli) Date: Fri, 9 Jan 2009 12:30:14 +0100 Subject: pier persistency not working right for me In-Reply-To: References: Message-ID: <67628d690901090330g4322c061q96faac59c46eb269@mail.gmail.com> > it hangs my application, maybe not for a problem on pier but my hosting > provider... and very stupid I, that image is the only one who does not have > a VNC server running there so I cannot see what was happening. > So I tried to start a backup... and there is the problem: last backup image > is from Dec 5 :( There is also the 'Persistency' widget in the group 'Pier System', that allows admins to configure and observe the state of the persistency subsystem from within the web browser. > I have a simple image persistence configured there... so I thought I should > have at least one image a day... :( :( It does not safe if there are no changes. > Well, transactions.txt is full of transactions, but I don't know how to use > it for restablish my pier image... what I need to do? I added code to generate that file many years ago while Pier was still under heavy development. It gave me a good sleep while I already started to use Pier in many productive images at that time. It was intended as a short time solution for myself, and I never removed it although I have never used the output of the file up to now. So I never wrote code that actually reads it back into an image. I assume that it could easily be done and should probably added to the image persistency package. Lukas -- Lukas Renggli http://www.lukas-renggli.ch From damien.cassou at gmail.com Fri Jan 9 12:51:55 2009 From: damien.cassou at gmail.com (Damien Cassou) Date: Fri, 9 Jan 2009 12:51:55 +0100 Subject: [ANN] LastUpdatedThe widget Message-ID: <6ac749c10901090351v2aeaa8cdvaaf1e7fbdf986368@mail.gmail.com> In pieraddons. Could someone please review it? Name: Pier-LastUpdatedThe-damiencassou.1 Author: damiencassou Time: 9 January 2009, 12:50:49 pm UUID: f592ca33-e55c-465d-a04c-5443630451f8 Ancestors: - Widget to display a sentence like: 'Last updated the ' + the timestamp of the current page. -- Damien Cassou http://damiencassou.seasidehosting.st From renggli at gmail.com Fri Jan 9 13:45:59 2009 From: renggli at gmail.com (Lukas Renggli) Date: Fri, 9 Jan 2009 13:45:59 +0100 Subject: [ANN] LastUpdatedThe widget In-Reply-To: <6ac749c10901090351v2aeaa8cdvaaf1e7fbdf986368@mail.gmail.com> References: <6ac749c10901090351v2aeaa8cdvaaf1e7fbdf986368@mail.gmail.com> Message-ID: <67628d690901090445l3f58abaew468070087e813892@mail.gmail.com> Looks very useful. Maybe we want to include that even into Pier-Seaside? Two minor details: - There is some inconsistency between 'last updated' and 'last modified'. - Also there are some unclassified methods. Cheers, Lukas On Fri, Jan 9, 2009 at 12:51 PM, Damien Cassou wrote: > In pieraddons. Could someone please review it? > > Name: Pier-LastUpdatedThe-damiencassou.1 > Author: damiencassou > Time: 9 January 2009, 12:50:49 pm > UUID: f592ca33-e55c-465d-a04c-5443630451f8 > Ancestors: > > - Widget to display a sentence like: 'Last updated the ' + the > timestamp of the current page. > > -- > Damien Cassou > http://damiencassou.seasidehosting.st > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -- Lukas Renggli http://www.lukas-renggli.ch From phil at thinkris.com Mon Jan 19 10:52:10 2009 From: phil at thinkris.com (Phil@Work) Date: Mon, 19 Jan 2009 20:52:10 +1100 Subject: MAMultipleOptionDescription options from instance Message-ID: <447D44D1-1A62-40EA-BD12-2902BF7A13AF@thinkris.com> Hi everyone, I've just got started with Magritte and have a couple of new-bee questions. 1. I have a MAMultipleOptionDescription and the options come from sending #availableOptions to the current instance. I can't see how i would do this with #asDynamicObject 2. I have a SingleOptionDescription with a dynamic options object - can i provide a display block or how would i control what is displayed in the popup. I found an optionsAndLables but it doesn't take a dynamic object. Does anyone know how to achieve this, or can point me to the appropriate documentation. Sorry for the simple questions. Thanks in advance, Phil ------------------------ Phil Blake Information Systems Retail Information Systems Pty Ltd Level 2, 35 Spring Street Bondi Junction, NSW, 2022 Cell: 0438 55 0000 Fax: 1300 747 001 Email: phil.blake at retailinfo.com.au Web: www.thinkRIS.com IMPORTANT NOTICE: The information in this email is confidential and may also be privileged. It is for the intended recipient/s only. If you are not the intended recipient, any use or dissemination of the information and any disclosure or copying of this email is unauthorised and strictly prohibited. If you have received this email in error, please promptly inform us by reply email or telephone. You should also delete this email and destroy any hard copies produced. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: risRed150.png Type: image/png Size: 12409 bytes Desc: not available URL: From renggli at gmail.com Mon Jan 19 11:06:47 2009 From: renggli at gmail.com (Lukas Renggli) Date: Mon, 19 Jan 2009 11:06:47 +0100 Subject: MAMultipleOptionDescription options from instance In-Reply-To: <447D44D1-1A62-40EA-BD12-2902BF7A13AF@thinkris.com> References: <447D44D1-1A62-40EA-BD12-2902BF7A13AF@thinkris.com> Message-ID: <67628d690901190206n1f441957nfbe4805b2d1d57ae@mail.gmail.com> > 1. I have a MAMultipleOptionDescription and the options come from sending > #availableOptions to the current instance. I can't see how i would do this > with #asDynamicObject MAMultipleOptionDescription is the same as MASingleOptionDescription as far as retrieving the options concern. > 2. I have a SingleOptionDescription with a dynamic options object - can i > provide a display block or how would i control what is displayed in the > popup. I found an optionsAndLables but it doesn't take a dynamic object. > Does anyone know how to achieve this, or can point me to the appropriate > documentation. Sorry for the simple questions. I do not suggest to use #asDyanmicObject. I suggest that you override #description on the instance side of your object and use #optionsAndLabels: to set the possible options (http://lukas-renggli.ch/smalltalk/magritte/faq). Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From p3anoman at gmail.com Tue Jan 20 02:42:30 2009 From: p3anoman at gmail.com (John M) Date: Mon, 19 Jan 2009 20:42:30 -0500 Subject: Magritte Tutorial - Person Manager: Save button does not answer Message-ID: <40f637ec0901191742g7a23af1bk69d73dbb80520a94@mail.gmail.com> Hello All, I have spent many hours trying to figure out the answer to my problem to no avail, so I avail myself of your esteemed knowledge. I am trying to implement the Person Manager in the tutorial. This should be simple and for the most part it is. I added the action method below to call the default Person Editor. It gets called properly but clicking on the Save button does nothing. The halt code is never reached, i.e. the editor never seems to answer... PersonManager>>add | e p | e := MAPersonEditor new. p := self call: e. self halt. p isNil ifFalse: [ self persons add: p ]. The PersonManager >>renderContentOn: method is implemented as follows: renderContentOn: html html heading level: 3; with: 'Person Manager'. html anchor callback: [ self add ]; with: 'Add New Person'. self persons do: [ :p | html text: p firstName , ' ' , p lastName] Can anyone tell me what it is that I have failed to implement? Thanks in advance John -------------- next part -------------- An HTML attachment was scrubbed... URL: From renggli at gmail.com Tue Jan 20 08:53:38 2009 From: renggli at gmail.com (Lukas Renggli) Date: Tue, 20 Jan 2009 08:53:38 +0100 Subject: Magritte Tutorial - Person Manager: Save button does not answer In-Reply-To: <40f637ec0901191742g7a23af1bk69d73dbb80520a94@mail.gmail.com> References: <40f637ec0901191742g7a23af1bk69d73dbb80520a94@mail.gmail.com> Message-ID: <67628d690901192353h5f73c9b2o8eb1fff87c82269e@mail.gmail.com> > Can anyone tell me what it is that I have failed to implement? As far as I see your code looks ok. How does MAPersonEditor look like? Is the button surrounded by a form? Does the button do an #answer: at some point? Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From p3anoman at gmail.com Tue Jan 20 13:08:53 2009 From: p3anoman at gmail.com (John M) Date: Tue, 20 Jan 2009 07:08:53 -0500 Subject: Magritte Tutorial - Person Manager: Save button does not answer In-Reply-To: <67628d690901192353h5f73c9b2o8eb1fff87c82269e@mail.gmail.com> References: <40f637ec0901191742g7a23af1bk69d73dbb80520a94@mail.gmail.com> <67628d690901192353h5f73c9b2o8eb1fff87c82269e@mail.gmail.com> Message-ID: <40f637ec0901200408n99ff4dfg4f00a6a5c50a426c@mail.gmail.com> Hi Lukas, MAPersonEditor looks OK to me, the buttons are within the form, etc... Last night, after sending that email, I happened to click on the Save button without filling in any fields and the validation code was triggered (error msgs displayed regarding first and last name) so it appears the MAContainerComponent's save method is getting called. I will start from there tonight, inserting a break and see where the code goes. I am not the worlds greatest smalltalker and, while I have been enjoying the exploration of the Magriitte hierarchy, I am not yet that quick to be able to say, "oh that must be in the MAXXXXDecoration object" etc. I will let you know how it goes tonight. Warm regards John On Tue, Jan 20, 2009 at 2:53 AM, Lukas Renggli wrote: > > Can anyone tell me what it is that I have failed to implement? > > As far as I see your code looks ok. How does MAPersonEditor look like? > Is the button surrounded by a form? Does the button do an #answer: at > some point? > > Cheers, > Lukas > > -- > Lukas Renggli > http://www.lukas-renggli.ch > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -------------- next part -------------- An HTML attachment was scrubbed... URL: From p3anoman at gmail.com Wed Jan 21 02:05:54 2009 From: p3anoman at gmail.com (John M) Date: Tue, 20 Jan 2009 20:05:54 -0500 Subject: Magritte Tutorial - Person Manager: Save button does not answer In-Reply-To: <40f637ec0901200408n99ff4dfg4f00a6a5c50a426c@mail.gmail.com> References: <40f637ec0901191742g7a23af1bk69d73dbb80520a94@mail.gmail.com> <67628d690901192353h5f73c9b2o8eb1fff87c82269e@mail.gmail.com> <40f637ec0901200408n99ff4dfg4f00a6a5c50a426c@mail.gmail.com> Message-ID: <40f637ec0901201705h532c34d5wcac6346871182cf9@mail.gmail.com> After further investigations, it does not appear that anything is amiss. MAContainerComponent>>save method runs to completion and sends self answer: self model. As I step into that send it goes through the decorationDo: [ :each | each handleAnswer: anObject ] etc. But none of the objects seem to handle the answer lol. Can you tell I am a little bit lost? Then I decided to run the pierexample app from the dispatcher. Clicked on the Add link, went through the motions to add a new page(?), clicked save and I hit the breakpoint in MAContainerComponent>>save method htat I had set above. This is interesting, as I step through it and get to decorationChainDo: I noticed that the first decoration in the chain is a WAAnswerHandler, on my PersonManager test app it is a MAValidationDecoration then a MAFormDecoration, no WAAnswerHandler...could this be it? (I am attempting now to see who might add the WAAnswerHandler to the Pier form's decoration chain. heh Wish me luck lol) Warm regards John On Tue, Jan 20, 2009 at 7:08 AM, John M wrote: > Hi Lukas, > MAPersonEditor looks OK to me, the buttons are within the form, etc... > > Last night, after sending that email, I happened to click on the Save > button without filling in any fields and the validation code was triggered > (error msgs displayed regarding first and last name) so it appears the > MAContainerComponent's save method is getting called. I will start from > there tonight, inserting a break and see where the code goes. > > I am not the worlds greatest smalltalker and, while I have been enjoying > the exploration of the Magriitte hierarchy, I am not yet that quick to be > able to say, "oh that must be in the MAXXXXDecoration object" etc. I will > let you know how it goes tonight. > > Warm regards > John > > > > On Tue, Jan 20, 2009 at 2:53 AM, Lukas Renggli wrote: > >> > Can anyone tell me what it is that I have failed to implement? >> >> As far as I see your code looks ok. How does MAPersonEditor look like? >> Is the button surrounded by a form? Does the button do an #answer: at >> some point? >> >> Cheers, >> Lukas >> >> -- >> Lukas Renggli >> http://www.lukas-renggli.ch >> >> _______________________________________________ >> SmallWiki, Magritte, Pier and Related Tools ... >> https://www.iam.unibe.ch/mailman/listinfo/smallwiki >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From renggli at gmail.com Wed Jan 21 08:08:59 2009 From: renggli at gmail.com (Lukas Renggli) Date: Wed, 21 Jan 2009 08:08:59 +0100 Subject: Magritte Tutorial - Person Manager: Save button does not answer In-Reply-To: <40f637ec0901201705h532c34d5wcac6346871182cf9@mail.gmail.com> References: <40f637ec0901191742g7a23af1bk69d73dbb80520a94@mail.gmail.com> <67628d690901192353h5f73c9b2o8eb1fff87c82269e@mail.gmail.com> <40f637ec0901200408n99ff4dfg4f00a6a5c50a426c@mail.gmail.com> <40f637ec0901201705h532c34d5wcac6346871182cf9@mail.gmail.com> Message-ID: <67628d690901202308s5fe3f9bet26faee011fc82c9c@mail.gmail.com> > After further investigations, it does not appear that anything is amiss. > MAContainerComponent>>save method runs to completion and sends self answer: > self model. As I step into that send it goes through the decorationDo: [ > :each | each handleAnswer: anObject ] etc. But none of the objects seem to > handle the answer lol. Can you tell I am a little bit lost? I looks like the MAContainerComponent does an answer, but not the PersonManager? Is the Magritte Form a child of PersonManager? If so, you need to pass the answer to the outer component. As far as I understand your code, it looks like a different component answers than the one that was called. So in the PersonEditor where you create the Magritte Component do something like this: child := person asComponent. child addValidatedForm. child onAnswer: [ :m | self answer: m ] The last line captures the answer of the Magritte component and lets the PersonEditor pass it on. HTH, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From p3anoman at gmail.com Wed Jan 21 13:12:55 2009 From: p3anoman at gmail.com (John M) Date: Wed, 21 Jan 2009 07:12:55 -0500 Subject: Magritte Tutorial - Person Manager: Save button does not answer In-Reply-To: <67628d690901202308s5fe3f9bet26faee011fc82c9c@mail.gmail.com> References: <40f637ec0901191742g7a23af1bk69d73dbb80520a94@mail.gmail.com> <67628d690901192353h5f73c9b2o8eb1fff87c82269e@mail.gmail.com> <40f637ec0901200408n99ff4dfg4f00a6a5c50a426c@mail.gmail.com> <40f637ec0901201705h532c34d5wcac6346871182cf9@mail.gmail.com> <67628d690901202308s5fe3f9bet26faee011fc82c9c@mail.gmail.com> Message-ID: <40f637ec0901210412i46cf0c8fj108a8fc0cd8016f@mail.gmail.com> I'll be darned. That works! I am a little baffled that WAComponent>>call: adds an onAnswer: block but that is not enough...I guess I have a bit more to learn =).. Thank you for your help Lukas. Warm regards John On Wed, Jan 21, 2009 at 2:08 AM, Lukas Renggli wrote: > > After further investigations, it does not appear that anything is amiss. > > MAContainerComponent>>save method runs to completion and sends self > answer: > > self model. As I step into that send it goes through the decorationDo: [ > > :each | each handleAnswer: anObject ] etc. But none of the objects seem > to > > handle the answer lol. Can you tell I am a little bit lost? > > I looks like the MAContainerComponent does an answer, but not the > PersonManager? Is the Magritte Form a child of PersonManager? If so, > you need to pass the answer to the outer component. As far as I > understand your code, it looks like a different component answers than > the one that was called. > > So in the PersonEditor where you create the Magritte Component do > something like this: > > child := person asComponent. > child addValidatedForm. > child onAnswer: [ :m | self answer: m ] > > The last line captures the answer of the Magritte component and lets > the PersonEditor pass it on. > > HTH, > Lukas > > -- > Lukas Renggli > http://www.lukas-renggli.ch > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -------------- next part -------------- An HTML attachment was scrubbed... URL: From renggli at gmail.com Wed Jan 21 14:00:13 2009 From: renggli at gmail.com (Lukas Renggli) Date: Wed, 21 Jan 2009 14:00:13 +0100 Subject: Magritte Tutorial - Person Manager: Save button does not answer In-Reply-To: <40f637ec0901210412i46cf0c8fj108a8fc0cd8016f@mail.gmail.com> References: <40f637ec0901191742g7a23af1bk69d73dbb80520a94@mail.gmail.com> <67628d690901192353h5f73c9b2o8eb1fff87c82269e@mail.gmail.com> <40f637ec0901200408n99ff4dfg4f00a6a5c50a426c@mail.gmail.com> <40f637ec0901201705h532c34d5wcac6346871182cf9@mail.gmail.com> <67628d690901202308s5fe3f9bet26faee011fc82c9c@mail.gmail.com> <40f637ec0901210412i46cf0c8fj108a8fc0cd8016f@mail.gmail.com> Message-ID: <67628d690901210500y5af3dda8q1960446fe222aabf@mail.gmail.com> > I am a little baffled that WAComponent>>call: adds an onAnswer: block but > that is not enough...I guess I have a bit more to learn =).. Yes, it adds an answer block, but not to the place where the Magritte component answers from. Lukas -- Lukas Renggli http://www.lukas-renggli.ch From keith_hodges at yahoo.co.uk Wed Jan 21 18:10:57 2009 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Wed, 21 Jan 2009 17:10:57 +0000 Subject: MAMultipleOptionDescription options from instance In-Reply-To: <447D44D1-1A62-40EA-BD12-2902BF7A13AF@thinkris.com> References: <447D44D1-1A62-40EA-BD12-2902BF7A13AF@thinkris.com> Message-ID: <49775721.7060901@yahoo.co.uk> Phil at Work wrote: > Hi everyone, > > I've just got started with Magritte and have a couple of new-bee > questions. > > 1. I have a MAMultipleOptionDescription and the options come from > sending #availableOptions to the current instance. I can't see how i > would do this with #asDynamicObject > > 2. I have a SingleOptionDescription with a dynamic options object - > can i provide a display block or how would i control what is displayed > in the popup. I found an optionsAndLables but it doesn't take a > dynamic object. > > Does anyone know how to achieve this, or can point me to the > appropriate documentation. Sorry for the simple questions. > > Thanks in advance, > > Phil The Magritte-Scriptaculous package adds this kind of functionality, here is a description from my image, in which the accessor has an alternate accesor that is used to obtain the list of options. descriptionImprintChooser ^MASingleOptionDescription new accessor: ((#imprint asAccessor) visible: #hasImprint; options: #imprintOptions; tooltip: #imprintInfo); propertyAt: #labelSelector put: #chooserLabel; reference: WSUserImprint new; label: 'Imprint'; beRequired; bePersistOnChange; priority: 140; yourself Keith From siguctua at gmail.com Fri Jan 23 01:05:03 2009 From: siguctua at gmail.com (Igor Stasenko) Date: Fri, 23 Jan 2009 02:05:03 +0200 Subject: describing a complex data types with Magritte Message-ID: <4a5f5f320901221605o6063caaate0746132fb97ed0a@mail.gmail.com> Hello list, I'm trying to describe a model, which values could have complex or multiple types at once. In general , a question is how to provide a description of following fields: suppose you have a field, which in own turn having own fields, and you want to display them in-line i.e. position :: point(x,y) point::x = integer point::y = integer so i'd like to describe a position, as a compound data type, lets say, instances of class Point which having own fields (x,y). So, then in form i could have this field displayed like following: position x: [ ... ] y: [ ...] Another case, is when value can use multiple types. Following previous example, for position, now i reconsidered and want a position accept not only instances of Point, but instances of Point3D as well. So, then Magritte should be able to display my 'position' field editor like following: position * x: [ ... ] y: [ ...] * x: [ ... ] y: [ ...] z: [...] where * is radio button. Or there can be different view where user can select a type first, and then edit value: position [] [ value editor for selected type ] I don't want to get into detail how to render/build such editors, my main question, is how to describe such things in less painfull/controversial way using Magritte. -- Best regards, Igor Stasenko AKA sig. From philippe.marschall at gmail.com Sat Jan 24 09:56:39 2009 From: philippe.marschall at gmail.com (Philippe Marschall) Date: Sat, 24 Jan 2009 09:56:39 +0100 Subject: describing a complex data types with Magritte In-Reply-To: <4a5f5f320901221605o6063caaate0746132fb97ed0a@mail.gmail.com> References: <4a5f5f320901221605o6063caaate0746132fb97ed0a@mail.gmail.com> Message-ID: <66666f210901240056t46cf5af3j59bc8f20523960eb@mail.gmail.com> 2009/1/23, Igor Stasenko : > Hello list, > > I'm trying to describe a model, which values could have complex or > multiple types at once. > > In general , a question is how to provide a description of following fields: > > suppose you have a field, which in own turn having own fields, and you > want to display them in-line i.e. > > position :: point(x,y) > > point::x = integer > point::y = integer > > so i'd like to describe a position, as a compound data type, lets say, > instances of class Point which having own fields (x,y). > So, then in form i could have this field displayed like following: > > position x: [ ... ] y: [ ...] > > Another case, is when value can use multiple types. > Following previous example, for position, now i reconsidered and want > a position accept not only instances of Point, but instances of > Point3D as well. > So, then Magritte should be able to display my 'position' field editor > like following: > > position > * x: [ ... ] y: [ ...] > * x: [ ... ] y: [ ...] z: [...] > > where * is radio button. > Or there can be different view where user can select a type first, and > then edit value: > > position [] [ value editor for selected type ] > > I don't want to get into detail how to render/build such editors, my > main question, is how to describe such things in less > painfull/controversial way using Magritte. MARelationDescription new selectorAccessor: #position; classes: (Array with: Point with: Point3D); yourself of course Point and Point3D need to be described with Magritte. Cheers Philippe From philippe.marschall at gmail.com Sat Jan 24 11:06:31 2009 From: philippe.marschall at gmail.com (Philippe Marschall) Date: Sat, 24 Jan 2009 11:06:31 +0100 Subject: describing a complex data types with Magritte In-Reply-To: <66666f210901240056t46cf5af3j59bc8f20523960eb@mail.gmail.com> References: <4a5f5f320901221605o6063caaate0746132fb97ed0a@mail.gmail.com> <66666f210901240056t46cf5af3j59bc8f20523960eb@mail.gmail.com> Message-ID: <66666f210901240206g1650e2cdrbc00290032965f62@mail.gmail.com> 2009/1/24, Philippe Marschall : > 2009/1/23, Igor Stasenko : >> Hello list, >> >> I'm trying to describe a model, which values could have complex or >> multiple types at once. >> >> In general , a question is how to provide a description of following >> fields: >> >> suppose you have a field, which in own turn having own fields, and you >> want to display them in-line i.e. >> >> position :: point(x,y) >> >> point::x = integer >> point::y = integer >> >> so i'd like to describe a position, as a compound data type, lets say, >> instances of class Point which having own fields (x,y). >> So, then in form i could have this field displayed like following: >> >> position x: [ ... ] y: [ ...] >> >> Another case, is when value can use multiple types. >> Following previous example, for position, now i reconsidered and want >> a position accept not only instances of Point, but instances of >> Point3D as well. >> So, then Magritte should be able to display my 'position' field editor >> like following: >> >> position >> * x: [ ... ] y: [ ...] >> * x: [ ... ] y: [ ...] z: [...] >> >> where * is radio button. >> Or there can be different view where user can select a type first, and >> then edit value: >> >> position [] [ value editor for selected type ] >> >> I don't want to get into detail how to render/build such editors, my >> main question, is how to describe such things in less >> painfull/controversial way using Magritte. > > MARelationDescription new > selectorAccessor: #position; > classes: (Array with: Point with: Point3D); > yourself > > of course Point and Point3D need to be described with Magritte. That should be MAToOneRelationDescription not MARelationDescription. Cheers Philippe From siguctua at gmail.com Sat Jan 24 14:05:40 2009 From: siguctua at gmail.com (Igor Stasenko) Date: Sat, 24 Jan 2009 15:05:40 +0200 Subject: describing a complex data types with Magritte In-Reply-To: <66666f210901240206g1650e2cdrbc00290032965f62@mail.gmail.com> References: <4a5f5f320901221605o6063caaate0746132fb97ed0a@mail.gmail.com> <66666f210901240056t46cf5af3j59bc8f20523960eb@mail.gmail.com> <66666f210901240206g1650e2cdrbc00290032965f62@mail.gmail.com> Message-ID: <4a5f5f320901240505y71d5a8fare754d808ec39cda7@mail.gmail.com> 2009/1/24 Philippe Marschall : > 2009/1/24, Philippe Marschall : >> 2009/1/23, Igor Stasenko : >>> Hello list, >>> >>> I'm trying to describe a model, which values could have complex or >>> multiple types at once. >>> >>> In general , a question is how to provide a description of following >>> fields: >>> >>> suppose you have a field, which in own turn having own fields, and you >>> want to display them in-line i.e. >>> >>> position :: point(x,y) >>> >>> point::x = integer >>> point::y = integer >>> >>> so i'd like to describe a position, as a compound data type, lets say, >>> instances of class Point which having own fields (x,y). >>> So, then in form i could have this field displayed like following: >>> >>> position x: [ ... ] y: [ ...] >>> >>> Another case, is when value can use multiple types. >>> Following previous example, for position, now i reconsidered and want >>> a position accept not only instances of Point, but instances of >>> Point3D as well. >>> So, then Magritte should be able to display my 'position' field editor >>> like following: >>> >>> position >>> * x: [ ... ] y: [ ...] >>> * x: [ ... ] y: [ ...] z: [...] >>> >>> where * is radio button. >>> Or there can be different view where user can select a type first, and >>> then edit value: >>> >>> position [] [ value editor for selected type ] >>> >>> I don't want to get into detail how to render/build such editors, my >>> main question, is how to describe such things in less >>> painfull/controversial way using Magritte. >> >> MARelationDescription new >> selectorAccessor: #position; >> classes: (Array with: Point with: Point3D); >> yourself >> >> of course Point and Point3D need to be described with Magritte. > > That should be MAToOneRelationDescription not MARelationDescription. > Thanks, Philippe > Cheers > Philippe > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -- Best regards, Igor Stasenko AKA sig. From siguctua at gmail.com Sat Jan 24 14:17:52 2009 From: siguctua at gmail.com (Igor Stasenko) Date: Sat, 24 Jan 2009 15:17:52 +0200 Subject: describing a complex data types with Magritte In-Reply-To: <4a5f5f320901240505y71d5a8fare754d808ec39cda7@mail.gmail.com> References: <4a5f5f320901221605o6063caaate0746132fb97ed0a@mail.gmail.com> <66666f210901240056t46cf5af3j59bc8f20523960eb@mail.gmail.com> <66666f210901240206g1650e2cdrbc00290032965f62@mail.gmail.com> <4a5f5f320901240505y71d5a8fare754d808ec39cda7@mail.gmail.com> Message-ID: <4a5f5f320901240517v3431c857h49dae38454cae545@mail.gmail.com> Another question, what if i want from user to be able to choose one of possible values: * string 'foo' * string 'bar' * instance of Point (and if choosen, ask to enter x,y values) how i can describe that? 2009/1/24 Igor Stasenko : > 2009/1/24 Philippe Marschall : >> 2009/1/24, Philippe Marschall : >>> 2009/1/23, Igor Stasenko : >>>> Hello list, >>>> >>>> I'm trying to describe a model, which values could have complex or >>>> multiple types at once. >>>> >>>> In general , a question is how to provide a description of following >>>> fields: >>>> >>>> suppose you have a field, which in own turn having own fields, and you >>>> want to display them in-line i.e. >>>> >>>> position :: point(x,y) >>>> >>>> point::x = integer >>>> point::y = integer >>>> >>>> so i'd like to describe a position, as a compound data type, lets say, >>>> instances of class Point which having own fields (x,y). >>>> So, then in form i could have this field displayed like following: >>>> >>>> position x: [ ... ] y: [ ...] >>>> >>>> Another case, is when value can use multiple types. >>>> Following previous example, for position, now i reconsidered and want >>>> a position accept not only instances of Point, but instances of >>>> Point3D as well. >>>> So, then Magritte should be able to display my 'position' field editor >>>> like following: >>>> >>>> position >>>> * x: [ ... ] y: [ ...] >>>> * x: [ ... ] y: [ ...] z: [...] >>>> >>>> where * is radio button. >>>> Or there can be different view where user can select a type first, and >>>> then edit value: >>>> >>>> position [] [ value editor for selected type ] >>>> >>>> I don't want to get into detail how to render/build such editors, my >>>> main question, is how to describe such things in less >>>> painfull/controversial way using Magritte. >>> >>> MARelationDescription new >>> selectorAccessor: #position; >>> classes: (Array with: Point with: Point3D); >>> yourself >>> >>> of course Point and Point3D need to be described with Magritte. >> >> That should be MAToOneRelationDescription not MARelationDescription. >> > Thanks, Philippe > >> Cheers >> Philippe >> >> _______________________________________________ >> SmallWiki, Magritte, Pier and Related Tools ... >> https://www.iam.unibe.ch/mailman/listinfo/smallwiki >> > > > > -- > Best regards, > Igor Stasenko AKA sig. > -- Best regards, Igor Stasenko AKA sig. From keith_hodges at yahoo.co.uk Sat Jan 24 16:58:42 2009 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Sat, 24 Jan 2009 15:58:42 +0000 Subject: describing a complex data types with Magritte In-Reply-To: <4a5f5f320901240517v3431c857h49dae38454cae545@mail.gmail.com> References: <4a5f5f320901221605o6063caaate0746132fb97ed0a@mail.gmail.com> <66666f210901240056t46cf5af3j59bc8f20523960eb@mail.gmail.com> <66666f210901240206g1650e2cdrbc00290032965f62@mail.gmail.com> <4a5f5f320901240505y71d5a8fare754d808ec39cda7@mail.gmail.com> <4a5f5f320901240517v3431c857h49dae38454cae545@mail.gmail.com> Message-ID: <497B3AB2.8040808@yahoo.co.uk> Igor Stasenko wrote: > Another question, > what if i want from user to be able to choose one of possible values: > > * string 'foo' > * string 'bar' > * instance of Point (and if choosen, ask to enter x,y values) > Your point class needs to have a description of its own, i.e. descriptionX descriptionY. Then when an edit form is presented it will be built from the descriptions Keith From siguctua at gmail.com Sat Jan 24 17:27:08 2009 From: siguctua at gmail.com (Igor Stasenko) Date: Sat, 24 Jan 2009 18:27:08 +0200 Subject: describing a complex data types with Magritte In-Reply-To: <497B3AB2.8040808@yahoo.co.uk> References: <4a5f5f320901221605o6063caaate0746132fb97ed0a@mail.gmail.com> <66666f210901240056t46cf5af3j59bc8f20523960eb@mail.gmail.com> <66666f210901240206g1650e2cdrbc00290032965f62@mail.gmail.com> <4a5f5f320901240505y71d5a8fare754d808ec39cda7@mail.gmail.com> <4a5f5f320901240517v3431c857h49dae38454cae545@mail.gmail.com> <497B3AB2.8040808@yahoo.co.uk> Message-ID: <4a5f5f320901240827t66453f20i698aac41b605dbc@mail.gmail.com> 2009/1/24 Keith Hodges : > Igor Stasenko wrote: >> Another question, >> what if i want from user to be able to choose one of possible values: >> >> * string 'foo' >> * string 'bar' >> * instance of Point (and if choosen, ask to enter x,y values) >> > Your point class needs to have a description of its own, i.e. > descriptionX descriptionY. > > Then when an edit form is presented it will be built from the descriptions > exactly, except one little thing: how i can tell that it accepts either 'foo' or 'bar' or instance of Point? MASingleOptionDescription? > Keith > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -- Best regards, Igor Stasenko AKA sig. From philippe.marschall at gmail.com Sat Jan 24 18:27:44 2009 From: philippe.marschall at gmail.com (Philippe Marschall) Date: Sat, 24 Jan 2009 18:27:44 +0100 Subject: describing a complex data types with Magritte In-Reply-To: <4a5f5f320901240517v3431c857h49dae38454cae545@mail.gmail.com> References: <4a5f5f320901221605o6063caaate0746132fb97ed0a@mail.gmail.com> <66666f210901240056t46cf5af3j59bc8f20523960eb@mail.gmail.com> <66666f210901240206g1650e2cdrbc00290032965f62@mail.gmail.com> <4a5f5f320901240505y71d5a8fare754d808ec39cda7@mail.gmail.com> <4a5f5f320901240517v3431c857h49dae38454cae545@mail.gmail.com> Message-ID: <66666f210901240927g404979b0w884b27fae5946683@mail.gmail.com> 2009/1/24, Igor Stasenko : > Another question, > what if i want from user to be able to choose one of possible values: > > * string 'foo' > * string 'bar' > * instance of Point (and if choosen, ask to enter x,y values) > > how i can describe that? You have to make you own description that is a bit like MASingleOptionDescription and a bit like MAToOneRelationDescription. And a matching editor as well. That requires you to wrap your head around Magritte visitors but once you're done you know everything there is to know about Magritte. Cheers Philippe From frank.shearar at angband.za.org Sat Jan 24 21:13:13 2009 From: frank.shearar at angband.za.org (Frank Shearar) Date: Sat, 24 Jan 2009 22:13:13 +0200 Subject: Pier/SmallWiki info on Wikipedia Message-ID: <02a501c97e60$312fdbb0$0600000a@newtechnologies.org.uk> Hi everyone, A friend of mine just asked me if there were wikis for scheme/lisp/smalltalk and I said "Sure, at least for the latter two" and mentioned Pier. He told me about http://en.wikipedia.org/wiki/Comparison_of_wiki_software and said "if it isn't in there it doesn't exist". Well, I thought I'd add Pier to the list. I've filled in what I know, and what I can find on www.piercms.com. I wonder if those more knowledgable than I could take a look and correct any errors I might have inadvertantly made. Thanks, frank From renggli at gmail.com Sat Jan 24 21:41:06 2009 From: renggli at gmail.com (Lukas Renggli) Date: Sat, 24 Jan 2009 21:41:06 +0100 Subject: Pier/SmallWiki info on Wikipedia In-Reply-To: <02a501c97e60$312fdbb0$0600000a@newtechnologies.org.uk> References: <02a501c97e60$312fdbb0$0600000a@newtechnologies.org.uk> Message-ID: <67628d690901241241l4439b588jcfc63db5fbd2ed8@mail.gmail.com> > I wonder if those more knowledgable than I could take a look and correct any > errors I might have inadvertantly made. Looks cool. Thank you for adding it. Pier is already listed in the listing of CMS: http://en.wikipedia.org/wiki/Category:Open_source_content_management_systems Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From michaelgr at akapost.com Sun Jan 25 01:50:22 2009 From: michaelgr at akapost.com (michaelgr at akapost.com) Date: Sun, 25 Jan 2009 01:50:22 +0100 Subject: magritte many-to-many Message-ID: <20090125005021.DC65857AE4@mail.akapost.com> Hello. I am new to Magritte and I am searching for a way to describe many-to-many relationship with Magritte. I just found one-to-one and one-to-many relationships. Is there a possibility to describe such relationships or do I have to use two special one-to-many relationships (and how)? Thanks, Michael From alexandre at bergel.eu Tue Jan 27 14:55:10 2009 From: alexandre at bergel.eu (Alexandre Bergel) Date: Tue, 27 Jan 2009 14:55:10 +0100 Subject: "What's new" component Message-ID: <088A3109-7EEA-4F3C-8BD2-A78A3B71EE39@bergel.eu> Dear List, I would like to increase the number of news displayed by the component titled "What's new". Currently, only 3 elements is displayed. Is there a way to increase it? cheers, Alexandre -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;. From renggli at gmail.com Tue Jan 27 16:18:24 2009 From: renggli at gmail.com (Lukas Renggli) Date: Tue, 27 Jan 2009 16:18:24 +0100 Subject: "What's new" component In-Reply-To: <088A3109-7EEA-4F3C-8BD2-A78A3B71EE39@bergel.eu> References: <088A3109-7EEA-4F3C-8BD2-A78A3B71EE39@bergel.eu> Message-ID: <67628d690901270718t4dc183ccm4fdc5678d449d702@mail.gmail.com> > I would like to increase the number of news displayed by the component > titled "What's new". Currently, only 3 elements is displayed. > Is there a way to increase it? If you refer to the PostTicker component, then this is the setting 'Number of Posts' in the settings pane. Lukas -- Lukas Renggli http://www.lukas-renggli.ch From renggli at gmail.com Thu Jan 29 18:14:27 2009 From: renggli at gmail.com (Lukas Renggli) Date: Thu, 29 Jan 2009 18:14:27 +0100 Subject: [Seaside] Pier questions In-Reply-To: References: Message-ID: <67628d690901290914xd531123v879c3eda492cadbb@mail.gmail.com> Hi Noury > Hope this is the right place to post a question about Pier. Sure, that's fine. There is also a dedicated mailing list, see here: . > I'm currently looking at Pier and I'm wondering: > -If there is a way to attach tags to blog posts and use tags for selecting a > subset of posts When you edit the post there is an input field for tags. Just add the tags separated by spaces. There are several widgets that go together with the blog. Go to the environment of the blog and add the widget "Tags" in the section "Pier Blog". You can see an example of this widget on my blog , along with the "Archive" widget. Go to the settings to change the preferences of these widgets. > -In persistency setup, there is a field shared between "history persistency" > and "image persistency" named: "max history". What does it refer to? In the > help-popup it is said that this is the max number of commands history. Which > commands are these? How do I restore them ? All executed commands are logged in the history, if you enable one of these persistency strategies. This includes adding, removing, moving, copying, editing, chaning the settings, ... of a page. The number given in that settings says how many of these commands are remembered. They are used to generate RSS feeds of the changes and can also be used to restore previous states. To see a list of changes go to the changes view. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch