From marianopeck at gmail.com Wed Apr 1 04:09:50 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Tue, 31 Mar 2009 23:09:50 -0300 Subject: Question with different pictures in menu Message-ID: Hi folks, I have a menu with images as background and the first and the last ones are different from the others (the one that are between them). See for example this: http://www.templatesbox.com/premium-templates/website-templates/template213.htm "About us" and "Contacts" are different from "adventure guide", "tours review" and "bike news". How can I specify different classes for them ? this is my css: I have something like this in my css: .menu ul { margin: 0; margin-top: 0em; padding-bottom: 0em; list-style-type: none; } .menu ul li { float: left; display: inline; margin: 0px; margin-right: 0px; list-style-type: none; background-image: url(menutemplate0.gif); border: 0px; width: 170px; height: 40px; text-align: center; align: center; vertical-align: middle line-height: 40px; } .menu li a { align: center; padding-left: 30px; } Thanks in advance, Mariano -------------- next part -------------- An HTML attachment was scrubbed... URL: From renggli at gmail.com Wed Apr 1 09:12:57 2009 From: renggli at gmail.com (Lukas Renggli) Date: Wed, 1 Apr 2009 09:12:57 +0200 Subject: Question with different pictures in menu In-Reply-To: References: Message-ID: <67628d690904010012y3454e64ev5cf57488053aeee0@mail.gmail.com> > "About us" and "Contacts" are different from "adventure guide", "tours > review" and "bike news". > > How can I specify different classes for them ? If you use the menu widget, you could specify the menu as such: - *about|class=first* - *adventure* - *events* - *contacts|class=last* However, this adds the class to the link. In general it is not possible to add additional classes to widgets without creating your own subclass. A common and rather simple trick of CSS designers is to define different background image on '.menu', '.menu ul', '.menu ul li' that overlap each other to get the desired effect. Lukas -- Lukas Renggli http://www.lukas-renggli.ch From marianopeck at gmail.com Wed Apr 1 22:14:23 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Wed, 1 Apr 2009 19:14:23 -0100 Subject: Pier - Advanced Search In-Reply-To: References: <65F330CB-65CD-4E0E-B100-35CA910DC67D@mac.com> <67628d690902140134t71ccf152ub4114120af914016@mail.gmail.com> Message-ID: On Sat, Mar 28, 2009 at 10:13 PM, John Borden wrote: > All, > Is anyone aware of an advanced search for pier, such as case sensitive, > boolean (this phrase and/or/but-not that phrase), date related, etc? If > not, I'll start looking into adding it to the PRFullTextSearch class. > Thanks, > John > Yes. Please do!!! This would be very useful for an application I am making now. So, consider me as a beta tester if you want :) Cheers, Mariano > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -------------- next part -------------- An HTML attachment was scrubbed... URL: From marianopeck at gmail.com Thu Apr 2 00:28:18 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Wed, 1 Apr 2009 19:28:18 -0300 Subject: Question with different pictures in menu In-Reply-To: <67628d690904010012y3454e64ev5cf57488053aeee0@mail.gmail.com> References: <67628d690904010012y3454e64ev5cf57488053aeee0@mail.gmail.com> Message-ID: On Wed, Apr 1, 2009 at 4:12 AM, Lukas Renggli wrote: > > "About us" and "Contacts" are different from "adventure guide", "tours > > review" and "bike news". > > > > How can I specify different classes for them ? > > If you use the menu widget, you could specify the menu as such: > > - *about|class=first* > - *adventure* > - *events* > - *contacts|class=last* > It seems it doesn't work. The CSS class is ignored. I used Firebug and I see just .menu ul li for those divs. I did this: - */Rutas|class=zaraza* > > However, this adds the class to the link. In general it is not > possible to add additional classes to widgets without creating your > own subclass. Sorry. I didn't understood that. > > > A common and rather simple trick of CSS designers is to define > different background image on '.menu', '.menu ul', '.menu ul li' that > overlap each other to get the desired effect. > But this actually didn't solve my problem. Ok, I can define differents background images but where I tell them each menu which background image or css class to use ? Thanks for the help. Mariano > > 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 keith_hodges at yahoo.co.uk Thu Apr 2 01:18:57 2009 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Thu, 02 Apr 2009 00:18:57 +0100 Subject: Question with different pictures in menu In-Reply-To: References: <67628d690904010012y3454e64ev5cf57488053aeee0@mail.gmail.com> Message-ID: <49D3F661.6090908@yahoo.co.uk> > > But this actually didn't solve my problem. Ok, I can define differents > background images but where I tell them each menu which background > image or css class to use ? > > > Thanks for the help. > > Mariano For widgets you can og course simply embed them in a div
+widget+
Keith From marianopeck at gmail.com Thu Apr 2 01:27:07 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Wed, 1 Apr 2009 20:27:07 -0300 Subject: Question with different pictures in menu In-Reply-To: <49D3F661.6090908@yahoo.co.uk> References: <67628d690904010012y3454e64ev5cf57488053aeee0@mail.gmail.com> <49D3F661.6090908@yahoo.co.uk> Message-ID: On Wed, Apr 1, 2009 at 8:18 PM, Keith Hodges wrote: > > > > > But this actually didn't solve my problem. Ok, I can define differents > > background images but where I tell them each menu which background > > image or css class to use ? > > > > > > Thanks for the help. > > > > Mariano > For widgets you can og course simply embed them in a div > >
+widget+
I am using PRMenuWidget, with this: - *Inicio>/* - *Quienes Somos>/Quienes somos* - *Contactenos>/Contactenos* - *Lugares y Destinos>/LugaresDestino* - *Se parte>/Se Parte* - */Rutas|class=first* How can I do that there ? thanks mariano > > > Keith > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -------------- next part -------------- An HTML attachment was scrubbed... URL: From keith_hodges at yahoo.co.uk Thu Apr 2 01:42:34 2009 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Thu, 02 Apr 2009 00:42:34 +0100 Subject: Question with different pictures in menu In-Reply-To: References: <67628d690904010012y3454e64ev5cf57488053aeee0@mail.gmail.com> <49D3F661.6090908@yahoo.co.uk> Message-ID: <49D3FBEA.6050702@yahoo.co.uk> > > I am using PRMenuWidget, with this: > > - *Inicio>/* > - *Quienes Somos>/Quienes somos* > - *Contactenos>/Contactenos* > - *Lugares y Destinos>/LugaresDestino* > - *Se parte>/Se Parte* > - */Rutas|class=first* > > > How can I do that there ? > - */Info/Where To Buy* -
*/Info/FAQ*
References: <67628d690904010012y3454e64ev5cf57488053aeee0@mail.gmail.com> <49D3F661.6090908@yahoo.co.uk> Message-ID: <034C1626-D410-4DF3-93E5-949F60D16795@iam.unibe.ch> Hi, If the class first specified as -*/Rutas|class=first* does not appear in html, you probably have an older Pier image. In 1.1.1 the code should work. Anyway, if that does not work, you can also write the followings: -
*/Rutas*
This must work. Cheers, Doru On 2 Apr 2009, at 01:27, Mariano Martinez Peck wrote: > > > On Wed, Apr 1, 2009 at 8:18 PM, Keith Hodges > wrote: > > > > > But this actually didn't solve my problem. Ok, I can define > differents > > background images but where I tell them each menu which background > > image or css class to use ? > > > > > > Thanks for the help. > > > > Mariano > For widgets you can og course simply embed them in a div > >
+widget+
> > I am using PRMenuWidget, with this: > > - *Inicio>/* > - *Quienes Somos>/Quienes somos* > - *Contactenos>/Contactenos* > - *Lugares y Destinos>/LugaresDestino* > - *Se parte>/Se Parte* > - */Rutas|class=first* > > > How can I do that there ? > > thanks > > mariano > > > > > Keith > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki -- www.tudorgirba.com "Presenting is storytelling." From cdrick65 at gmail.com Thu Apr 2 17:18:13 2009 From: cdrick65 at gmail.com (=?UTF-8?B?Q8OpZHJpY2sgQsOpbGVy?=) Date: Thu, 2 Apr 2009 17:18:13 +0200 Subject: Pier - Advanced Search In-Reply-To: References: <65F330CB-65CD-4E0E-B100-35CA910DC67D@mac.com> <67628d690902140134t71ccf152ub4114120af914016@mail.gmail.com> Message-ID: I just had a quick look... It seems they refer to an inst var "creation" in PRStructure... Does such a var existed before ? Thanks 2009/4/1 Mariano Martinez Peck : > > > On Sat, Mar 28, 2009 at 10:13 PM, John Borden wrote: >> >> All, >> Is anyone aware of an advanced search for pier, such as case sensitive, >> boolean (this phrase and/or/but-not that phrase), date related, etc? ?If >> not, I'll start looking into adding it to the PRFullTextSearch class. >> Thanks, >> John > > Yes. Please do!!!? This would be very useful for an application I am making > now. So, consider me as a beta tester if you want :) > > Cheers, > > Mariano > >> >> _______________________________________________ >> SmallWiki, Magritte, Pier and Related Tools ... >> https://www.iam.unibe.ch/mailman/listinfo/smallwiki > > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -- C?drick From marianopeck at gmail.com Fri Apr 3 03:06:18 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Thu, 2 Apr 2009 22:06:18 -0300 Subject: Question with different pictures in menu In-Reply-To: <034C1626-D410-4DF3-93E5-949F60D16795@iam.unibe.ch> References: <67628d690904010012y3454e64ev5cf57488053aeee0@mail.gmail.com> <49D3F661.6090908@yahoo.co.uk> <034C1626-D410-4DF3-93E5-949F60D16795@iam.unibe.ch> Message-ID: On Wed, Apr 1, 2009 at 8:43 PM, Tudor Girba wrote: > Hi, > > If the class first specified as -*/Rutas|class=first* does not appear in > html, you probably have an older Pier image. In 1.1.1 the code should work. > No. It doesn't appear in html. I am using last 1.1.1 from Universe. > > Anyway, if that does not work, you can also write the followings: > -
*/Rutas*
> This must work. > Yes. This actually works :) Thanks!!! Mariano > > Cheers, > Doru > > > > On 2 Apr 2009, at 01:27, Mariano Martinez Peck wrote: > > >> >> On Wed, Apr 1, 2009 at 8:18 PM, Keith Hodges >> wrote: >> >> > >> > But this actually didn't solve my problem. Ok, I can define differents >> > background images but where I tell them each menu which background >> > image or css class to use ? >> > >> > >> > Thanks for the help. >> > >> > Mariano >> For widgets you can og course simply embed them in a div >> >>
+widget+
>> >> I am using PRMenuWidget, with this: >> >> - *Inicio>/* >> - *Quienes Somos>/Quienes somos* >> - *Contactenos>/Contactenos* >> - *Lugares y Destinos>/LugaresDestino* >> - *Se parte>/Se Parte* >> - */Rutas|class=first* >> >> >> How can I do that there ? >> >> thanks >> >> mariano >> >> >> >> >> Keith >> >> >> _______________________________________________ >> SmallWiki, Magritte, Pier and Related Tools ... >> https://www.iam.unibe.ch/mailman/listinfo/smallwiki >> >> >> _______________________________________________ >> SmallWiki, Magritte, Pier and Related Tools ... >> https://www.iam.unibe.ch/mailman/listinfo/smallwiki >> > > -- > www.tudorgirba.com > > "Presenting is storytelling." > > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -------------- next part -------------- An HTML attachment was scrubbed... URL: From keith_hodges at yahoo.co.uk Fri Apr 3 23:14:48 2009 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Fri, 03 Apr 2009 22:14:48 +0100 Subject: isEditable Message-ID: <49D67C48.8090506@yahoo.co.uk> I discover that it is possible to add #isEditable to a PRWidget, so that the setting will appear in the Edit rather than the settings page. A nice bug I think. However, isEditable's are not currently ignored from the settingsDescription. Keith From renggli at gmail.com Fri Apr 3 23:57:17 2009 From: renggli at gmail.com (Lukas Renggli) Date: Fri, 3 Apr 2009 23:57:17 +0200 Subject: isEditable In-Reply-To: <49D67C48.8090506@yahoo.co.uk> References: <49D67C48.8090506@yahoo.co.uk> Message-ID: <67628d690904031457m638b07ffn290c2db9e8b10d6b@mail.gmail.com> There is #isEditable and #isSetting. If both answer true, the same property appears in the edit and the settings command. Obviously. The separation is made so that editors are able to edit the contents without giving them the permission to change other things like the design. Lukas On 4/3/09, Keith Hodges wrote: > I discover that it is possible to add #isEditable to a PRWidget, so that > the setting will appear in the Edit rather than the settings page. A > nice bug I think. > > However, isEditable's are not currently ignored from the > settingsDescription. > > Keith > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -- Lukas Renggli http://www.lukas-renggli.ch From marianopeck at gmail.com Mon Apr 6 00:33:49 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Sun, 5 Apr 2009 19:33:49 -0300 Subject: Question with PRMenuWidget Message-ID: Hi everybody, I have a question with PRMenuWidget. I have a menu where I have background images for each menu item and the name of the link is inside the image. For example, I have a home.gif where that picture has the background image with the "HOME" written inside. If I do this (in settings): - *Contact us>/Contact us* PRMenuWidget puts me in menu ul li the name ("contact us) and there is the href. However, what I want is: - Don't show any text in menu ul li - The href I want it for the whole menu ul li (the whole div) not only the text. I mean, I want that the user can click all over the menu background image. Now, the question is, can I do this with PRMenuWidget ? If true, how ? If not, what should I do ? make my own menu seaside component ? Thanks in advance for the help. Mariano -------------- next part -------------- An HTML attachment was scrubbed... URL: From p3anoman at gmail.com Mon Apr 6 01:24:36 2009 From: p3anoman at gmail.com (John McKeon) Date: Sun, 5 Apr 2009 19:24:36 -0400 Subject: Question with PRMenuWidget In-Reply-To: References: Message-ID: <40f637ec0904051624ua7ab575v28ac5b2cd2631060@mail.gmail.com> On Sun, Apr 5, 2009 at 6:33 PM, Mariano Martinez Peck wrote: > Hi everybody, > > I have a question with PRMenuWidget. I have a menu where I have background > images for each menu item and the name of the link is inside the image. For > example, I have a home.gif where that picture has the background image with > the "HOME" written inside. > > If I do this (in settings): > > - *Contact us>/Contact us* > > PRMenuWidget puts me in menu ul li the name ("contact us) and there is the > href. However, what I want is: > > - Don't show any text in menu ul li Use a reference to the image in the link so it would be - *+homeImage+>/* - *+contactImage+>/contact* then make the references point to the desired image. You'll probably need to fiddle with the css in this case too. > > - The href I want it for the whole menu ul li (the whole div) not only the > text. I mean, I want that the user can click all over the menu background > image. > For this effect I make the menu a table as in: | *Home>/* | *Contact Us>/contact* | etc ), with the same fancy background image for each cell. Then, in the CSS I use .menu td a { width:100%; padding-left: 3em; padding-right: 3em; } where the amount of padding will vary depending on how may menu items you have. CSS is one of my weak points so I usually have to fiddle with padding and margins to make everything "fit" nicely, and I usually make the left or right border solid 1px to get the visual separation. I have no idea if this is the best way to do it. Hope this helps John > > Now, the question is, can I do this with PRMenuWidget ? If true, how ? If > not, what should I do ? make my own menu seaside component ? > > Thanks in advance for the help. > > Mariano > > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -------------- next part -------------- An HTML attachment was scrubbed... URL: From marianopeck at gmail.com Mon Apr 6 04:14:59 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Sun, 5 Apr 2009 23:14:59 -0300 Subject: Question with PRMenuWidget In-Reply-To: <40f637ec0904051624ua7ab575v28ac5b2cd2631060@mail.gmail.com> References: <40f637ec0904051624ua7ab575v28ac5b2cd2631060@mail.gmail.com> Message-ID: On Sun, Apr 5, 2009 at 8:24 PM, John McKeon wrote: > > > On Sun, Apr 5, 2009 at 6:33 PM, Mariano Martinez Peck < > marianopeck at gmail.com> wrote: > >> Hi everybody, >> >> I have a question with PRMenuWidget. I have a menu where I have background >> images for each menu item and the name of the link is inside the image. For >> example, I have a home.gif where that picture has the background image with >> the "HOME" written inside. >> >> If I do this (in settings): >> >> - *Contact us>/Contact us* >> >> PRMenuWidget puts me in menu ul li the name ("contact us) and there is the >> href. However, what I want is: >> >> - Don't show any text in menu ul li > > > Use a reference to the image in the link so it would be > - *+homeImage+>/* > - *+contactImage+>/contact* then make the references point to the desired > image. You'll probably need to fiddle with the css in this case too. > > John, first of all, thanks for the help :) Ok, this is a good solution, but I still have some problems: - I don't want to have my css images in Pier, but in library. - I have 2 images per menu item: the unslected one and the selected one (hoover). I need to set this trought CSS. - I think I need to set width for each menu item > > >> - The href I want it for the whole menu ul li (the whole div) not only the >> text. I mean, I want that the user can click all over the menu background >> image. >> > > For this effect I make the menu a table as in: | *Home>/* | *Contact > Us>/contact* | etc ), with the same fancy background image for each cell. > Then, in the CSS I use .menu td a { width:100%; padding-left: 3em; > padding-right: 3em; } where the amount of padding will vary depending on how > may menu items you have. CSS is one of my weak points so I usually have to > fiddle with padding and margins to make everything "fit" nicely, and I > usually make the left or right border solid 1px to get the visual > separation. I have no idea if this is the best way to do it. > John, I didn't understood. I need to have different background images for each menu item. Does that help me? Sorry, but I am very nowbie with CSS (and also with pier and seaside haha). Thanks > > Hope this helps > John > > >> >> Now, the question is, can I do this with PRMenuWidget ? If true, how ? If >> not, what should I do ? make my own menu seaside component ? >> >> Thanks in advance for the help. >> >> Mariano >> >> >> >> _______________________________________________ >> SmallWiki, Magritte, Pier and Related Tools ... >> https://www.iam.unibe.ch/mailman/listinfo/smallwiki >> > > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -------------- next part -------------- An HTML attachment was scrubbed... URL: From keith_hodges at yahoo.co.uk Mon Apr 6 07:32:24 2009 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Mon, 06 Apr 2009 06:32:24 +0100 Subject: problem with imges in latest In-Reply-To: References: <40f637ec0904051624ua7ab575v28ac5b2cd2631060@mail.gmail.com> Message-ID: <49D993E8.6070701@yahoo.co.uk> Not sure if it is just me but I had to add to get images to render at all. PRViewRenderer - visitFile: aStructure html image altText: aStructure title; url: (aStructure file urlFor: html context) Keith From renggli at gmail.com Mon Apr 6 07:45:06 2009 From: renggli at gmail.com (Lukas Renggli) Date: Mon, 6 Apr 2009 07:45:06 +0200 Subject: problem with imges in latest In-Reply-To: <49D993E8.6070701@yahoo.co.uk> References: <40f637ec0904051624ua7ab575v28ac5b2cd2631060@mail.gmail.com> <49D993E8.6070701@yahoo.co.uk> Message-ID: <67628d690904052245g506f9676n7709d2a547c634cb@mail.gmail.com> > Not sure if it is just me but I had to add to get images to render at all. We fixed that on saturday. Lukas On Mon, Apr 6, 2009 at 7:32 AM, Keith Hodges wrote: > > PRViewRenderer - visitFile: aStructure > > ? ?html image > ? ? ? ?altText: aStructure title; > ? ? ? ?url: (aStructure file urlFor: html context) > > > Keith > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -- Lukas Renggli http://www.lukas-renggli.ch From keith_hodges at yahoo.co.uk Mon Apr 6 13:08:16 2009 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Mon, 06 Apr 2009 12:08:16 +0100 Subject: problem with imges in latest In-Reply-To: <67628d690904052245g506f9676n7709d2a547c634cb@mail.gmail.com> References: <40f637ec0904051624ua7ab575v28ac5b2cd2631060@mail.gmail.com> <49D993E8.6070701@yahoo.co.uk> <67628d690904052245g506f9676n7709d2a547c634cb@mail.gmail.com> Message-ID: <49D9E2A0.3000209@yahoo.co.uk> Lukas Renggli wrote: >> Not sure if it is just me but I had to add to get images to render at all. >> > > We fixed that on saturday. > > Lukas > > I loaded latest of everything on Monday am Keith From p3anoman at gmail.com Mon Apr 6 14:23:23 2009 From: p3anoman at gmail.com (John McKeon) Date: Mon, 6 Apr 2009 08:23:23 -0400 Subject: Question with PRMenuWidget In-Reply-To: References: <40f637ec0904051624ua7ab575v28ac5b2cd2631060@mail.gmail.com> Message-ID: <40f637ec0904060523p5daa6890sa0cf6ca9d35a6828@mail.gmail.com> Mariano, On Sun, Apr 5, 2009 at 10:14 PM, Mariano Martinez Peck < marianopeck at gmail.com> wrote: > > John, first of all, thanks for the help :) > No problem. Just let me know if I am being a hinderance =) > > > Ok, this is a good solution, but I still have some problems: > > - I don't want to have my css images in Pier, but in library. > - I have 2 images per menu item: the unslected one and the selected one > (hoover). I need to set this trought CSS. > - I think I need to set width for each menu item > Yes your constraints are numerous lol >>> - The href I want it for the whole menu ul li (the whole div) not only >>> the text. I mean, I want that the user can click all over the menu >>> background image. >>> >> >> For this effect I make the menu a table as in: | *Home>/* | *Contact >> Us>/contact* | etc ), with the same fancy background image for each cell. >> Then, in the CSS I use .menu td a { width:100%; padding-left: 3em; >> padding-right: 3em; } where the amount of padding will vary depending on how >> may menu items you have. CSS is one of my weak points so I usually have to >> fiddle with padding and margins to make everything "fit" nicely, and I >> usually make the left or right border solid 1px to get the visual >> separation. I have no idea if this is the best way to do it. >> > > John, I didn't understood. I need to have different background images for > each menu item. Does that help me? > > Sorry, but I am very nowbie with CSS (and also with pier and seaside haha). > I have accomplished ALMOST all of this using this css in the file library (I have yet to get the image url syntax working from the pier css file). .menu td a { background: url(mnuJpg); } .menu td a:hover { background: url(mnuAJpg); } notice the colon NOT period .menu td a.active { background: url(mnuBJpg); } Yours would be a little more complicated because (I believe) you are using a different css class for each menu item(?). BTW, to get rid of the link text put a space: * >/aPage* After playing with this last night it I realize that a table is not really necessary, it can be accomplished with a ul as well. Best of luck John > > Thanks > > >> >> Hope this helps >> John >> >> >>> >>> Now, the question is, can I do this with PRMenuWidget ? If true, how ? If >>> not, what should I do ? make my own menu seaside component ? >>> >>> Thanks in advance for the help. >>> >>> Mariano >>> >>> >>> >>> _______________________________________________ >>> SmallWiki, Magritte, Pier and Related Tools ... >>> https://www.iam.unibe.ch/mailman/listinfo/smallwiki >>> >> >> >> >> _______________________________________________ >> SmallWiki, Magritte, Pier and Related Tools ... >> https://www.iam.unibe.ch/mailman/listinfo/smallwiki >> > > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -------------- next part -------------- An HTML attachment was scrubbed... URL: From keith_hodges at yahoo.co.uk Mon Apr 6 14:24:39 2009 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Mon, 06 Apr 2009 13:24:39 +0100 Subject: PRDocuments Message-ID: <49D9F487.7080207@yahoo.co.uk> I am still struggling to work PRDocuments.... I have a layout, I put a PRDocument in it... and the code.... document ^ self documentOf: self context structure returns the structure of the PRDocument.... surely it should be ^ self documentOf: (PRCurrentContext value structure) Keith From renggli at gmail.com Mon Apr 6 15:08:35 2009 From: renggli at gmail.com (Lukas Renggli) Date: Mon, 6 Apr 2009 15:08:35 +0200 Subject: PRDocuments In-Reply-To: <49D9F487.7080207@yahoo.co.uk> References: <49D9F487.7080207@yahoo.co.uk> Message-ID: <67628d690904060608l1722a25btdccc03d6edd37cc3@mail.gmail.com> > document > ? ?^ self documentOf: self context structure > > returns the structure of the PRDocument.... > > surely it should be > > ? ?^ self documentOf: (PRCurrentContext value structure) That should be exactly the same. Lukas -- Lukas Renggli http://www.lukas-renggli.ch From marianopeck at gmail.com Mon Apr 6 16:23:40 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Mon, 6 Apr 2009 13:23:40 -0100 Subject: PRDocuments In-Reply-To: <67628d690904060608l1722a25btdccc03d6edd37cc3@mail.gmail.com> References: <49D9F487.7080207@yahoo.co.uk> <67628d690904060608l1722a25btdccc03d6edd37cc3@mail.gmail.com> Message-ID: On Mon, Apr 6, 2009 at 12:08 PM, Lukas Renggli wrote: > > document > > ^ self documentOf: self context structure > > > > returns the structure of the PRDocument.... > > > > surely it should be > > > > ^ self documentOf: (PRCurrentContext value structure) > > That should be exactly the same. Sorry, but what are "documents" in Pier ? > > > 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 Mon Apr 6 16:31:35 2009 From: renggli at gmail.com (Lukas Renggli) Date: Mon, 6 Apr 2009 16:31:35 +0200 Subject: PRDocuments In-Reply-To: References: <49D9F487.7080207@yahoo.co.uk> <67628d690904060608l1722a25btdccc03d6edd37cc3@mail.gmail.com> Message-ID: <67628d690904060731k70cb5ff3t60a017b90fed233f@mail.gmail.com> I think Keith is talking about the document widget, the source code he shows is implemented in PRDocumentWidget part of the Pier-Documents package. This widget, when added to the environment, provides the possibility to have different wiki editors at different places on a single page. This is useful if you for example want to have a sidebar with links or additional information. The PRDocument hierarchy is an part of Pier-Model. It provides an abstract model of the wiki text and can be traversed to a page as HTML, Wiki, Plain Text, LaTeX, etc. Normally a Ppage has just one document, however the PRDocumentWidget allows you to define multiple documents on a single page. Lukas On Mon, Apr 6, 2009 at 4:23 PM, Mariano Martinez Peck wrote: > > > On Mon, Apr 6, 2009 at 12:08 PM, Lukas Renggli wrote: >> >> > document >> > ? ?^ self documentOf: self context structure >> > >> > returns the structure of the PRDocument.... >> > >> > surely it should be >> > >> > ? ?^ self documentOf: (PRCurrentContext value structure) >> >> That should be exactly the same. > > Sorry, but what are "documents" in Pier ? > >> >> Lukas >> >> -- >> Lukas Renggli >> http://www.lukas-renggli.ch >> >> >> _______________________________________________ >> SmallWiki, Magritte, Pier and Related Tools ... >> https://www.iam.unibe.ch/mailman/listinfo/smallwiki > > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -- Lukas Renggli http://www.lukas-renggli.ch From marianopeck at gmail.com Mon Apr 6 16:37:03 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Mon, 6 Apr 2009 13:37:03 -0100 Subject: PRDocuments In-Reply-To: <67628d690904060731k70cb5ff3t60a017b90fed233f@mail.gmail.com> References: <49D9F487.7080207@yahoo.co.uk> <67628d690904060608l1722a25btdccc03d6edd37cc3@mail.gmail.com> <67628d690904060731k70cb5ff3t60a017b90fed233f@mail.gmail.com> Message-ID: On Mon, Apr 6, 2009 at 1:31 PM, Lukas Renggli wrote: > I think Keith is talking about the document widget, the source code he > shows is implemented in PRDocumentWidget part of the Pier-Documents > package. This widget, when added to the environment, provides the > possibility to have different wiki editors at different places on a > single page. This is useful if you for example want to have a sidebar > with links or additional information. > > The PRDocument hierarchy is an part of Pier-Model. It provides an > abstract model of the wiki text and can be traversed to a page as > HTML, Wiki, Plain Text, LaTeX, etc. Normally a Ppage has just one > document, however the PRDocumentWidget allows you to define multiple > documents on a single page. > Excellent explanation!!! I was thinking in another thing. Perhaps it is a good idea to add this to "Glossary of terms" of Pier Documentation. Thanks a lot. Mariano > > Lukas > > On Mon, Apr 6, 2009 at 4:23 PM, Mariano Martinez Peck > wrote: > > > > > > On Mon, Apr 6, 2009 at 12:08 PM, Lukas Renggli > wrote: > >> > >> > document > >> > ^ self documentOf: self context structure > >> > > >> > returns the structure of the PRDocument.... > >> > > >> > surely it should be > >> > > >> > ^ self documentOf: (PRCurrentContext value structure) > >> > >> That should be exactly the same. > > > > Sorry, but what are "documents" in Pier ? > > > >> > >> Lukas > >> > >> -- > >> Lukas Renggli > >> http://www.lukas-renggli.ch > >> > >> > >> _______________________________________________ > >> SmallWiki, Magritte, Pier and Related Tools ... > >> https://www.iam.unibe.ch/mailman/listinfo/smallwiki > > > > > > > > _______________________________________________ > > SmallWiki, Magritte, Pier and Related Tools ... > > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > > > > > > -- > 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 Mon Apr 6 17:25:36 2009 From: renggli at gmail.com (Lukas Renggli) Date: Mon, 6 Apr 2009 17:25:36 +0200 Subject: PRDocuments In-Reply-To: References: <49D9F487.7080207@yahoo.co.uk> <67628d690904060608l1722a25btdccc03d6edd37cc3@mail.gmail.com> <67628d690904060731k70cb5ff3t60a017b90fed233f@mail.gmail.com> Message-ID: <67628d690904060825l58c2710dvaba9247663a59b66@mail.gmail.com> > Excellent explanation!!! I was thinking in another thing. Perhaps it is a > good idea to add this to "Glossary of terms" of Pier Documentation. Excellent idea. I've added it. Lukas -- Lukas Renggli http://www.lukas-renggli.ch From marianopeck at gmail.com Mon Apr 6 17:26:48 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Mon, 6 Apr 2009 14:26:48 -0100 Subject: PRDocuments In-Reply-To: <67628d690904060825l58c2710dvaba9247663a59b66@mail.gmail.com> References: <49D9F487.7080207@yahoo.co.uk> <67628d690904060608l1722a25btdccc03d6edd37cc3@mail.gmail.com> <67628d690904060731k70cb5ff3t60a017b90fed233f@mail.gmail.com> <67628d690904060825l58c2710dvaba9247663a59b66@mail.gmail.com> Message-ID: On Mon, Apr 6, 2009 at 2:25 PM, Lukas Renggli wrote: > > Excellent explanation!!! I was thinking in another thing. Perhaps it is a > > good idea to add this to "Glossary of terms" of Pier Documentation. > > Excellent idea. I've added it. > nice :) > > 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 keith_hodges at yahoo.co.uk Mon Apr 6 17:38:13 2009 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Mon, 06 Apr 2009 16:38:13 +0100 Subject: PRDocuments In-Reply-To: <67628d690904060608l1722a25btdccc03d6edd37cc3@mail.gmail.com> References: <49D9F487.7080207@yahoo.co.uk> <67628d690904060608l1722a25btdccc03d6edd37cc3@mail.gmail.com> Message-ID: <49DA21E5.7010003@yahoo.co.uk> Lukas Renggli wrote: >> document >> ^ self documentOf: self context structure >> >> returns the structure of the PRDocument.... >> >> surely it should be >> >> ^ self documentOf: (PRCurrentContext value structure) >> > > That should be exactly the same. > > Lukas > *not quite, it inherits **PRWidget-#context ^ context ifNil: [ context := super context ]* Keith From keith_hodges at yahoo.co.uk Mon Apr 6 17:40:04 2009 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Mon, 06 Apr 2009 16:40:04 +0100 Subject: New menu links In-Reply-To: References: <49D9F487.7080207@yahoo.co.uk> <67628d690904060608l1722a25btdccc03d6edd37cc3@mail.gmail.com> <67628d690904060731k70cb5ff3t60a017b90fed233f@mail.gmail.com> <67628d690904060825l58c2710dvaba9247663a59b66@mail.gmail.com> Message-ID: <49DA2254.9090703@yahoo.co.uk> I saw a comment about PRMenuWidget being deprecated in favour of +page|menu+ Are there any further instructions? Is it supposed to be *page|menu* ? Keith From keith_hodges at yahoo.co.uk Mon Apr 6 17:50:11 2009 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Mon, 06 Apr 2009 16:50:11 +0100 Subject: New menu links In-Reply-To: <49DA2254.9090703@yahoo.co.uk> References: <49D9F487.7080207@yahoo.co.uk> <67628d690904060608l1722a25btdccc03d6edd37cc3@mail.gmail.com> <67628d690904060731k70cb5ff3t60a017b90fed233f@mail.gmail.com> <67628d690904060825l58c2710dvaba9247663a59b66@mail.gmail.com> <49DA2254.9090703@yahoo.co.uk> Message-ID: <49DA24B3.6080107@yahoo.co.uk> Keith Hodges wrote: > I saw a comment about PRMenuWidget being deprecated in favour of > > +page|menu+ > > Are there any further instructions? Is it supposed to be *page|menu* ? > > Keith > I misunderstood, I thought that you put |menu on the links, but it goes on the place you embed the entire page Keith From girba at iam.unibe.ch Mon Apr 6 18:51:03 2009 From: girba at iam.unibe.ch (Tudor Girba) Date: Mon, 6 Apr 2009 18:51:03 +0200 Subject: New menu links In-Reply-To: <49DA24B3.6080107@yahoo.co.uk> References: <49D9F487.7080207@yahoo.co.uk> <67628d690904060608l1722a25btdccc03d6edd37cc3@mail.gmail.com> <67628d690904060731k70cb5ff3t60a017b90fed233f@mail.gmail.com> <67628d690904060825l58c2710dvaba9247663a59b66@mail.gmail.com> <49DA2254.9090703@yahoo.co.uk> <49DA24B3.6080107@yahoo.co.uk> Message-ID: I am not sure if a misunderstanding is still there, so I will throw in my two cents of explanations. Basically PRMenuWidget behaves like a normal page only that it has this special highlighting. So, now instead of requiring a special page for this, we allow any page to behave like a menu through the extra "| menu" parameter. Cheers, Doru On 6 Apr 2009, at 17:50, Keith Hodges wrote: > Keith Hodges wrote: >> I saw a comment about PRMenuWidget being deprecated in favour of >> >> +page|menu+ >> >> Are there any further instructions? Is it supposed to be *page| >> menu* ? >> >> Keith >> > I misunderstood, I thought that you put |menu on the links, but it > goes > on the place you embed the entire page > > Keith > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki -- www.tudorgirba.com "There are no old things, there are only old ways of looking at them." From renggli at gmail.com Mon Apr 6 19:00:33 2009 From: renggli at gmail.com (Lukas Renggli) Date: Mon, 6 Apr 2009 19:00:33 +0200 Subject: PRDocuments In-Reply-To: <49DA21E5.7010003@yahoo.co.uk> References: <49D9F487.7080207@yahoo.co.uk> <67628d690904060608l1722a25btdccc03d6edd37cc3@mail.gmail.com> <49DA21E5.7010003@yahoo.co.uk> Message-ID: <67628d690904061000o3cb82ef6o1e319c8858907012@mail.gmail.com> On Mon, Apr 6, 2009 at 5:38 PM, Keith Hodges wrote: > Lukas Renggli wrote: >>> document >>> ? ?^ self documentOf: self context structure >>> >>> returns the structure of the PRDocument.... >>> >>> surely it should be >>> >>> ? ?^ self documentOf: (PRCurrentContext value structure) >>> >> >> That should be exactly the same. >> >> Lukas >> > *not quite, it inherits > > **PRWidget-#context > ? ?^ context ifNil: [ context := super context ]* Normally that cache should be updated through #onChangeContext: by PRPierFrame>>#update, but of course if there is something wrong in the #children chain of the PRDocumentWidget then this might not happen. Is your PRDocumentWidget directly part of the environment, or do you have something more complicated? Lukas -- Lukas Renggli http://www.lukas-renggli.ch From keith_hodges at yahoo.co.uk Mon Apr 6 20:05:40 2009 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Mon, 06 Apr 2009 19:05:40 +0100 Subject: PRDocuments In-Reply-To: <67628d690904061000o3cb82ef6o1e319c8858907012@mail.gmail.com> References: <49D9F487.7080207@yahoo.co.uk> <67628d690904060608l1722a25btdccc03d6edd37cc3@mail.gmail.com> <49DA21E5.7010003@yahoo.co.uk> <67628d690904061000o3cb82ef6o1e319c8858907012@mail.gmail.com> Message-ID: <49DA4474.7010305@yahoo.co.uk> >> *not quite, it inherits >> >> **PRWidget-#context >> ^ context ifNil: [ context := super context ]* >> > > Normally that cache should be updated through #onChangeContext: by > PRPierFrame>>#update, but of course if there is something wrong in the > #children chain of the PRDocumentWidget then this might not happen. Is > your PRDocumentWidget directly part of the environment, or do you have > something more complicated? > I do, but I dont think it would effect the children. > Lukas > Lukas, thanks for your help and insight... It's behaving itself now. Lots has changed, so I am not sure how to put my finger on what exactly it was that fixed it. Keith From keith_hodges at yahoo.co.uk Mon Apr 6 20:17:07 2009 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Mon, 06 Apr 2009 19:17:07 +0100 Subject: +page|loggedout+ Message-ID: <49DA4723.5090001@yahoo.co.uk> There is nothing in the permissions system which allows a page to be displayed only for logged out (not logged in) users. How about +page|loggedout++page|loggedin+ or similar? Keith From keith_hodges at yahoo.co.uk Mon Apr 6 20:29:08 2009 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Mon, 06 Apr 2009 19:29:08 +0100 Subject: withinContent Message-ID: <49DA49F4.4000305@yahoo.co.uk> I have a subclass of PRMenuWidget which renders, however it now renders with paragraphs, where it did not before. Previously components were rendered by the PEViewRenderer which maintains "withinContent", however now components are rendered by "PREmbeddedRenderer" and have no knowledge of "withinContent" is this a bug? Or is my menu widget abusing the new way of doing things? Keith From renggli at gmail.com Mon Apr 6 20:32:41 2009 From: renggli at gmail.com (Lukas Renggli) Date: Mon, 6 Apr 2009 20:32:41 +0200 Subject: +page|loggedout+ In-Reply-To: <49DA4723.5090001@yahoo.co.uk> References: <49DA4723.5090001@yahoo.co.uk> Message-ID: <67628d690904061132ob318a6t737fb01dda5601e4@mail.gmail.com> > How about +page|loggedout++page|loggedin+ or similar? An embedded page is ignored, if the user is not allowed to see it through the permissions. Lukas -- Lukas Renggli http://www.lukas-renggli.ch From keith_hodges at yahoo.co.uk Mon Apr 6 20:39:51 2009 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Mon, 06 Apr 2009 19:39:51 +0100 Subject: +page|loggedout+ In-Reply-To: <67628d690904061132ob318a6t737fb01dda5601e4@mail.gmail.com> References: <49DA4723.5090001@yahoo.co.uk> <67628d690904061132ob318a6t737fb01dda5601e4@mail.gmail.com> Message-ID: <49DA4C77.2070808@yahoo.co.uk> Lukas Renggli wrote: >> How about +page|loggedout++page|loggedin+ or similar? >> > > An embedded page is ignored, if the user is not allowed to see it > through the permissions. > > Lukas > But there is no way to set the permissions so that: "other" can see it, and everyone else can not see it. - i.e. logged out users only. I use this for the link to the "ForgotPassword component" Keith From keith_hodges at yahoo.co.uk Mon Apr 6 20:40:42 2009 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Mon, 06 Apr 2009 19:40:42 +0100 Subject: withinContent In-Reply-To: <49DA49F4.4000305@yahoo.co.uk> References: <49DA49F4.4000305@yahoo.co.uk> Message-ID: <49DA4CAA.8030800@yahoo.co.uk> Keith Hodges wrote: > I have a subclass of PRMenuWidget which renders, however it now renders > with paragraphs, where it did not before. > > Previously components were rendered by the PEViewRenderer which > maintains "withinContent", however now components are rendered by > "PREmbeddedRenderer" and have no knowledge of "withinContent" > > is this a bug? Or is my menu widget abusing the new way of doing things? > > Keith > When the PRMenuRenderer is invoked it assumes its own withinContent is true, it could ask the current context's renderer. Keith From rbb at techgame.net Mon Apr 6 20:52:09 2009 From: rbb at techgame.net (brian) Date: Mon, 06 Apr 2009 12:52:09 -0600 Subject: [Ann] ?????? References: <49CC48D5.4000002@yahoo.co.uk> <49CFDA1F.4050609@yahoo.co.uk> <49D0024D.5050605@yahoo.co.uk> Message-ID: <5AD55E9D-20E1-4EE2-967B-D9DC0FF73386@techgame.net> On Mar 29, 2009, at 5:20 PM, Keith Hodges wrote: > st?phane ducasse wrote: >> Beach :) > Bagsee "Beach" then! > > It had to happen sooner or later. Someone had to come up with a > seaside > product call Beach. > > Keith > > --- > "When you go to the seaside, the beach is really what you want to > see". "It's hard to enjoy the Seaside without standing on the Beach" > > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki From keith_hodges at yahoo.co.uk Tue Apr 7 00:03:52 2009 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Mon, 06 Apr 2009 23:03:52 +0100 Subject: Alternative approach for rendering page headers Message-ID: <49DA7C48.70602@yahoo.co.uk> I have always found this to be a bit of a weakness of pier's. Name: Beach-Pier-kph.5 Author: kph Time: 6 April 2009, 11:02 pm UUID: 554b045a-54d7-47e0-9f21-b94b06e381ac Ancestors: Beach-Pier-kph.4 Finally the ViewRenderer (or custom subclass) can have complete control over the display of the content AND the header PRContentsWidget is knobbled so as to not display the header. PRViewRenderer now displays the "title", for standard Pages, or the more interesting PRPageWithHeader. PageWithHeader - Uses the above to render a "header document" *for more interesting headers) Hooks for providing custom subclasses of all renderers From renggli at gmail.com Tue Apr 7 00:45:42 2009 From: renggli at gmail.com (Lukas Renggli) Date: Tue, 7 Apr 2009 00:45:42 +0200 Subject: withinContent In-Reply-To: <49DA4CAA.8030800@yahoo.co.uk> References: <49DA49F4.4000305@yahoo.co.uk> <49DA4CAA.8030800@yahoo.co.uk> Message-ID: <67628d690904061545y3c345c22teac90b604c65eeb@mail.gmail.com> I fixed it in the latest commit. Althogh unlikely to happen, the new version also properly detects recursion. Lukas On Mon, Apr 6, 2009 at 8:40 PM, Keith Hodges wrote: > Keith Hodges wrote: >> I have a subclass of PRMenuWidget which renders, however it now renders >> with paragraphs, where it did not before. >> >> Previously components were rendered by the PEViewRenderer which >> maintains "withinContent", however now components are rendered by >> "PREmbeddedRenderer" and have no knowledge of "withinContent" >> >> is this a bug? Or is my menu widget abusing the new way of doing things? >> >> Keith >> > When the PRMenuRenderer is invoked it assumes its own withinContent is > true, it could ask the current context's renderer. > > Keith > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -- Lukas Renggli http://www.lukas-renggli.ch From renggli at gmail.com Tue Apr 7 00:50:59 2009 From: renggli at gmail.com (Lukas Renggli) Date: Tue, 7 Apr 2009 00:50:59 +0200 Subject: +page|loggedout+ In-Reply-To: <49DA4C77.2070808@yahoo.co.uk> References: <49DA4723.5090001@yahoo.co.uk> <67628d690904061132ob318a6t737fb01dda5601e4@mail.gmail.com> <49DA4C77.2070808@yahoo.co.uk> Message-ID: <67628d690904061550h38be2b9fw8f245fd416b4c081@mail.gmail.com> > But there is no way to set the permissions so that: > > "other" can see it, and everyone else can not see it. - i.e. logged out > users only. I use this for the link to the ?"ForgotPassword component" Have a look at the Pier-Distribution (or the Pier One-Click image). Doru uses a very cool trick there: The login command is a separate widget that is always displayed, but only lists the login command. Thus it will automatically disappear after login and when the login command becomes invalid. The authentication revealed as I wrote in the previous mail. Lukas -- Lukas Renggli http://www.lukas-renggli.ch From keith_hodges at yahoo.co.uk Tue Apr 7 01:04:39 2009 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Tue, 07 Apr 2009 00:04:39 +0100 Subject: +page|loggedout+ In-Reply-To: <67628d690904061550h38be2b9fw8f245fd416b4c081@mail.gmail.com> References: <49DA4723.5090001@yahoo.co.uk> <67628d690904061132ob318a6t737fb01dda5601e4@mail.gmail.com> <49DA4C77.2070808@yahoo.co.uk> <67628d690904061550h38be2b9fw8f245fd416b4c081@mail.gmail.com> Message-ID: <49DA8A87.6030904@yahoo.co.uk> Lukas Renggli wrote: >> But there is no way to set the permissions so that: >> >> "other" can see it, and everyone else can not see it. - i.e. logged out >> users only. I use this for the link to the "ForgotPassword component" >> > > Have a look at the Pier-Distribution (or the Pier One-Click image). > Doru uses a very cool trick there: > > The login command is a separate widget that is always displayed, but > only lists the login command. Thus it will automatically disappear > after login and when the login command becomes invalid. The > authentication revealed as I wrote in the previous mail. > > Lukas > But I am not using commands for anything. I find writing a custom command and managing permissions for every possible action to be too difficult. Instead when I embed a page with a component, if that seaside component does an #answer: pier will go to the previous context just like a command except that commands dont look as good as pages with content images etc. This means I can use any seaside component not just canBeRoot ones. I added |loggedin |loggedout to my custom embedded renderer Keith From keith_hodges at yahoo.co.uk Tue Apr 7 02:28:52 2009 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Tue, 07 Apr 2009 01:28:52 +0100 Subject: Alternative approach for rendering page headers In-Reply-To: <49DA7C48.70602@yahoo.co.uk> References: <49DA7C48.70602@yahoo.co.uk> Message-ID: <49DA9E44.6020906@yahoo.co.uk> Keith Hodges wrote: > I have always found this to be a bit of a weakness of pier's. > > > Name: Beach-Pier-kph.5 > Author: kph > Time: 6 April 2009, 11:02 pm > UUID: 554b045a-54d7-47e0-9f21-b94b06e381ac > Ancestors: Beach-Pier-kph.4 > > Finally the ViewRenderer (or custom subclass) can have complete control > over the display of the content AND the header > > PRContentsWidget is knobbled so as to not display the header. > > PRViewRenderer now displays the "title", for standard Pages, or the > more interesting PRPageWithHeader can override this behviour > > PageWithHeader - Uses the above to render a "header document" *for more > interesting headers) > > Hooks for providing custom subclasses of all renderer At present in "latest" viewing (not embedding) structures like files and components is broken. The Pier-Beach implementation is looking like a pretty good way of fixing this. > ==== > > Name: Beach-Pier-kph.6 > Author: kph > Time: 6 April 2009, 11:58:10 pm > UUID: be4afe0d-8f23-4b2b-b3b7-c7dfcff81ac7 > Ancestors: Beach-Pier-kph.5 > > Double back structure rendering to the PREmbeddedRenderer since it > knows how to render most things better than the PRViewRenderer anyway. > > Yay we have viewing of structures back at last. But I think it can go further. Having taken responsibility for rendering the header away from the PRContentsWidget, this gives much more flexibility. It does mean that there is no-one to render the heading for Commands and other basic components. So by shovelling the rendering of ALL components through the visitor PRViewRenderer, rather than just PRDefaultView. This allows PRViewRenderer to wrap Headings, (divs and anything else you want) on to Commands, and any other seaside components. This is really cool because it then means you can use non root seaside components!!!! All you have to do is to add an #accept: method to the component you want to use, and implement the specific invocation that that component needs in PRViewRenderer (or your custom subclass). So a custom PRViewRenderer or a subclass of PRPage/Structure can implement their own header rendering, AND html rendering for any Component, be-it widget, structure, or Seaside component. The one thing that is missing is to be able to control things from the environment (I dont use an environment myself). So perhaps +contents|renderer=PRMyRenderer+ will suffice. I added descriptionRenderer to PRContentsWidget. I think this is looking really cool.... perhaps even worth a Pier 1.2! Please take a look at it. The thought if having to maintain this as a fork is a bit worrying. The implementation is in 'Pier-Beach' -- the dependencies are documented here: Installer ss project:'Beach' install: 'Beach-Packages'. Keith From keith_hodges at yahoo.co.uk Wed Apr 8 23:32:40 2009 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Wed, 08 Apr 2009 22:32:40 +0100 Subject: Suggestion - perhaps add a link to piercms.com and the trackker in the footer of the mailing list Message-ID: <49DD17F8.5060302@yahoo.co.uk> see subject Keith From johnmci at smalltalkconsulting.com Thu Apr 9 07:00:16 2009 From: johnmci at smalltalkconsulting.com (John M McIntosh) Date: Wed, 8 Apr 2009 22:00:16 -0700 Subject: setting up a blog? Message-ID: <85687714-8EBB-4E98-B80C-C88F9213AD13@smalltalkconsulting.com> Ok, I'm not clear on how to setup a blog given the base pier installation from MC. There is an add blog cmd in the command, then a number of blog components in the add component logic. However I'm not quite sure what the steps are to put a blog into a new wiki are? Plus any changes to the environment that are needed. Right now if I add a blog, then add a blog archive I just get "no blog found" since findBlog ^ self context structure parents reverse detect: [ :each | each isKindOf: PBBlog ] ifNone: [ nil ] doesn't find the PBBlog Obviously some structure/steps are required beyond the let's try this and see what happens. -- = = = ======================================================================== John M. McIntosh Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com = = = ======================================================================== From damien.cassou at gmail.com Thu Apr 9 09:50:17 2009 From: damien.cassou at gmail.com (Damien Cassou) Date: Thu, 9 Apr 2009 09:50:17 +0200 Subject: setting up a blog? In-Reply-To: <85687714-8EBB-4E98-B80C-C88F9213AD13@smalltalkconsulting.com> References: <85687714-8EBB-4E98-B80C-C88F9213AD13@smalltalkconsulting.com> Message-ID: <6ac749c10904090050h28e9dc72y11cf13b6256935a4@mail.gmail.com> On Thu, Apr 9, 2009 at 7:00 AM, John M McIntosh wrote: > Ok, I'm not clear on how to setup a blog given the base pier installation > from MC. There is an > add blog cmd in the command, then a number of blog components in the add > component logic. > > However I'm not quite sure what the steps are to put a blog into a new wiki > are? Plus any changes > to the environment that are needed. > > Right now if I add a blog, then add a blog archive I just get "no blog > found" ?since > > findBlog > ? ? ? ?^ self context structure parents reverse > ? ? ? ? ? ? ? ?detect: [ :each | each isKindOf: PBBlog ] > ? ? ? ? ? ? ? ?ifNone: [ nil ] > > doesn't find the PBBlog > > Obviously some structure/steps are required beyond the let's try this and > see what happens. You may want to download Pier-Setup and execute 'PRDistribution new register'. That will erase default Pier kernel and replace with with a new one, with a good-looking css some default pages and a blog. Here is the list of packages I install in a new pharo-web image related to Pier: instClass := Smalltalk at: #Installer. instClass lukas project: 'pier'; answer: 'Would you like.*' with: true; answer: '.*name of your Pier kernel.*' with: 'Pier'; answer: '.*entry point.*' with: 'pier'; answer: '.*port number.*' with: '8080'; installQuietly: 'Pier-All'; install: 'Pier-Squeak-Persistency'. instClass lukas project: 'pieraddons'; install: 'Pier-Design'; install: 'Pier-Documents'; install: 'Pier-EditorEnh'; install: 'Pier-Google'; install: 'Pier-LightBox'; answer: '.*SlideShare.*' with: ''; install: 'Pier-Links'; install: 'Pier-Randomizer'; install: 'Pier-Setup'; install: 'Pier-SyntaxHighlighter'; install: 'Pier-TagCloud'; install: 'Pier-Titles'; install: 'Pier-Twitter'; install: 'Sitemap'. -- Damien Cassou http://damiencassou.seasidehosting.st From keith_hodges at yahoo.co.uk Thu Apr 9 12:23:05 2009 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Thu, 09 Apr 2009 11:23:05 +0100 Subject: Image links Message-ID: <49DDCC89.1080109@yahoo.co.uk> With all the new recent pier features Is there a simple way to do images that link to pier pages? thanks in advance Keith From keith_hodges at yahoo.co.uk Thu Apr 9 12:26:35 2009 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Thu, 09 Apr 2009 11:26:35 +0100 Subject: [Ann] ?????? In-Reply-To: <5AD55E9D-20E1-4EE2-967B-D9DC0FF73386@techgame.net> References: <49CC48D5.4000002@yahoo.co.uk> <49CFDA1F.4050609@yahoo.co.uk> <49D0024D.5050605@yahoo.co.uk> <5AD55E9D-20E1-4EE2-967B-D9DC0FF73386@techgame.net> Message-ID: <49DDCD5B.2080909@yahoo.co.uk> brian wrote: > On Mar 29, 2009, at 5:20 PM, Keith Hodges wrote: > >> st?phane ducasse wrote: >>> Beach :) >> Bagsee "Beach" then! >> >> It had to happen sooner or later. Someone had to come up with a seaside >> product call Beach. >> >> Keith >> >> --- >> "When you go to the seaside, the beach is really what you want to see". > > "It's hard to enjoy the Seaside without standing on the Beach" I like it.... and more like it To enjoy the Seaside, hit the Beach. Keith From renggli at gmail.com Thu Apr 9 12:32:17 2009 From: renggli at gmail.com (Lukas Renggli) Date: Thu, 9 Apr 2009 12:32:17 +0200 Subject: Suggestion - perhaps add a link to piercms.com and the trackker in the footer of the mailing list In-Reply-To: <49DD17F8.5060302@yahoo.co.uk> References: <49DD17F8.5060302@yahoo.co.uk> Message-ID: <67628d690904090332n18a8a6abn29b947f4927ab995@mail.gmail.com> I don't think we really want a large link collection at the bottom of every mail, do we? http://www.piercms.com/ http://code.google.com/p/pier/ http://source.lukas-renggli.ch/pier/ http://source.lukas-renggli.ch/pieraddons/ http://www.lukas-renggli.ch/smalltalk/magritte/ http://code.google.com/p/magritte-metamodel/ http://source.lukas-renggli.ch/magritte/ http://source.lukas-renggli.ch/magritteaddons/ I agree that the focus of the mailing list moved somehow over time. The SmallWiki part essentially died (but it is hosted at smallwiki at iam.unibe.ch). There is a some Magritte related discussion from time to time, but not too much. Mostly the mailing list is Pier related. Maybe we should split and move it to seaside.st? What do other people think? Lukas -- Lukas Renggli http://www.lukas-renggli.ch From cdrick65 at gmail.com Thu Apr 9 13:05:32 2009 From: cdrick65 at gmail.com (=?UTF-8?B?Q8OpZHJpY2sgQsOpbGVy?=) Date: Thu, 9 Apr 2009 13:05:32 +0200 Subject: Suggestion - perhaps add a link to piercms.com and the trackker in the footer of the mailing list In-Reply-To: <67628d690904090332n18a8a6abn29b947f4927ab995@mail.gmail.com> References: <49DD17F8.5060302@yahoo.co.uk> <67628d690904090332n18a8a6abn29b947f4927ab995@mail.gmail.com> Message-ID: I think it's a good idea... And maybe all links you just gave can be put on a seaside.st page (+ a quick explanation) that can be added at the bottom this time (http://www.seaside.st/community/mailinglist ?). 2009/4/9 Lukas Renggli : > I don't think we really want a large link collection at the bottom of > every mail, do we? > > ? http://www.piercms.com/ > ? http://code.google.com/p/pier/ > ? http://source.lukas-renggli.ch/pier/ > ? http://source.lukas-renggli.ch/pieraddons/ > > ? http://www.lukas-renggli.ch/smalltalk/magritte/ > ? http://code.google.com/p/magritte-metamodel/ > ? http://source.lukas-renggli.ch/magritte/ > ? http://source.lukas-renggli.ch/magritteaddons/ > > I agree that the focus of the mailing list moved somehow over time. > The SmallWiki part essentially died (but it is hosted at > smallwiki at iam.unibe.ch). There is a some Magritte related discussion > from time to time, but not too much. Mostly the mailing list is Pier > related. Maybe we should split and move it to seaside.st? What do > other people think? > > Lukas > > -- > Lukas Renggli > http://www.lukas-renggli.ch > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -- C?drick From renggli at gmail.com Thu Apr 9 13:17:10 2009 From: renggli at gmail.com (Lukas Renggli) Date: Thu, 9 Apr 2009 13:17:10 +0200 Subject: Image links In-Reply-To: <49DDCC89.1080109@yahoo.co.uk> References: <49DDCC89.1080109@yahoo.co.uk> Message-ID: <67628d690904090417m51641434r1f35a5d1c7bd5e12@mail.gmail.com> *+link to image+>link to pier page* > Is there a simple way to do images that link to pier pages? Is that what you want? You use an image +link to image+ and an alias to a page *linke to pier page*. Lukas -- Lukas Renggli http://www.lukas-renggli.ch From renggli at gmail.com Thu Apr 9 13:18:18 2009 From: renggli at gmail.com (Lukas Renggli) Date: Thu, 9 Apr 2009 13:18:18 +0200 Subject: Image links In-Reply-To: <67628d690904090417m51641434r1f35a5d1c7bd5e12@mail.gmail.com> References: <49DDCC89.1080109@yahoo.co.uk> <67628d690904090417m51641434r1f35a5d1c7bd5e12@mail.gmail.com> Message-ID: <67628d690904090418j1f46770al3904b0e79cf76ab2@mail.gmail.com> > You use an image +link to image+ and an alias to a page *linke to pier page*. Sorry, "and" should read as "as": You use an embedded image +link to image+ as an alias to a page *linke to pier page*. Lukas > > Lukas > > -- > Lukas Renggli > http://www.lukas-renggli.ch > -- Lukas Renggli http://www.lukas-renggli.ch From marianopeck at gmail.com Thu Apr 9 23:21:40 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Thu, 9 Apr 2009 18:21:40 -0300 Subject: Suggestion - perhaps add a link to piercms.com and the trackker in the footer of the mailing list In-Reply-To: References: <49DD17F8.5060302@yahoo.co.uk> <67628d690904090332n18a8a6abn29b947f4927ab995@mail.gmail.com> Message-ID: I wouldn't move Pier list to seaside list. I think they are ok rigth now. On Thu, Apr 9, 2009 at 8:05 AM, C?drick B?ler wrote: > I think it's a good idea... > > And maybe all links you just gave can be put on a seaside.st page (+ a > quick explanation) that can be added at the bottom this time > (http://www.seaside.st/community/mailinglist ?). > > 2009/4/9 Lukas Renggli : > > I don't think we really want a large link collection at the bottom of > > every mail, do we? > > > > http://www.piercms.com/ > > http://code.google.com/p/pier/ > > http://source.lukas-renggli.ch/pier/ > > http://source.lukas-renggli.ch/pieraddons/ > > > > http://www.lukas-renggli.ch/smalltalk/magritte/ > > http://code.google.com/p/magritte-metamodel/ > > http://source.lukas-renggli.ch/magritte/ > > http://source.lukas-renggli.ch/magritteaddons/ > > > > I agree that the focus of the mailing list moved somehow over time. > > The SmallWiki part essentially died (but it is hosted at > > smallwiki at iam.unibe.ch). There is a some Magritte related discussion > > from time to time, but not too much. Mostly the mailing list is Pier > > related. Maybe we should split and move it to seaside.st? What do > > other people think? > > > > Lukas > > > > -- > > Lukas Renggli > > http://www.lukas-renggli.ch > > _______________________________________________ > > Magritte, Pier and Related Tools ... > > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > > > > > > -- > C?drick > > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -------------- next part -------------- An HTML attachment was scrubbed... URL: From johnmci at smalltalkconsulting.com Fri Apr 10 01:26:42 2009 From: johnmci at smalltalkconsulting.com (John M McIntosh) Date: Thu, 9 Apr 2009 16:26:42 -0700 Subject: WARenderCanvas>>rendererInstance Message-ID: <4CE0815E-887C-4DD2-A110-D1BB46371D81@smalltalkconsulting.com> I had tried to load the slide show Pier-Slideshow-lr.8 but I get the DNU, so where does rendererInstance come from? MessageNotUnderstood: WARenderCanvas>>rendererInstance ? thisContext[] in PRSlideshow>>renderSlideOn: {[html rendererInstance continue: self current in: self on: html]} = = = ======================================================================== John M. McIntosh Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com = = = ======================================================================== From p3anoman at gmail.com Fri Apr 10 01:58:52 2009 From: p3anoman at gmail.com (John McKeon) Date: Thu, 9 Apr 2009 19:58:52 -0400 Subject: WARenderCanvas>>rendererInstance In-Reply-To: <4CE0815E-887C-4DD2-A110-D1BB46371D81@smalltalkconsulting.com> References: <4CE0815E-887C-4DD2-A110-D1BB46371D81@smalltalkconsulting.com> Message-ID: <40f637ec0904091658x4730d0cbi15c1e36e55b7f68d@mail.gmail.com> Hi John Looks you need to update the Pier-Seaside package. Warm regards John On Thu, Apr 9, 2009 at 7:26 PM, John M McIntosh < johnmci at smalltalkconsulting.com> wrote: > I had tried to load the slide show Pier-Slideshow-lr.8 > but I get the DNU, so where does rendererInstance come from? > > MessageNotUnderstood: WARenderCanvas>>rendererInstance > > ? thisContext[] in PRSlideshow>>renderSlideOn: {[html rendererInstance > continue: self current in: self on: html]} > > > =========================================================================== > John M. McIntosh > Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com > =========================================================================== > > > > > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -------------- next part -------------- An HTML attachment was scrubbed... URL: From johnmci at smalltalkconsulting.com Fri Apr 10 02:59:28 2009 From: johnmci at smalltalkconsulting.com (John M McIntosh) Date: Thu, 9 Apr 2009 17:59:28 -0700 Subject: WARenderCanvas>>rendererInstance In-Reply-To: <40f637ec0904091658x4730d0cbi15c1e36e55b7f68d@mail.gmail.com> References: <4CE0815E-887C-4DD2-A110-D1BB46371D81@smalltalkconsulting.com> <40f637ec0904091658x4730d0cbi15c1e36e55b7f68d@mail.gmail.com> Message-ID: <47F10A52-4D31-44AE-AD36-3D85153D66CE@smalltalkconsulting.com> Ah, yes, ok I did this, but seem to be missing MAFileModel>>urlFor: I can guess what that is. However in looking at the Slideshow logic it appears to me that if add files as children of the slide show page then slides "Answer the possible slides to display." ^ slides ifNil: [ slides := self structure enumerator contents ] That prevents their usage, because first time it's rendered we set slides to an #() Ok well assuming I'll hack this a bit if I change it to slides "Answer the possible slides to display." ^slides := self structure enumerator contents It does then behave more like I expect, showing the slide controls, and the fact I've two images as children of the slideshow page. However the selection of the image in the control menu results in nothing. I stick some halts in, but don't don't get any walkbacks. renderControlSlideListOn: html | selectId | html select class: 'navg'; list: self slides; selected: self current; id: (selectId := html nextId); callback: [ :value | self halt current: value ]; labels: [ :value | (self slides indexOf: value) asString , '. ' , value title ]; onChange: (html updater id: ajaxId; triggerFormElement: selectId; callback: [ :r | self halt renderSlideshowOn: r ]) On 9-Apr-09, at 4:58 PM, John McKeon wrote: > Hi John > Looks you need to update the Pier-Seaside package. > > Warm regards > John > > On Thu, Apr 9, 2009 at 7:26 PM, John M McIntosh > wrote: > I had tried to load the slide show Pier-Slideshow-lr.8 > but I get the DNU, so where does rendererInstance come from? > > MessageNotUnderstood: WARenderCanvas>>rendererInstance > > ? thisContext[] in PRSlideshow>>renderSlideOn: {[html > rendererInstance continue: self current in: self on: html]} -- = = = ======================================================================== John M. McIntosh Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com = = = ======================================================================== From johnmci at smalltalkconsulting.com Fri Apr 10 03:09:28 2009 From: johnmci at smalltalkconsulting.com (John M McIntosh) Date: Thu, 9 Apr 2009 18:09:28 -0700 Subject: WARenderCanvas>>rendererInstance In-Reply-To: <40f637ec0904091658x4730d0cbi15c1e36e55b7f68d@mail.gmail.com> References: <4CE0815E-887C-4DD2-A110-D1BB46371D81@smalltalkconsulting.com> <40f637ec0904091658x4730d0cbi15c1e36e55b7f68d@mail.gmail.com> Message-ID: <76F214B1-C209-41DF-ADB9-E5BCD32FC00F@smalltalkconsulting.com> Oops must load SULibrary, otherwise no javascript controls On 9-Apr-09, at 4:58 PM, John McKeon wrote: > Hi John > Looks you need to update the Pier-Seaside package. -- = = = ======================================================================== John M. McIntosh Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com = = = ======================================================================== From damien.cassou at gmail.com Fri Apr 10 09:25:00 2009 From: damien.cassou at gmail.com (Damien Cassou) Date: Fri, 10 Apr 2009 09:25:00 +0200 Subject: Suggestion - perhaps add a link to piercms.com and the trackker in the footer of the mailing list In-Reply-To: References: <49DD17F8.5060302@yahoo.co.uk> <67628d690904090332n18a8a6abn29b947f4927ab995@mail.gmail.com> Message-ID: <6ac749c10904100025o245705c9lf16ed223a97f7abd@mail.gmail.com> On Thu, Apr 9, 2009 at 11:21 PM, Mariano Martinez Peck wrote: > I wouldn't move Pier list to seaside list. I think they are ok rigth now. I agree. I'm not subscribed to Seaside lilst because of the traffic. However, I'm interested in Pier-related things because I have 3 Pier websites. -- Damien Cassou http://damiencassou.seasidehosting.st From johnmci at smalltalkconsulting.com Fri Apr 10 11:01:02 2009 From: johnmci at smalltalkconsulting.com (John M McIntosh) Date: Fri, 10 Apr 2009 02:01:02 -0700 Subject: setting up a blog? In-Reply-To: <6ac749c10904090050h28e9dc72y11cf13b6256935a4@mail.gmail.com> References: <85687714-8EBB-4E98-B80C-C88F9213AD13@smalltalkconsulting.com> <6ac749c10904090050h28e9dc72y11cf13b6256935a4@mail.gmail.com> Message-ID: <162CC011-F3B9-43E4-9C8A-F801A1064961@smalltalkconsulting.com> On 9-Apr-09, at 12:50 AM, Damien Cassou wrote: > You may want to download Pier-Setup and execute 'PRDistribution new > register'. That will erase default Pier kernel and replace with with a > new one, with a good-looking css some default pages and a blog. Here > is the list of packages I install in a new pharo-web image related to > Pier: Yes, but I want to do it via Add Components so I can fill out http://www.mobilewikiserver.com/Wiki_Add_Blog.html Although I could supply a premade one via smalltalk objects creating the required objects, it likely someone would like to do it manually from a browser. -- = = = ======================================================================== John M. McIntosh Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com = = = ======================================================================== From renggli at gmail.com Fri Apr 10 11:02:42 2009 From: renggli at gmail.com (Lukas Renggli) Date: Fri, 10 Apr 2009 11:02:42 +0200 Subject: Suggestion - perhaps add a link to piercms.com and the trackker in the footer of the mailing list In-Reply-To: <6ac749c10904100025o245705c9lf16ed223a97f7abd@mail.gmail.com> References: <49DD17F8.5060302@yahoo.co.uk> <67628d690904090332n18a8a6abn29b947f4927ab995@mail.gmail.com> <6ac749c10904100025o245705c9lf16ed223a97f7abd@mail.gmail.com> Message-ID: <67628d690904100202s4e04099cqa050baffcae3883d@mail.gmail.com> Maybe I was not clear enough. I was suggesting to get rid of as its name is sort of obsolete. And instead create and . Lukas On Fri, Apr 10, 2009 at 9:25 AM, Damien Cassou wrote: > On Thu, Apr 9, 2009 at 11:21 PM, Mariano Martinez Peck > wrote: >> I wouldn't move Pier list to seaside list. I think they are ok rigth now. > > I agree. I'm not subscribed to Seaside lilst because of the traffic. > However, I'm interested in Pier-related things because I have 3 Pier > websites. > > -- > Damien Cassou > http://damiencassou.seasidehosting.st > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -- Lukas Renggli http://www.lukas-renggli.ch From damien.cassou at gmail.com Fri Apr 10 11:07:38 2009 From: damien.cassou at gmail.com (Damien Cassou) Date: Fri, 10 Apr 2009 11:07:38 +0200 Subject: Suggestion - perhaps add a link to piercms.com and the trackker in the footer of the mailing list In-Reply-To: <67628d690904100202s4e04099cqa050baffcae3883d@mail.gmail.com> References: <49DD17F8.5060302@yahoo.co.uk> <67628d690904090332n18a8a6abn29b947f4927ab995@mail.gmail.com> <6ac749c10904100025o245705c9lf16ed223a97f7abd@mail.gmail.com> <67628d690904100202s4e04099cqa050baffcae3883d@mail.gmail.com> Message-ID: <6ac749c10904100207l6bffc613ob0bbb567c0555938@mail.gmail.com> On Fri, Apr 10, 2009 at 11:02 AM, Lukas Renggli wrote: > Maybe I was not clear enough. I was suggesting to get rid of > as its name is sort of obsolete. And instead > create and . +1 too :-D -- Damien Cassou http://damiencassou.seasidehosting.st From dtrussardi at tiscali.it Fri Apr 10 18:45:50 2009 From: dtrussardi at tiscali.it (Dario Trussardi) Date: Fri, 10 Apr 2009 18:45:50 +0200 Subject: Validate submit timeout ? Message-ID: Hi All, when i call: ((someDescription asComponentOn: aModel) addMessage: anString; adValidateForm; yourself somtime i have strange answer ( HTTP 500 ) when press the submit buttons. I have do some test and i think : if someDescription size are big, the system after some timeout answer error. It's correct ? How i can set it? Or there is other consideration about the error ? Thank Dario -------------- next part -------------- An HTML attachment was scrubbed... URL: From marianopeck at gmail.com Fri Apr 10 20:12:34 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Fri, 10 Apr 2009 15:12:34 -0300 Subject: Suggestion - perhaps add a link to piercms.com and the trackker in the footer of the mailing list In-Reply-To: <6ac749c10904100207l6bffc613ob0bbb567c0555938@mail.gmail.com> References: <49DD17F8.5060302@yahoo.co.uk> <67628d690904090332n18a8a6abn29b947f4927ab995@mail.gmail.com> <6ac749c10904100025o245705c9lf16ed223a97f7abd@mail.gmail.com> <67628d690904100202s4e04099cqa050baffcae3883d@mail.gmail.com> <6ac749c10904100207l6bffc613ob0bbb567c0555938@mail.gmail.com> Message-ID: On Fri, Apr 10, 2009 at 6:07 AM, Damien Cassou wrote: > On Fri, Apr 10, 2009 at 11:02 AM, Lukas Renggli wrote: > > Maybe I was not clear enough. I was suggesting to get rid of > > as its name is sort of obsolete. And instead > > create and . > > +1 too :-D > Ahh now I get it. +1 then. > > -- > Damien Cassou > http://damiencassou.seasidehosting.st > _______________________________________________ > 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 Fri Apr 10 20:54:46 2009 From: renggli at gmail.com (Lukas Renggli) Date: Fri, 10 Apr 2009 20:54:46 +0200 Subject: Validate submit timeout ? In-Reply-To: References: Message-ID: <67628d690904101154g66bb86e6n79a6a24efd0c767b@mail.gmail.com> > somtime i have strange answer ( HTTP 500 )? when press the submit buttons. How does the body of this response look like? Is there some information on what kind of internal error was thrown? -- Lukas Renggli http://www.lukas-renggli.ch From girba at iam.unibe.ch Fri Apr 10 23:35:22 2009 From: girba at iam.unibe.ch (Tudor Girba) Date: Fri, 10 Apr 2009 23:35:22 +0200 Subject: setting up a blog? In-Reply-To: <162CC011-F3B9-43E4-9C8A-F801A1064961@smalltalkconsulting.com> References: <85687714-8EBB-4E98-B80C-C88F9213AD13@smalltalkconsulting.com> <6ac749c10904090050h28e9dc72y11cf13b6256935a4@mail.gmail.com> <162CC011-F3B9-43E4-9C8A-F801A1064961@smalltalkconsulting.com> Message-ID: Hi, I added the followings to the faq: How to setup a blog? ? Invoke the Add command and select Blog from the dropdown menu. ? To get the archive in the blog, add an Blog Archive component somewhere else, and embed it in the environment of the Blog How to post to a blog? ? Go to the blog ? Invoke the Add command and select Post ? Entry the content ? If you want to publish it for everyone to see, enter the publication date (you can also click on the current button) Does this help? Cheers, Doru On 10 Apr 2009, at 11:01, John M McIntosh wrote: > > On 9-Apr-09, at 12:50 AM, Damien Cassou wrote: >> You may want to download Pier-Setup and execute 'PRDistribution new >> register'. That will erase default Pier kernel and replace with >> with a >> new one, with a good-looking css some default pages and a blog. Here >> is the list of packages I install in a new pharo-web image related to >> Pier: > > Yes, but I want to do it via Add Components so I can fill out > > http://www.mobilewikiserver.com/Wiki_Add_Blog.html > > Although I could supply a premade one via smalltalk objects creating > the required objects, it > likely someone would like to do it manually from a browser. > -- > = > = > = > = > = > ====================================================================== > John M. McIntosh > Corporate Smalltalk Consulting Ltd. http:// > www.smalltalkconsulting.com > = > = > = > = > = > ====================================================================== > > > > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki -- www.tudorgirba.com "Relationships are of two kinds: those we choose and those that happen. They both matter." From dtrussardi at tiscali.it Sat Apr 11 00:45:32 2009 From: dtrussardi at tiscali.it (Dario Trussardi) Date: Sat, 11 Apr 2009 00:45:32 +0200 Subject: Validate submit timeout ? References: <67628d690904101154g66bb86e6n79a6a24efd0c767b@mail.gmail.com> Message-ID: Lukas, < How does the body of this response look like? Is there some > information on what kind of internal error was thrown? No the browser display a generic error. I do some test but i found different conclusion. In the test i display the same web page, based on some description. I press the submit button when some description addCondition: are false. And when pres / represe the submit button ( with no change on input data ) the answer change( sometime ok , somtime with error ) I have Squeak image " the server " on a notebook. A) When i do web request from the notebook ( Internet Explorer 6.0 ) rarely i have error : HTTP-500. B) When i do request from an another PC in a local network with Windows XP and Internet Explorer 7.0 frequently i have error. The browser display a page with generic error : " Internet Explorer: impossibile visualizzare la pagina -> i can't dispaly the page" C) When i do request from anotehr PC in a local network with Ubuntu and Firefox 3.0.8 sometimes i found the error: " Connection Interrupped The connection to the server was reset while the page was loading. The network link was interruped while negotiating a connection. please try again. " I hope you understand my indication. Dario From renggli at gmail.com Sat Apr 11 09:49:12 2009 From: renggli at gmail.com (Lukas Renggli) Date: Sat, 11 Apr 2009 09:49:12 +0200 Subject: Validate submit timeout ? In-Reply-To: References: <67628d690904101154g66bb86e6n79a6a24efd0c767b@mail.gmail.com> Message-ID: <67628d690904110049i7d8c8d78o40459594cabe21a@mail.gmail.com> > < ? ?How does the body of this response look like? Is there some >> >> ? information on what kind of internal error was thrown? > > No the browser display a generic error. Could you try locally with FireFox, because IE does sometimes not display the original messages. > C) When i do request from anotehr PC in a local network with Ubuntu and > Firefox 3.0.8 ? ?sometimes i found the error: > > ? ? ?" Connection Interrupped > ? ? ? The connection to the server was reset while the page was loading. > > ? ? ? The network link was interruped while negotiating a connection. > ? ? ? ? ?please try again. ?" I don't remember ever encountering such a message. What kind of image are you using? Can you reproduce with some other web app that does not use Magritte (it does not look to me like this has anything to do with Magritte)? Lukas -- Lukas Renggli http://www.lukas-renggli.ch From renggli at gmail.com Sat Apr 11 10:00:18 2009 From: renggli at gmail.com (Lukas Renggli) Date: Sat, 11 Apr 2009 10:00:18 +0200 Subject: setting up a blog? In-Reply-To: <85687714-8EBB-4E98-B80C-C88F9213AD13@smalltalkconsulting.com> References: <85687714-8EBB-4E98-B80C-C88F9213AD13@smalltalkconsulting.com> Message-ID: <67628d690904110100h3905fe98xa1caf482cb12b3af@mail.gmail.com> > Right now if I add a blog, then add a blog archive I just get "no blog > found" ?since > > findBlog > ? ? ? ?^ self context structure parents reverse > ? ? ? ? ? ? ? ?detect: [ :each | each isKindOf: PBBlog ] > ? ? ? ? ? ? ? ?ifNone: [ nil ] > > doesn't find the PBBlog Right now all the blog related components (with the exception of the block ticker), expect to be used within the context of a blog. Otherwise they display the error message "no blog found". I agree that this is not ideal in many cases, because it forces users of a blog to create a new environment. Below you find a few possible solutions, but none of them really convinces me: - Blog related components could just hide when being displayed outside of a blog. Maybe that's confusing too, if you add something and but can't see it? - Blog related components could expect you to specify a blog in their settings. That would make everything very declarative, but would prevent from reusing the templates on different blogs. However the widgets could also be part of documents or displayed as a summary on the home page. Maybe that solution isn't that bad after all? Lukas -- Lukas Renggli http://www.lukas-renggli.ch From hernan.wilkinson at gmail.com Mon Apr 13 21:16:05 2009 From: hernan.wilkinson at gmail.com (Hernan Wilkinson) Date: Mon, 13 Apr 2009 16:16:05 -0300 Subject: lots of questions of a newbie :) Message-ID: Hi Mariano, why don't you use Pier on GLASS? you know... automatic persistence... -------------- next part -------------- An HTML attachment was scrubbed... URL: From marianopeck at gmail.com Mon Apr 13 21:21:24 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Mon, 13 Apr 2009 18:21:24 -0100 Subject: lots of questions of a newbie :) In-Reply-To: References: Message-ID: On Mon, Apr 13, 2009 at 6:16 PM, Hernan Wilkinson < hernan.wilkinson at gmail.com> wrote: > Hi Mariano, > why don't you use Pier on GLASS? you know... automatic persistence... jajajaj. Vamos de a poco. Por ahora, quiero tener la base de la aplicacion andando con Pier, Magritte y Seaside. Ya casi la tengo. (me falta muy poco). Si la aplicaci?n va a salir a "producci?n" de verdad, no me va a escalar la persistencia imagen de squeak, por lo que voy a tener que poner Glass o Pier-Magma. El problema es que no se si consigo hosting con Linux 64 y zaraza como para tener GLASS gratarola. Adem?s, si es tan groso como dice, Gemstone, deber?a poder ponerlo m?s adelante no? ;) gracias por cualquier data que me puedas aportar :) Mariano > > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -------------- next part -------------- An HTML attachment was scrubbed... URL: From marianopeck at gmail.com Mon Apr 13 21:36:51 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Mon, 13 Apr 2009 18:36:51 -0100 Subject: lots of questions of a newbie :) In-Reply-To: References: Message-ID: Sorry. This mail was not for the list. 2009/4/13 Mariano Martinez Peck > > > On Mon, Apr 13, 2009 at 6:16 PM, Hernan Wilkinson < > hernan.wilkinson at gmail.com> wrote: > >> Hi Mariano, >> why don't you use Pier on GLASS? you know... automatic persistence... > > > > jajajaj. Vamos de a poco. Por ahora, quiero tener la base de la aplicacion > andando con Pier, Magritte y Seaside. Ya casi la tengo. (me falta muy poco). > Si la aplicaci?n va a salir a "producci?n" de verdad, no me va a escalar la > persistencia imagen de squeak, por lo que voy a tener que poner Glass o > Pier-Magma. El problema es que no se si consigo hosting con Linux 64 y > zaraza como para tener GLASS gratarola. > > Adem?s, si es tan groso como dice, Gemstone, deber?a poder ponerlo m?s > adelante no? ;) > > gracias por cualquier data que me puedas aportar :) > > Mariano > > >> >> _______________________________________________ >> Magritte, Pier and Related Tools ... >> https://www.iam.unibe.ch/mailman/listinfo/smallwiki >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From marianopeck at gmail.com Tue Apr 14 03:08:30 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Mon, 13 Apr 2009 22:08:30 -0300 Subject: Help with Menu and background images Message-ID: Hi I need to do something and I really don't know how to do it. I have a PRMenuWidget and for each menu item I have a particular background image. In those images I have also the text. For example, in the aboutUs.gif there is also the text "About Us". I want to put another background image for mouse hover (actually it only changes the text color). This works well. The problem is that I want to use this image not only with hover but also when that menu item is selected. When I click on that menu item, I want to put that image. In html + javascript it should be something like this: about us any ideas of how can I do this trough pier/seaside ? Thanks in advance, Mariano -------------- next part -------------- An HTML attachment was scrubbed... URL: From marianopeck at gmail.com Tue Apr 14 04:21:03 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Mon, 13 Apr 2009 23:21:03 -0300 Subject: setting up a blog? In-Reply-To: References: <85687714-8EBB-4E98-B80C-C88F9213AD13@smalltalkconsulting.com> <6ac749c10904090050h28e9dc72y11cf13b6256935a4@mail.gmail.com> <162CC011-F3B9-43E4-9C8A-F801A1064961@smalltalkconsulting.com> Message-ID: On Fri, Apr 10, 2009 at 6:35 PM, Tudor Girba wrote: > Hi, > > I added the followings to the faq: > > How to setup a blog? > ? Invoke the Add command and select Blog from the dropdown menu. > ? > To get the archive in the blog, add an Blog Archive component somewhere > else, and embed it in the environment of the Blog > Doru, thanks for the help. I didn't understand this point. I don't have Blog Archive component. I only have PBPostArchive. However, I don't know how to embed it into the enviorment of the blog. Add command in blog, only shows me "post". Sorry for the newbies questions :) Mariano > How to post to a blog? > ? Go to the blog > ? Invoke the Add command and select Post > ? Entry the content > ? If you want to publish it for everyone to see, enter the > publication date (you can also click on the current button) > > > Does this help? > > Cheers, > Doru > > > > On 10 Apr 2009, at 11:01, John M McIntosh wrote: > > >> On 9-Apr-09, at 12:50 AM, Damien Cassou wrote: >> >>> You may want to download Pier-Setup and execute 'PRDistribution new >>> register'. That will erase default Pier kernel and replace with with a >>> new one, with a good-looking css some default pages and a blog. Here >>> is the list of packages I install in a new pharo-web image related to >>> Pier: >>> >> >> Yes, but I want to do it via Add Components so I can fill out >> >> http://www.mobilewikiserver.com/Wiki_Add_Blog.html >> >> Although I could supply a premade one via smalltalk objects creating the >> required objects, it >> likely someone would like to do it manually from a browser. >> -- >> >> =========================================================================== >> John M. McIntosh >> Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com >> >> =========================================================================== >> >> >> >> _______________________________________________ >> Magritte, Pier and Related Tools ... >> https://www.iam.unibe.ch/mailman/listinfo/smallwiki >> > > -- > www.tudorgirba.com > > "Relationships are of two kinds: those we choose and those that happen. > They both matter." > > > > > > > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -------------- next part -------------- An HTML attachment was scrubbed... URL: From marianopeck at gmail.com Tue Apr 14 05:08:42 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Tue, 14 Apr 2009 00:08:42 -0300 Subject: Problem with FileDoesNotExistException Message-ID: I am still learning with Pier and I probably did something wrong. I am now trying to edit /mainenviorment. There I have this: FileDoesNotExistException: '/home/mariano/squeak/imagenes/destinoMochila/Pier-1-1-1.app/Contents/Resources/files/b2/g03r5h2xukw1wbdb5dfktkusjilyoc/unknown' I remember to delete all /home/mariano/squeak/imagenes/destinoMochila/Pier-1-1-1.app/Contents/Resources/files/ once because I move all my images from there (pier) to a particular library (they were css pictures). Any ideas of how can I fix this ? Thanks!! Mariano -------------- next part -------------- An HTML attachment was scrubbed... URL: From johnmci at smalltalkconsulting.com Tue Apr 14 05:42:23 2009 From: johnmci at smalltalkconsulting.com (John M McIntosh) Date: Mon, 13 Apr 2009 20:42:23 -0700 Subject: Problem with FileDoesNotExistException In-Reply-To: References: Message-ID: Well the Pier external file instances point to files in the /files directory. Since you moved the files then you get the file not found exception. So either you can put the files back, if you have them? Or construct a folder structure /b2/g03r5h2xukw1wbdb5dfktkusjilyoc and stick an empty 'unknown' file in there to get around this problem. What is going on is that it's trying to read the 'uknown' file, which is a text file containing the environment On 13-Apr-09, at 8:08 PM, Mariano Martinez Peck wrote: > I am still learning with Pier and I probably did something wrong. I > am now trying to edit /mainenviorment. There I have this: > > FileDoesNotExistException: '/home/mariano/squeak/imagenes/ > destinoMochila/Pier-1-1-1.app/Contents/Resources/files/b2/ > g03r5h2xukw1wbdb5dfktkusjilyoc/unknown' > > I remember to delete all /home/mariano/squeak/imagenes/ > destinoMochila/Pier-1-1-1.app/Contents/Resources/files/ once because > I move all my images from there (pier) to a particular library (they > were css pictures). > > Any ideas of how can I fix this ? > > Thanks!! > > Mariano > > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki -- = = = ======================================================================== John M. McIntosh Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com = = = ======================================================================== From marianopeck at gmail.com Tue Apr 14 05:52:03 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Tue, 14 Apr 2009 00:52:03 -0300 Subject: Problem with FileDoesNotExistException In-Reply-To: References: Message-ID: On Tue, Apr 14, 2009 at 12:42 AM, John M McIntosh < johnmci at smalltalkconsulting.com> wrote: > Well the Pier external file instances point to files in the /files > directory. Since you moved the files then you get the file not found > exception. > > So either you can put the files back, if you have them? Or construct a > folder structure /b2/g03r5h2xukw1wbdb5dfktkusjilyoc and stick an empty > 'unknown' file in there > to get around this problem. What is going on is that it's trying to read > the 'uknown' file, which is a text file containing the environment > > Your answer always so fast :) This actually work men. I didn't have the file so I create the folder and then the uknown file. There I put the structure and now it works perfect. Thanks a lot. Mariano > > > On 13-Apr-09, at 8:08 PM, Mariano Martinez Peck wrote: > > I am still learning with Pier and I probably did something wrong. I am now >> trying to edit /mainenviorment. There I have this: >> >> FileDoesNotExistException: >> '/home/mariano/squeak/imagenes/destinoMochila/Pier-1-1-1.app/Contents/Resources/files/b2/g03r5h2xukw1wbdb5dfktkusjilyoc/unknown' >> >> I remember to delete all >> /home/mariano/squeak/imagenes/destinoMochila/Pier-1-1-1.app/Contents/Resources/files/ >> once because I move all my images from there (pier) to a particular library >> (they were css pictures). >> >> Any ideas of how can I fix this ? >> >> Thanks!! >> >> Mariano >> >> _______________________________________________ >> Magritte, Pier and Related Tools ... >> https://www.iam.unibe.ch/mailman/listinfo/smallwiki >> > > -- > =========================================================================== > John M. McIntosh > Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com > =========================================================================== > > > > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chaetal at gmail.com Tue Apr 14 07:31:59 2009 From: chaetal at gmail.com (Dennis Schetinin) Date: Tue, 14 Apr 2009 09:31:59 +0400 Subject: How to label a binary file Message-ID: <84f77e270904132231i72ef50a5ra1c7235299c4cf9a@mail.gmail.com> Hello! I want to put several links to the same file differenly labeled. Say, I have some page, and a file named 'file' added as a child. I want to put on it something like You can download or do the same where in <> is a link that after click on it immediately starts the download (or opens browser dialog for it). In Pier1.1.1 +file+ gives me the full name of file in the text. +Label>file+ do the same. *Another label>file* opens the page of the file. Probably I miss something, but how can I do this using Pier's syntax? TIA -- Dennis Schetinin -------------- next part -------------- An HTML attachment was scrubbed... URL: From chaetal at gmail.com Tue Apr 14 07:42:40 2009 From: chaetal at gmail.com (Dennis Schetinin) Date: Tue, 14 Apr 2009 09:42:40 +0400 Subject: How to remove garbage from the files dir? Message-ID: <84f77e270904132242of400a0cmdb0ef3f445bb8247@mail.gmail.com> Is there any automatic (or *proper*) way? -- Dennis Schetinin -------------- next part -------------- An HTML attachment was scrubbed... URL: From renggli at gmail.com Tue Apr 14 08:06:34 2009 From: renggli at gmail.com (Lukas Renggli) Date: Tue, 14 Apr 2009 08:06:34 +0200 Subject: How to remove garbage from the files dir? In-Reply-To: <84f77e270904132242of400a0cmdb0ef3f445bb8247@mail.gmail.com> References: <84f77e270904132242of400a0cmdb0ef3f445bb8247@mail.gmail.com> Message-ID: <67628d690904132306o7152e91fx18df72bd1fff1873@mail.gmail.com> > Is there any automatic (or *proper*) way? MAExternalFileModel garbageCollect Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From johnmci at smalltalkconsulting.com Tue Apr 14 08:07:02 2009 From: johnmci at smalltalkconsulting.com (John M McIntosh) Date: Mon, 13 Apr 2009 23:07:02 -0700 Subject: How to remove garbage from the files dir? In-Reply-To: <84f77e270904132242of400a0cmdb0ef3f445bb8247@mail.gmail.com> References: <84f77e270904132242of400a0cmdb0ef3f445bb8247@mail.gmail.com> Message-ID: <62FB04E7-C263-4649-A9BD-77ED531D1854@smalltalkconsulting.com> See MAExternalFileModel>>garbageCollect On 13-Apr-09, at 10:42 PM, Dennis Schetinin wrote: > Is there any automatic (or *proper*) way? > > -- > Dennis Schetinin > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki -- = = = ======================================================================== John M. McIntosh Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com = = = ======================================================================== From chaetal at gmail.com Tue Apr 14 08:09:21 2009 From: chaetal at gmail.com (Dennis Schetinin) Date: Tue, 14 Apr 2009 10:09:21 +0400 Subject: How to remove garbage from the files dir? In-Reply-To: <62FB04E7-C263-4649-A9BD-77ED531D1854@smalltalkconsulting.com> References: <84f77e270904132242of400a0cmdb0ef3f445bb8247@mail.gmail.com> <62FB04E7-C263-4649-A9BD-77ED531D1854@smalltalkconsulting.com> Message-ID: <84f77e270904132309q4553660fn70b57f62200e0b40@mail.gmail.com> Thanks -- Dennis Schetinin -------------- next part -------------- An HTML attachment was scrubbed... URL: From renggli at gmail.com Tue Apr 14 08:12:17 2009 From: renggli at gmail.com (Lukas Renggli) Date: Tue, 14 Apr 2009 08:12:17 +0200 Subject: How to label a binary file In-Reply-To: <84f77e270904132231i72ef50a5ra1c7235299c4cf9a@mail.gmail.com> References: <84f77e270904132231i72ef50a5ra1c7235299c4cf9a@mail.gmail.com> Message-ID: <67628d690904132312y4d5cb846r2f05617cfffb2e86@mail.gmail.com> > +file+ gives me the full name of file in the text. > +Label>file+ do the same. That was a bug in 1.1.1. It works properly in never development versions. If you want to go ahead and update to the latest version ... - Update Magritte-Core, Magritte-Seaside, Pier-Core, Pier-Seaside to the latest versions in that order. - Then update all other Magritte and Pier test and addon packages to the latest version. Lukas -- Lukas Renggli http://www.lukas-renggli.ch From chaetal at gmail.com Tue Apr 14 08:15:42 2009 From: chaetal at gmail.com (Dennis Schetinin) Date: Tue, 14 Apr 2009 10:15:42 +0400 Subject: How to label a binary file In-Reply-To: <67628d690904132312y4d5cb846r2f05617cfffb2e86@mail.gmail.com> References: <84f77e270904132231i72ef50a5ra1c7235299c4cf9a@mail.gmail.com> <67628d690904132312y4d5cb846r2f05617cfffb2e86@mail.gmail.com> Message-ID: <84f77e270904132315o303d0277ydbf0f7f3e05d232b@mail.gmail.com> > > > +file+ gives me the full name of file in the text. > > +Label>file+ do the same. > > That was a bug in 1.1.1. It works properly in never development versions. > > If you want to go ahead and update to the latest version ... > > - Update Magritte-Core, Magritte-Seaside, Pier-Core, Pier-Seaside to > the latest versions in that order. > > - Then update all other Magritte and Pier test and addon packages to > the latest version. > Thank you -- Dennis Schetinin -------------- next part -------------- An HTML attachment was scrubbed... URL: From davorin.rusevljan at gmail.com Tue Apr 14 10:11:28 2009 From: davorin.rusevljan at gmail.com (Davorin Rusevljan) Date: Tue, 14 Apr 2009 10:11:28 +0200 Subject: Image files cumulating Message-ID: <45d84bd00904140111o168c6911kf0b4625576628ff1@mail.gmail.com> Hello, I am using the latest Pharo based Pier one click image on debian server, and I have set up Image persistency. Problem is that backup images seem to be cumulating and eating my disk space quite rapidly. As far as I have understood, there should be a max of 3 backed images, while I have tens, and even hundreds of them. I suspected that maybe it is the file rights issue, but everything seems to be ok, (also if a process can create file, it usually can also delete it). Thanks in advance! rush http://www.cloud208.com/ From renggli at gmail.com Tue Apr 14 10:51:06 2009 From: renggli at gmail.com (Lukas Renggli) Date: Tue, 14 Apr 2009 10:51:06 +0200 Subject: Image files cumulating In-Reply-To: <45d84bd00904140111o168c6911kf0b4625576628ff1@mail.gmail.com> References: <45d84bd00904140111o168c6911kf0b4625576628ff1@mail.gmail.com> Message-ID: <67628d690904140151y56f3e55dxfa5d70916761ec24@mail.gmail.com> The maximum number of images can be set in the configuration dialog in "/systemmanagement/persistency", the default is 3. To debug the deletion of old images you can debug the following expression: PRKernel instances anyOne persistency cleanupBackupImages Cheers, Lukas On Tue, Apr 14, 2009 at 10:11 AM, Davorin Rusevljan wrote: > Hello, > > I am using the latest Pharo based Pier one click image on debian > server, and I have set up Image persistency. > > Problem is that backup images seem to be cumulating and eating my disk > space quite rapidly. As far as I have understood, there should be a > max of 3 backed images, while I have tens, and even hundreds of them. > > I suspected that maybe it is the file rights issue, but everything > seems to be ok, (also if a process can create file, it usually can > also delete it). > > Thanks in advance! > > rush > http://www.cloud208.com/ > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -- Lukas Renggli http://www.lukas-renggli.ch From davorin.rusevljan at gmail.com Tue Apr 14 12:58:23 2009 From: davorin.rusevljan at gmail.com (Davorin Rusevljan) Date: Tue, 14 Apr 2009 12:58:23 +0200 Subject: Image files cumulating In-Reply-To: <67628d690904140151y56f3e55dxfa5d70916761ec24@mail.gmail.com> References: <45d84bd00904140111o168c6911kf0b4625576628ff1@mail.gmail.com> <67628d690904140151y56f3e55dxfa5d70916761ec24@mail.gmail.com> Message-ID: <45d84bd00904140358j712b9a30w3ebf76182be3befa@mail.gmail.com> On 4/14/09, Lukas Renggli wrote: > The maximum number of images can be set in the configuration dialog in > "/systemmanagement/persistency", the default is 3. yes I have also that set to 3. > To debug the deletion of old images you can debug the following expression: > > PRKernel instances anyOne persistency cleanupBackupImages Interestingly, this also seems to be running fine when started alone, it had cleaned all old files and kept only last 3. So something before that (but after the image save) must be breaking persistency cycle. Thanks! rush http://www.cloud208.com/ From p3anoman at gmail.com Tue Apr 14 15:57:51 2009 From: p3anoman at gmail.com (John McKeon) Date: Tue, 14 Apr 2009 09:57:51 -0400 Subject: Help with Menu and background images In-Reply-To: References: Message-ID: <40f637ec0904140657l27984e74g6e64b8ec0051f11e@mail.gmail.com> Hi Mariano I have used .menu li a.active { background: url(xxxJpg); } But I have only gotten it to work using a WAFileLibrary setup in the strictly seaside way. John On Mon, Apr 13, 2009 at 9:08 PM, Mariano Martinez Peck < marianopeck at gmail.com> wrote: > Hi > > I need to do something and I really don't know how to do it. I have a > PRMenuWidget and for each menu item I have a particular background image. In > those images I have also the text. For example, in the aboutUs.gif there is > also the text "About Us". I want to put another background image for mouse > hover (actually it only changes the text color). This works well. The > problem is that I want to use this image not only with hover but also when > that menu item is selected. When I click on that menu item, I want to put > that image. > > In html + javascript it should be something like this: > > href="about.html"> > about us > > > > any ideas of how can I do this trough pier/seaside ? > > Thanks in advance, > > Mariano > > > > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -------------- next part -------------- An HTML attachment was scrubbed... URL: From marianopeck at gmail.com Tue Apr 14 16:04:15 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Tue, 14 Apr 2009 13:04:15 -0100 Subject: How to remove garbage from the files dir? In-Reply-To: <84f77e270904132309q4553660fn70b57f62200e0b40@mail.gmail.com> References: <84f77e270904132242of400a0cmdb0ef3f445bb8247@mail.gmail.com> <62FB04E7-C263-4649-A9BD-77ED531D1854@smalltalkconsulting.com> <84f77e270904132309q4553660fn70b57f62200e0b40@mail.gmail.com> Message-ID: In Pier 1.1.1 one click image, you have a workspace with useful Pier messages. Perhaps is useful to put this one also y the "cleanups" section. Thanks, Mariano On Tue, Apr 14, 2009 at 5:09 AM, Dennis Schetinin wrote: > Thanks > > > -- > Dennis Schetinin > > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -------------- next part -------------- An HTML attachment was scrubbed... URL: From felix.leipold at googlemail.com Tue Apr 14 16:40:32 2009 From: felix.leipold at googlemail.com (Felix Leipold) Date: Tue, 14 Apr 2009 15:40:32 +0100 Subject: Visualizing Validation Errors next to Components that cause them Message-ID: Hi there, is there anyway to visualize errors next the components that caused them? One solution I can think of is actually validating every single one of these components, however it doesn't feel nice. I am currently using a bespoke sublcass of MAToOneRelationDescription to structure my form into different sections. It is cascading the validation to all these embedded objects. Any ideas? Cheers, Felix -------------- next part -------------- An HTML attachment was scrubbed... URL: From renggli at gmail.com Tue Apr 14 17:19:50 2009 From: renggli at gmail.com (Lukas Renggli) Date: Tue, 14 Apr 2009 17:19:50 +0200 Subject: Visualizing Validation Errors next to Components that cause them In-Reply-To: References: Message-ID: <67628d690904140819j716e9411tedd7cb99c6a525d7@mail.gmail.com> > is there anyway to visualize errors next the components that caused them? Sure. The default renderer MATableRenderer adds the class '.error' to the element, so that you can highlight the validation errors using CSS styles. I assume that you also want to display the error message somewhere close-by? In this case you have to implement your own renderer and assign it to the container description (see the reference to MATableRenderer). Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From renggli at gmail.com Tue Apr 14 17:30:26 2009 From: renggli at gmail.com (Lukas Renggli) Date: Tue, 14 Apr 2009 17:30:26 +0200 Subject: Image files cumulating In-Reply-To: <45d84bd00904140358j712b9a30w3ebf76182be3befa@mail.gmail.com> References: <45d84bd00904140111o168c6911kf0b4625576628ff1@mail.gmail.com> <67628d690904140151y56f3e55dxfa5d70916761ec24@mail.gmail.com> <45d84bd00904140358j712b9a30w3ebf76182be3befa@mail.gmail.com> Message-ID: <67628d690904140830q7d779f5al41af4be528ce432b@mail.gmail.com> >> ?To debug the deletion of old images you can debug the following expression: >> >> ? ? PRKernel instances anyOne persistency cleanupBackupImages > > Interestingly, this also seems to be running fine when started alone, > it had cleaned all old files and kept only last 3. So something before > that (but after the image save) must be breaking persistency cycle. I can't reproduce on my machine and on various servers. What happens if you repeatedly evaluate the following expression? PRKernel instances anyOne persistency snapshot This is the code that is executed whenever the image is saved. It should create a backup copy of the current image, save the image under the same name, and delete older images. Does that work for you if you evaluate the expression repeatedly? What version of Squeak and Pier are you working with? Lukas -- Lukas Renggli http://www.lukas-renggli.ch From hernan.wilkinson at gmail.com Tue Apr 14 19:37:34 2009 From: hernan.wilkinson at gmail.com (Hernan Wilkinson) Date: Tue, 14 Apr 2009 14:37:34 -0300 Subject: Questions about Magritte Message-ID: Hi, I been reading and using Magritte for a couple of days and it is impressive how fast a web app can be written with it. We are planing to use it in the development of a major app, but I have some concerns/questions that I would like to ask. Most of them are related with the coupling it generates between the model and the view using the descriptions. These are the questions: (I wanted this mail to be short, but it turned out sort of long... sorry for that...) 1) Has anybody defined the descriptions in other class but the model class? It seems to me that defining the descriptions as class methods in the model class creates a coupling between the model and the view that I would like to avoid. Part of that coupling is because of some view's "attributes" like label, priority, beSorted, readOnly, etc. It also couples the model with Magritte, which avoids me to use the model in an environment without Magritte. I was looking around and it seems possible, but the method #asComponent sends the message #description which finally creates the description container with all the collected descriptions. I could have my own implementation of #asComponent or have another object to do it, but I wanted to know if somebody already did it. (btw, why #description and not #magritteDescription? it keeps my model objects from using the message #description for a business porpoise) 2) The description "descriptionCanton" of the tutorial, is another example of why I want to decouple descriptions from the model class. In the tutorial the cantons are hard coded in the method, but that is not possible in a "real" app. Cantons should be taken from another object, lets say the "Cantons" object. But if I keep the "descriptionCanton" in Address and use "Cantons" from there, I will be coupling Address with Cantons, which will prevent me from using Address in another context or with provinces or states instead of cantons. Does anybody has a suggestion for doing this? 3) To keep the objects that are created, the tutorial suggests to use a class variable, but that is an option that does not scale. For instance, what happens if I want to host the same app several times with different data? (we are planning to use GLASS) Using the tutorial classes, I would like to have an instance of MAPersonManager for one of our customers, another instance of MAPersonManager for other customer, and so on. Also, using a class variable keeps us from writing tests for that class because that variable is shared among all the objects (tests, the real app, etc). I think this is more a SeaSide question... Anyway, I would like to have something like this: MAPersonManager for: self customer1 <-- this is one instance of person manager for one customer MAPersonManager for: self customer2 <--- this is the other... Is it possible? how? 3) I see that Magritte always needs an object to edit it. I mean, an instance of Address to edit an address, an instance of Person to edit a person, and so on. That means that the system could have invalid instances for some period of time. For example, a person without a last name is an invalid instance of Person, but to be able to edit a Person Magritte needs an instance of Person without a last name. Maybe some people will say "so what? what is the problem?". Well there are some problems with doing it this way, for example a programmer could write a program that reads people from an archive and forgets to check that the last name can not be empty. You could say that for writing that program the programmer should use Magritte's description also, but why? what is the meaning of label, priority, etc. in that case? But let's say the programmer uses Magritte's description to read from the file, what will prevent him to create a Person with out a last name from the workspace? So, to avoid invalid instances we use a technique were valid instances are created from the beginning. For the Person example of the tutorial, I would have something like this: Person class>>named: aFirstName and: aLastName .... self assertNotEmpty: aFirstName. self assertNotEmpty: aLastName. .... "Only if all the assertions are passed, the object is created" ^self new initilializeNamed: aFirstName and: aLastName .... and if the object is not immutable, it will have a #syncronizeWith: message that takes a valid instance and changes its instance variables. For the person example: Person>>syncronizeWith: aPerson firstName := aPerson firstName. lastName := aPerson lastName. .... "the same with all inst. var". Doing so, the system ensure me that the person after being modified is valid because "aPerson" has to be valid to exist as an object. There are many advantages of doing this: a) There is no problem when an object is valid depending on the value of different instance variables because all the validations are done together before creating the object. (Dates are an example of this case, it is not enough to know its day number to see if it is valid, the month has to be known also) b) Only valid instances exist in the image, no matter how I create them, from the UI, reading a file, using the workspace, etc. c) New programmers can not make mistakes using the current objects. If they create an object it has to be valid, if not, they will get a debugger. d) Validations of the object are kept with the object, the validations are part of the object's definition and they are not spread in different places. (This is also different from Magritte, that suggests to define validations in the descriptions) Of course we could agree or not that this is a good technique, but it proved to be good for me and the people I work with and I would like to continue using it. Does anybody imagine how to do it with Magritte? or is it completely against its philosophy? Well, these are the questions I have by now... sorry for the long mail. Bye, Hernan. -------------- next part -------------- An HTML attachment was scrubbed... URL: From renggli at gmail.com Tue Apr 14 20:42:53 2009 From: renggli at gmail.com (Lukas Renggli) Date: Tue, 14 Apr 2009 20:42:53 +0200 Subject: Questions about Magritte In-Reply-To: References: Message-ID: <67628d690904141142r7317a679n7cb74730716ee4f7@mail.gmail.com> > 1) Has anybody defined the descriptions in other class but the model class? > It seems to me that defining the descriptions as class methods in the model > class creates a coupling between the model and the view that I would like to > avoid. Part of that coupling is because of some view's "attributes" like > label, priority, beSorted, readOnly, etc. It also couples the model with > Magritte, which avoids me to use the model in an environment without > Magritte. Magritte is not the "View". Magritte is model as well, the meta-model. If you would like to keep descriptions separate, that can be easily done using extension methods. So one could imagine having the descriptions in a separate package, other than the actual model. Furthermore different other packages could modify these descriptions, or add their own. Foo class>>descriptionBar (in model package) ^ MAStringdescription new accessor: #bar; yourself Foo class>>descrptionBarView: aDescription (adds the label in view package) ^ aDescription label: 'Bar' Personally I keep the descriptions all in the model, unless there is a good reason not to do so. > I was looking around and it seems possible, but the method #asComponent > sends the message #description which finally creates the description > container with all the collected descriptions. I could have my own > implementation of #asComponent or have another object to do it, but I wanted > to know if somebody already did it. You could override #description in your classes, or use #asComponentOn: that can be used to use any description together with any model to build a component. > (btw, why #description and not #magritteDescription? it keeps my model > objects from using the message #description for a business porpoise) That concern comes up every couple of years. Probably it is because I am not a native speaker and I never called one of my own business properties #description. As you can see above, Magritte does not depend on that name, if you do not like it you can use something else with little additional code. > 2) The description "descriptionCanton" of the tutorial, is another example > of why I want to decouple descriptions from the model class. In the tutorial > the cantons are hard coded in the method, but that is not possible in a > "real" app. Cantons should be taken from another object, lets say the > "Cantons" object. But if I keep the "descriptionCanton" in Address and use > "Cantons" from there, I will be coupling Address with Cantons, which will > prevent me from using Address in another context or with provinces or states > instead of cantons. Does anybody has a suggestion for doing this? See above and . > 3) To keep the objects that are created, the tutorial suggests to use a > class variable, but that is an option that does not scale. For instance, > what happens if I want to host the same app several times with different > data? (we are planning to use GLASS) Using the tutorial classes, I would > like to have an instance of MAPersonManager for one of our customers, > another instance of MAPersonManager for other customer, and so on. Also, > using a class variable keeps us from writing tests for that class because > that variable is shared among all the objects (tests, the real app, etc). I > think this is more a SeaSide question... I would make the customers part of the model and store a MACustomerManager in some "persistent root". Tests get their own MACustomerManager instance. > 3) I see that Magritte always needs an object to edit it. I mean, an > instance of Address to edit an address, an instance of Person to edit a > person, and so on. No. Descriptions can always be used on any object, as long as the object can handle them. MAMemento is such a power-object. It can essentially handle any set of descriptions. It simply keeps a dictionary from descriptions to their current values. These mementos are used during edit operations. To Magritte a memento object looks like the real object, but it can be edited and changed so that it is temporarily in an invalid state without affecting the real object and thus other concurrent users. Some memento subclasses can even detect and merge conflicts. The real object is only changed when all validation conditions are satisfied. Keep the questions rolling. Lukas -- Lukas Renggli http://www.lukas-renggli.ch From davorin.rusevljan at gmail.com Tue Apr 14 21:12:03 2009 From: davorin.rusevljan at gmail.com (Davorin Rusevljan) Date: Tue, 14 Apr 2009 21:12:03 +0200 Subject: Image files cumulating In-Reply-To: <67628d690904140830q7d779f5al41af4be528ce432b@mail.gmail.com> References: <45d84bd00904140111o168c6911kf0b4625576628ff1@mail.gmail.com> <67628d690904140151y56f3e55dxfa5d70916761ec24@mail.gmail.com> <45d84bd00904140358j712b9a30w3ebf76182be3befa@mail.gmail.com> <67628d690904140830q7d779f5al41af4be528ce432b@mail.gmail.com> Message-ID: <45d84bd00904141212j71ecc85eo1faabaed75a2016f@mail.gmail.com> > This is the code that is executed whenever the image is saved. It > should create a backup copy of the current image, save the image under > the same name, and delete older images. Does that work for you if you > evaluate the expression repeatedly? PRKernel instances anyOne persistency snapshot raises error every time I run it, her is TOS: ------- Stack Trace thisContext HttpService(Object)>>error: self seaside [stopped] port: 8080 aString 'a service is already running on port 8080' ------------- before that it saves image ok, and pier image keeps responding to requests afterwards. I am using latest (1.1.1) pier one-click image based on pharo, downloaded from www.piercms.org Probable is my pier app config, that is triggering the problem, i have: -------- Server Resource Base Url (unspecified) Server Hostname clear Server Path clear Server Port revert to: 80 overriden from WAGlobalConfiguration Server Protocol #http override inherited from WAGlobalConfiguration ------- notice the port:80, this is the port that nginx responds to, and forwards requests to pier image at port:8080 rush http://www.cloud208.com/ From renggli at gmail.com Tue Apr 14 21:40:47 2009 From: renggli at gmail.com (Lukas Renggli) Date: Tue, 14 Apr 2009 21:40:47 +0200 Subject: Image files cumulating In-Reply-To: <45d84bd00904141212j71ecc85eo1faabaed75a2016f@mail.gmail.com> References: <45d84bd00904140111o168c6911kf0b4625576628ff1@mail.gmail.com> <67628d690904140151y56f3e55dxfa5d70916761ec24@mail.gmail.com> <45d84bd00904140358j712b9a30w3ebf76182be3befa@mail.gmail.com> <67628d690904140830q7d779f5al41af4be528ce432b@mail.gmail.com> <45d84bd00904141212j71ecc85eo1faabaed75a2016f@mail.gmail.com> Message-ID: <67628d690904141240r7c3c13b0k2dd7dadbeb756976@mail.gmail.com> > before that it saves image ok, and pier image keeps responding to > requests afterwards. Aha, now I understand. You have multiple web-server adapters listening on the same port. After the image is saved they restart and throw an exception. Stop them all using: WAKom withAllSubclassesDo: #stop And then start your favorite adapter using: WAKom startOn: 8080 That should solve the problem. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From johnmci at smalltalkconsulting.com Tue Apr 14 21:42:13 2009 From: johnmci at smalltalkconsulting.com (John M McIntosh) Date: Tue, 14 Apr 2009 12:42:13 -0700 Subject: 'Unable to fully display recursive composition.' Message-ID: <34421B2A-B349-4CA7-AA41-B9AC11BBBF2F@smalltalkconsulting.com> You know I get a lot of feedback that says: "when i click Environment, I always get 'Unable to fully display recursive composition.'" Er, maybe a different error message is needed? People seem really confused about the current one, also it's hard for them to understand what Environment means... Thoughts are welcome -- = = = ======================================================================== John M. McIntosh Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com = = = ======================================================================== From hernan.wilkinson at gmail.com Tue Apr 14 23:19:23 2009 From: hernan.wilkinson at gmail.com (Hernan Wilkinson) Date: Tue, 14 Apr 2009 18:19:23 -0300 Subject: Questions about Magritte In-Reply-To: <67628d690904141142r7317a679n7cb74730716ee4f7@mail.gmail.com> References: <67628d690904141142r7317a679n7cb74730716ee4f7@mail.gmail.com> Message-ID: Hi Lukas! On Tue, Apr 14, 2009 at 3:42 PM, Lukas Renggli wrote: > > 1) Has anybody defined the descriptions in other class but the model > class? > > It seems to me that defining the descriptions as class methods in the > model > > class creates a coupling between the model and the view that I would like > to > > avoid. Part of that coupling is because of some view's "attributes" like > > label, priority, beSorted, readOnly, etc. It also couples the model with > > Magritte, which avoids me to use the model in an environment without > > Magritte. > > Magritte is not the "View". Magritte is model as well, the meta-model. I understand you point, but it is rare for me to see "label" and "priority" in the descriptions that are use only to create the view (at least that is what I saw so far...). That is what I meant by "coupling with the view". > > > If you would like to keep descriptions separate, that can be easily > done using extension methods. So one could imagine having the > descriptions in a separate package, other than the actual model. > Furthermore different other packages could modify these descriptions, > or add their own. > > Foo class>>descriptionBar (in model package) > ^ MAStringdescription new > accessor: #bar; > yourself > > Foo class>>descrptionBarView: aDescription (adds the label in view package) > ^ aDescription label: 'Bar' > > Personally I keep the descriptions all in the model, unless there is a > good reason not to do so. That's a good idea. I don't like extensions too much but it sounds reasonable for this case. Anyway, I'm still thinking about using another object to have the descriptions... I'll let you know how it worked out > > > 2) The description "descriptionCanton" of the tutorial, is another > example > > of why I want to decouple descriptions from the model class. In the > tutorial > > the cantons are hard coded in the method, but that is not possible in a > > "real" app. Cantons should be taken from another object, lets say the > > "Cantons" object. But if I keep the "descriptionCanton" in Address and > use > > "Cantons" from there, I will be coupling Address with Cantons, which will > > prevent me from using Address in another context or with provinces or > states > > instead of cantons. Does anybody has a suggestion for doing this? > > See above and . > But the block is still coupled with some implementation... I was thinking about something more similar to a desktop app, where you create the view and then you set the objects you want to show. For example: addressView := AddressView new. addressView cantons: self cantonsSubsystem contents. addressView open. > > 3) To keep the objects that are created, the tutorial suggests to use a > > class variable, but that is an option that does not scale. For instance, > > what happens if I want to host the same app several times with different > > data? (we are planning to use GLASS) Using the tutorial classes, I would > > like to have an instance of MAPersonManager for one of our customers, > > another instance of MAPersonManager for other customer, and so on. Also, > > using a class variable keeps us from writing tests for that class because > > that variable is shared among all the objects (tests, the real app, etc). > I > > think this is more a SeaSide question... > > I would make the customers part of the model and store a > MACustomerManager in some "persistent root". Tests get their own > MACustomerManager instance. I agree, but I don't see how to access the right customer manager from the seaside component... > > > 3) I see that Magritte always needs an object to edit it. I mean, an > > instance of Address to edit an address, an instance of Person to edit a > > person, and so on. > > No. Descriptions can always be used on any object, as long as the > object can handle them. MAMemento is such a power-object. It can > essentially handle any set of descriptions. It simply keeps a > dictionary from descriptions to their current values. > yes, I saw that, it is great! > > These mementos are used during edit operations. To Magritte a memento > object looks like the real object, but it can be edited and changed so > that it is temporarily in an invalid state without affecting the real > object and thus other concurrent users. Some memento subclasses can > even detect and merge conflicts. The real object is only changed when > all validation conditions are satisfied. > yes, but if I want to validate the object creation and use the #syncronizeWith: idea I have to do something more I guess... We need also to keep the changes that are made to an object, so directly changing the object will not do it... > Keep the questions rolling. Thanks for the answer! Bye, Hernan > > > Lukas > > -- > Lukas Renggli > http://www.lukas-renggli.ch > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -------------- next part -------------- An HTML attachment was scrubbed... URL: From hernan.wilkinson at gmail.com Tue Apr 14 23:21:20 2009 From: hernan.wilkinson at gmail.com (Hernan Wilkinson) Date: Tue, 14 Apr 2009 18:21:20 -0300 Subject: 'Unable to fully display recursive composition.' In-Reply-To: <34421B2A-B349-4CA7-AA41-B9AC11BBBF2F@smalltalkconsulting.com> References: <34421B2A-B349-4CA7-AA41-B9AC11BBBF2F@smalltalkconsulting.com> Message-ID: I completely agree. I don't have a suggestion but I'm one of the people you are talking about :-) On Tue, Apr 14, 2009 at 4:42 PM, John M McIntosh < johnmci at smalltalkconsulting.com> wrote: > You know I get a lot of feedback that says: "when i click Environment, I > always get 'Unable to fully display recursive composition.'" > > Er, maybe a different error message is needed? People seem really confused > about the current one, also it's hard for them to understand what > Environment means... > > Thoughts are welcome > -- > =========================================================================== > John M. McIntosh > Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com > =========================================================================== > > _______________________________________________ > 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 Apr 15 00:29:16 2009 From: renggli at gmail.com (Lukas Renggli) Date: Wed, 15 Apr 2009 00:29:16 +0200 Subject: 'Unable to fully display recursive composition.' In-Reply-To: References: <34421B2A-B349-4CA7-AA41-B9AC11BBBF2F@smalltalkconsulting.com> Message-ID: <67628d690904141529h621e03cdjf1b7a0d35cad57e7@mail.gmail.com> > I completely agree. I don't have a suggestion but I'm one of the people you > are talking about :-) Early versions of Pier used to display one recursive nesting level and then a link. People were confused about this behavior, thus I replaced it with that paragraph. If anybody has a great idea to improve the situation, I am happy to integrate it. Lukas -- Lukas Renggli http://www.lukas-renggli.ch From davorin.rusevljan at gmail.com Wed Apr 15 01:12:01 2009 From: davorin.rusevljan at gmail.com (Davorin Rusevljan) Date: Wed, 15 Apr 2009 01:12:01 +0200 Subject: Image files cumulating In-Reply-To: <67628d690904141240r7c3c13b0k2dd7dadbeb756976@mail.gmail.com> References: <45d84bd00904140111o168c6911kf0b4625576628ff1@mail.gmail.com> <67628d690904140151y56f3e55dxfa5d70916761ec24@mail.gmail.com> <45d84bd00904140358j712b9a30w3ebf76182be3befa@mail.gmail.com> <67628d690904140830q7d779f5al41af4be528ce432b@mail.gmail.com> <45d84bd00904141212j71ecc85eo1faabaed75a2016f@mail.gmail.com> <67628d690904141240r7c3c13b0k2dd7dadbeb756976@mail.gmail.com> Message-ID: <45d84bd00904141612y49c22231ie81ebbe4cc0e1230@mail.gmail.com> Ok, here is what I get. (I am doing this through Halo inspector web interface) WAKom withAllSubclassesDo: #stop . WAKomEncoded startOn: 8080 . -- runs fine. TcpService services (click on inspect buton) -- nice only one Seside running service returned on port 8080. PRKernel instances anyOne persistency snapshot -- bangs with exception stack described few messages above. TcpService services -- not nice, now has 2 Seaside services on port 8080 one of them stoped. thanks! rush -------------- next part -------------- An HTML attachment was scrubbed... URL: From renggli at gmail.com Wed Apr 15 08:27:49 2009 From: renggli at gmail.com (Lukas Renggli) Date: Wed, 15 Apr 2009 08:27:49 +0200 Subject: Image files cumulating In-Reply-To: <45d84bd00904141612y49c22231ie81ebbe4cc0e1230@mail.gmail.com> References: <45d84bd00904140111o168c6911kf0b4625576628ff1@mail.gmail.com> <67628d690904140151y56f3e55dxfa5d70916761ec24@mail.gmail.com> <45d84bd00904140358j712b9a30w3ebf76182be3befa@mail.gmail.com> <67628d690904140830q7d779f5al41af4be528ce432b@mail.gmail.com> <45d84bd00904141212j71ecc85eo1faabaed75a2016f@mail.gmail.com> <67628d690904141240r7c3c13b0k2dd7dadbeb756976@mail.gmail.com> <45d84bd00904141612y49c22231ie81ebbe4cc0e1230@mail.gmail.com> Message-ID: <67628d690904142327v4fe8afc1j193f8bc6b76498f1@mail.gmail.com> > -- bangs with exception stack described few messages above. > TcpService services Did you try stopping "TcpService services" as well? Lukas -- Lukas Renggli http://www.lukas-renggli.ch From davorin.rusevljan at gmail.com Wed Apr 15 11:39:37 2009 From: davorin.rusevljan at gmail.com (Davorin Rusevljan) Date: Wed, 15 Apr 2009 11:39:37 +0200 Subject: Image files cumulating In-Reply-To: <67628d690904142327v4fe8afc1j193f8bc6b76498f1@mail.gmail.com> References: <45d84bd00904140111o168c6911kf0b4625576628ff1@mail.gmail.com> <67628d690904140151y56f3e55dxfa5d70916761ec24@mail.gmail.com> <45d84bd00904140358j712b9a30w3ebf76182be3befa@mail.gmail.com> <67628d690904140830q7d779f5al41af4be528ce432b@mail.gmail.com> <45d84bd00904141212j71ecc85eo1faabaed75a2016f@mail.gmail.com> <67628d690904141240r7c3c13b0k2dd7dadbeb756976@mail.gmail.com> <45d84bd00904141612y49c22231ie81ebbe4cc0e1230@mail.gmail.com> <67628d690904142327v4fe8afc1j193f8bc6b76498f1@mail.gmail.com> Message-ID: <45d84bd00904150239y69703e20u7c46e66ebc68352e@mail.gmail.com> On Wed, Apr 15, 2009 at 8:27 AM, Lukas Renggli wrote: > > -- bangs with exception stack described few messages above. > > TcpService services > > Did you try stopping "TcpService services" as well? > ok, now I have tried: WAKom withAllSubclassesDo: #stop . TcpService services do: [:s | s stop]. WAKomEncoded startOn: 8080 . -- ok, only one service left running on port 8080 PRKernel instances anyOne persistency snapshot -- again same exception, also has 2 services on port 8080, one stoped other running. So I think snapshot is somehow generating more than one service for port 8080. Also here is the Cloud208.sh script used to start pier if that migh give you some clue: ----------------- #!/bin/sh dir="/ebs/cloud208/Pier" EXE="$dir/Contents/Linux686" RES="$dir/Contents/Resources" case "$1" in start) nohup su -c "$EXE/squeak -plugins $EXE -vm-display-null -vm-soun d-null -mmap 100m $RES/pier.image '' port 8080" squeak & echo $! > $dir/pid ;; stop) kill `cat $dir/pid` ;; *) exit 3 ;; esac ----------------- thanks! rush http://www.cloud208.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From renggli at gmail.com Wed Apr 15 12:00:56 2009 From: renggli at gmail.com (Lukas Renggli) Date: Wed, 15 Apr 2009 12:00:56 +0200 Subject: Image files cumulating In-Reply-To: <45d84bd00904150239y69703e20u7c46e66ebc68352e@mail.gmail.com> References: <45d84bd00904140111o168c6911kf0b4625576628ff1@mail.gmail.com> <67628d690904140151y56f3e55dxfa5d70916761ec24@mail.gmail.com> <45d84bd00904140358j712b9a30w3ebf76182be3befa@mail.gmail.com> <67628d690904140830q7d779f5al41af4be528ce432b@mail.gmail.com> <45d84bd00904141212j71ecc85eo1faabaed75a2016f@mail.gmail.com> <67628d690904141240r7c3c13b0k2dd7dadbeb756976@mail.gmail.com> <45d84bd00904141612y49c22231ie81ebbe4cc0e1230@mail.gmail.com> <67628d690904142327v4fe8afc1j193f8bc6b76498f1@mail.gmail.com> <45d84bd00904150239y69703e20u7c46e66ebc68352e@mail.gmail.com> Message-ID: <67628d690904150300h4d1196a0i533c0d12952c3764@mail.gmail.com> > d-null -mmap 100m $RES/pier.image '' port 8080" squeak & > ?? ? ? ? ? ? ? ?echo $! > $dir/pid > ?? ? ? ? ? ? ? ?;; Looks like you should remove the "port 8080" thing. Lukas -- Lukas Renggli http://www.lukas-renggli.ch From davorin.rusevljan at gmail.com Wed Apr 15 12:19:48 2009 From: davorin.rusevljan at gmail.com (Davorin Rusevljan) Date: Wed, 15 Apr 2009 12:19:48 +0200 Subject: Image files cumulating In-Reply-To: <67628d690904150300h4d1196a0i533c0d12952c3764@mail.gmail.com> References: <45d84bd00904140111o168c6911kf0b4625576628ff1@mail.gmail.com> <67628d690904140151y56f3e55dxfa5d70916761ec24@mail.gmail.com> <45d84bd00904140358j712b9a30w3ebf76182be3befa@mail.gmail.com> <67628d690904140830q7d779f5al41af4be528ce432b@mail.gmail.com> <45d84bd00904141212j71ecc85eo1faabaed75a2016f@mail.gmail.com> <67628d690904141240r7c3c13b0k2dd7dadbeb756976@mail.gmail.com> <45d84bd00904141612y49c22231ie81ebbe4cc0e1230@mail.gmail.com> <67628d690904142327v4fe8afc1j193f8bc6b76498f1@mail.gmail.com> <45d84bd00904150239y69703e20u7c46e66ebc68352e@mail.gmail.com> <67628d690904150300h4d1196a0i533c0d12952c3764@mail.gmail.com> Message-ID: <45d84bd00904150319m14506af3q8567ecfb4a5c4565@mail.gmail.com> On Wed, Apr 15, 2009 at 12:00 PM, Lukas Renggli wrote: > > d-null -mmap 100m $RES/pier.image '' port 8080" squeak & > > echo $! > $dir/pid > > ;; > > Looks like you should remove the "port 8080" thing. > > Lukas > yes, that was that. many thanks, and sorry for the trouble! rush http://www.cloud208.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From felix.leipold at googlemail.com Wed Apr 15 16:33:23 2009 From: felix.leipold at googlemail.com (Felix Leipold) Date: Wed, 15 Apr 2009 15:33:23 +0100 Subject: Visualizing Validation Errors next to Components that cause them In-Reply-To: <67628d690904140819j716e9411tedd7cb99c6a525d7@mail.gmail.com> References: <67628d690904140819j716e9411tedd7cb99c6a525d7@mail.gmail.com> Message-ID: Hi Lukas, unfortunately the whole case is a bit more difficult because I am using nested components. The situation is visulised in this screenshot: http://wuetender-junger-mann.de/screenshot-nested-components.png The trouble is, that the embedded components don't have access to the errors, as the outer component starts calling into the descriptors and inside the validation logic there is no reference to the embedded components, so the errors can't be added to those. I am a bit lost. Should I perhaps abandon the idea of flattening multiple objects into a single form? Cheers, Felix On Tue, Apr 14, 2009 at 4:19 PM, Lukas Renggli wrote: > > is there anyway to visualize errors next the components that caused them? > > Sure. The default renderer MATableRenderer adds the class '.error' to > the element, so that you can highlight the validation errors using CSS > styles. > > I assume that you also want to display the error message somewhere > close-by? In this case you have to implement your own renderer and > assign it to the container description (see the reference to > MATableRenderer). > > Cheers, > Lukas > > -- > Lukas Renggli > http://www.lukas-renggli.ch > _______________________________________________ > 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 Apr 15 16:46:23 2009 From: renggli at gmail.com (Lukas Renggli) Date: Wed, 15 Apr 2009 16:46:23 +0200 Subject: Visualizing Validation Errors next to Components that cause them In-Reply-To: References: <67628d690904140819j716e9411tedd7cb99c6a525d7@mail.gmail.com> Message-ID: <67628d690904150746q4f54f7d1v7c737ae683a0789a@mail.gmail.com> > I am a bit lost. Should I perhaps abandon the idea of flattening multiple > objects into a single form? Personally I've never really used the internal editors. What I usually do in such situations is to build individual components (without buttons and validation) for the the different objects and then present these components from a normal Seaside component. Another possibility is to build a single flat description consisting the descriptions of multiple objects. Search the mailing list on how to build such a composite description. This sometimes works well. Lukas -- Lukas Renggli http://www.lukas-renggli.ch From marianopeck at gmail.com Thu Apr 16 01:32:15 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Wed, 15 Apr 2009 20:32:15 -0300 Subject: Help with Menu and background images In-Reply-To: <40f637ec0904140657l27984e74g6e64b8ec0051f11e@mail.gmail.com> References: <40f637ec0904140657l27984e74g6e64b8ec0051f11e@mail.gmail.com> Message-ID: On Tue, Apr 14, 2009 at 10:57 AM, John McKeon wrote: > Hi Mariano > > I have used > > .menu li a.active { background: url(xxxJpg); } > > But I have only gotten it to work using a WAFileLibrary setup in the > strictly seaside way. > John I made it work with your help :) Sorry to bother you with CSS questions, but I am very bad with them haha. Thanks a lot John, Mariano > > > On Mon, Apr 13, 2009 at 9:08 PM, Mariano Martinez Peck < > marianopeck at gmail.com> wrote: > >> Hi >> >> I need to do something and I really don't know how to do it. I have a >> PRMenuWidget and for each menu item I have a particular background image. In >> those images I have also the text. For example, in the aboutUs.gif there is >> also the text "About Us". I want to put another background image for mouse >> hover (actually it only changes the text color). This works well. The >> problem is that I want to use this image not only with hover but also when >> that menu item is selected. When I click on that menu item, I want to put >> that image. >> >> In html + javascript it should be something like this: >> >> > onmouseover="window.status='about us'; changeImages('about_us', >> 'images/about-us-over.gif'); return true;" href="about.html"> >> about us >> >> >> >> any ideas of how can I do this trough pier/seaside ? >> >> Thanks in advance, >> >> Mariano >> >> >> >> _______________________________________________ >> Magritte, Pier and Related Tools ... >> https://www.iam.unibe.ch/mailman/listinfo/smallwiki >> > > > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jborden23 at mac.com Thu Apr 16 03:50:12 2009 From: jborden23 at mac.com (John Borden) Date: Wed, 15 Apr 2009 20:50:12 -0500 Subject: Pier - Advanced Search In-Reply-To: References: <65F330CB-65CD-4E0E-B100-35CA910DC67D@mac.com> <67628d690902140134t71ccf152ub4114120af914016@mail.gmail.com> Message-ID: Mariano, There is a first draft of the Advanced Search in Pier-SW2- AdvancedSearch in the Pier Addons. A short description of it is at: http://smallwiki2.seasidehosting.st/seaside/pier/Changes+for+Pier/ Advanced+Search The picture on that page shows how it could be used in a lightbox. It was really neat seeing the background page change as the links were clicked, however it crashed after 2 clicks with a Seaside Walkback (WAComponentsNotFoundError: Components not found while processing callbacks:). I implemented #children in all sorts of ways, but never got it to work right. Let us know if you can get it to work. Thanks, John On Apr 2, 2009, at 10:18 AM, C?drick B?ler wrote: > I just had a quick look... > > It seems they refer to an inst var "creation" in PRStructure... Does > such a var existed before ? > > Thanks > > 2009/4/1 Mariano Martinez Peck : >> >> >> On Sat, Mar 28, 2009 at 10:13 PM, John Borden >> wrote: >>> >>> All, >>> Is anyone aware of an advanced search for pier, such as case >>> sensitive, >>> boolean (this phrase and/or/but-not that phrase), date related, >>> etc? If >>> not, I'll start looking into adding it to the PRFullTextSearch >>> class. >>> Thanks, >>> John >> >> Yes. Please do!!! This would be very useful for an application I >> am making >> now. So, consider me as a beta tester if you want :) >> >> Cheers, >> >> Mariano >> >>> >>> _______________________________________________ >>> SmallWiki, Magritte, Pier and Related Tools ... >>> https://www.iam.unibe.ch/mailman/listinfo/smallwiki >> >> >> >> _______________________________________________ >> SmallWiki, Magritte, Pier and Related Tools ... >> https://www.iam.unibe.ch/mailman/listinfo/smallwiki >> > > > > -- > C?drick > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki -------------- next part -------------- An HTML attachment was scrubbed... URL: From marianopeck at gmail.com Thu Apr 16 04:48:31 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Wed, 15 Apr 2009 23:48:31 -0300 Subject: Pier - Advanced Search In-Reply-To: References: <65F330CB-65CD-4E0E-B100-35CA910DC67D@mac.com> <67628d690902140134t71ccf152ub4114120af914016@mail.gmail.com> Message-ID: On Wed, Apr 15, 2009 at 10:50 PM, John Borden wrote: > Mariano,There is a first draft of the Advanced Search in > Pier-SW2-AdvancedSearch in the Pier Addons. A short description of it is > at: > > http://smallwiki2.seasidehosting.st/seaside/pier/Changes+for+Pier/Advanced+Search > Nice men!!! Very good job. Very useful. I could perfectly added to my website. I have some ideas/notes/questions: 1) In your example: http://smallwiki2.seasidehosting.st/seaside/pier/Changes+for+Pier/Advanced+Search you have the word "search" as an example. When you do focus there, this is removed. This doesn't happen to me with your widget. I have there what I searched the last time. Wouldn't be better to put "search" as an example, every time I render that component ? 2) In your example, the search is an ajax search. I think it is PRAjaxSearchWidget. But, in your code, PRAdvancedSearchWidget is a subclass of PRSearchWidget. I like more the ajax's one. 3) Suppose I want the final/normal user to customize the search: max items, filters, and so on. Should the user have access to "edit" command of my search component? or It would be better to let customize this in the advanced search in the same way as "case sensitive" or "case insensitive" ??? > > The picture on that page shows how it could be used in a lightbox. It was > really neat seeing the background page change as the links were clicked, > however it crashed after 2 clicks with a Seaside Walkback > (WAComponentsNotFoundError: Components not found while processing > callbacks:). I implemented #children in all sorts of ways, but never got it > to work right. > > > Let us know if you can get it to work. > I could reproduce the error. I will try to find the problem. However, know I am still very newbie with Pier and a a little newbie with Seaside haha. > Thanks, > No, thanks to you. Thanks for your work and for sharing this to us. Cheers, Mariano > John > > > On Apr 2, 2009, at 10:18 AM, C?drick B?ler wrote: > > I just had a quick look... > > It seems they refer to an inst var "creation" in PRStructure... Does > such a var existed before ? > > Thanks > > 2009/4/1 Mariano Martinez Peck : > > > > On Sat, Mar 28, 2009 at 10:13 PM, John Borden wrote: > > > All, > Is anyone aware of an advanced search for pier, such as case sensitive, > boolean (this phrase and/or/but-not that phrase), date related, etc? If > not, I'll start looking into adding it to the PRFullTextSearch class. > Thanks, > John > > > Yes. Please do!!! This would be very useful for an application I am making > now. So, consider me as a beta tester if you want :) > > Cheers, > > Mariano > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > > > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > > > > > -- > C?drick > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > > > > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -------------- next part -------------- An HTML attachment was scrubbed... URL: From girba at iam.unibe.ch Thu Apr 16 15:52:03 2009 From: girba at iam.unibe.ch (Tudor Girba) Date: Thu, 16 Apr 2009 15:52:03 +0200 Subject: setting up a blog? In-Reply-To: References: <85687714-8EBB-4E98-B80C-C88F9213AD13@smalltalkconsulting.com> <6ac749c10904090050h28e9dc72y11cf13b6256935a4@mail.gmail.com> <162CC011-F3B9-43E4-9C8A-F801A1064961@smalltalkconsulting.com> Message-ID: Hi Mariano, The Environment is the page that defines the template for the current structure :). You can see it via the Edit Design Command. In the Pier 1.1.1 distribution, the environment of /blog is / blogenvironment. If you go to /blog and Edit Design, you will see that you have a +/environment/blogarchive+. This means that the component blogarchive resides somewhere else (in this case under /environment) and it is embedded when the blog is rendered. Indeed, the class is PBPostArchive, but in the ui menu it appears under the name of 'Archive' in the 'Blog' grouping. For the code to produce this setup, please take a look in PRDistribution from the Pier-Setup package. Cheers, Doru On 14 Apr 2009, at 04:21, Mariano Martinez Peck wrote: > > > On Fri, Apr 10, 2009 at 6:35 PM, Tudor Girba > wrote: > Hi, > > I added the followings to the faq: > > How to setup a blog? > ? Invoke the Add command and select Blog from the dropdown > menu. > ? > > > To get the archive in the blog, add an Blog Archive component > somewhere else, and embed it in the environment of the Blog > > Doru, thanks for the help. > > I didn't understand this point. I don't have Blog Archive component. > I only have PBPostArchive. However, I don't know how to embed it > into the enviorment of the blog. Add command in blog, only shows me > "post". > > Sorry for the newbies questions :) > > Mariano > > > > How to post to a blog? > ? Go to the blog > ? Invoke the Add command and select Post > ? Entry the content > ? If you want to publish it for everyone to see, enter the > publication date (you can also click on the current button) > > > Does this help? > > Cheers, > Doru > > > > On 10 Apr 2009, at 11:01, John M McIntosh wrote: > > > On 9-Apr-09, at 12:50 AM, Damien Cassou wrote: > You may want to download Pier-Setup and execute 'PRDistribution new > register'. That will erase default Pier kernel and replace with with a > new one, with a good-looking css some default pages and a blog. Here > is the list of packages I install in a new pharo-web image related to > Pier: > > Yes, but I want to do it via Add Components so I can fill out > > http://www.mobilewikiserver.com/Wiki_Add_Blog.html > > Although I could supply a premade one via smalltalk objects creating > the required objects, it > likely someone would like to do it manually from a browser. > -- > = > = > = > = > = > ====================================================================== > John M. McIntosh > Corporate Smalltalk Consulting Ltd. http:// > www.smalltalkconsulting.com > = > = > = > = > = > ====================================================================== > > > > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > > -- > www.tudorgirba.com > > "Relationships are of two kinds: those we choose and those that > happen. They both matter." > > > > > > > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki -- www.tudorgirba.com "Speaking louder won't make your point worthier." From fritsche.markus at gmx.net Thu Apr 16 22:50:37 2009 From: fritsche.markus at gmx.net (Markus Fritsche) Date: Thu, 16 Apr 2009 22:50:37 +0200 Subject: WAHtmlRoot>>#rss? Message-ID: Hello, I am just playing with pharo web and did an update of the latest pharo web image. When I'm surfing to the pier installation and click on "News", I get a DNU "WAHtmlRoot>>#rss". What's the proper dependency for that? Editing spooled news posting...: It's rsrss - www.squeaksource.com/rsrss and then package RSRSS2. Kind regards, Markus From dtrussardi at tiscali.it Fri Apr 17 17:47:18 2009 From: dtrussardi at tiscali.it (Dario Trussardi) Date: Fri, 17 Apr 2009 17:47:18 +0200 Subject: MA.....Description for ScaledDecimal Message-ID: Hi, i need to manage one Magritte description for money data. I think it's base on ScaledDecimal class. Anyone development it ? Any pointers would be greatly appreciated! Thanks, Dario -------------- next part -------------- An HTML attachment was scrubbed... URL: From keith_hodges at yahoo.co.uk Fri Apr 17 21:07:11 2009 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Fri, 17 Apr 2009 20:07:11 +0100 Subject: MA.....Description for ScaledDecimal In-Reply-To: References: Message-ID: <49E8D35F.302@yahoo.co.uk> Dario Trussardi wrote: > Hi, > > i need to manage one Magritte description for money data. > > I think it's base on ScaledDecimal class. > > Anyone development it ? > > > Any pointers would be greatly appreciated! > > Thanks, > > > Dario Hello, I use the FixedDecimal for this purpose. There is MAFixedDecimalDescription in the Magritte-RDB package in magritteaddons Keith From chaetal at gmail.com Sat Apr 18 21:32:32 2009 From: chaetal at gmail.com (Dennis Schetinin) Date: Sat, 18 Apr 2009 23:32:32 +0400 Subject: Loosing file name dowloading PRFile Message-ID: <84f77e270904181232v6897061fo6b9df658fc5929c@mail.gmail.com> I use Pier in pharo0.1-10268web09.04. When I try to download a File I added before, original file name is ignored and it is named as 'Pier' always. The contents is correct. -- Dennis Schetinin From renggli at gmail.com Sat Apr 18 22:49:11 2009 From: renggli at gmail.com (Lukas Renggli) Date: Sat, 18 Apr 2009 22:49:11 +0200 Subject: Loosing file name dowloading PRFile In-Reply-To: <84f77e270904181232v6897061fo6b9df658fc5929c@mail.gmail.com> References: <84f77e270904181232v6897061fo6b9df658fc5929c@mail.gmail.com> Message-ID: <67628d690904181349w2b8a8061w86431aeb1720554f@mail.gmail.com> Thank you for reporting. I can reproduce this, but not immediately fix this. I created an issue and will look at this ASAP. http://code.google.com/p/pier/issues/detail?id=94 Cheers, Lukas On Sat, Apr 18, 2009 at 9:32 PM, Dennis Schetinin wrote: > I use Pier in pharo0.1-10268web09.04. When I try to download a File I > added before, original file name is ignored and it is named as 'Pier' > always. The contents is correct. > > -- > Dennis Schetinin > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -- Lukas Renggli http://www.lukas-renggli.ch From renggli at gmail.com Sun Apr 19 10:18:21 2009 From: renggli at gmail.com (Lukas Renggli) Date: Sun, 19 Apr 2009 10:18:21 +0200 Subject: Loosing file name dowloading PRFile In-Reply-To: <67628d690904181349w2b8a8061w86431aeb1720554f@mail.gmail.com> References: <84f77e270904181232v6897061fo6b9df658fc5929c@mail.gmail.com> <67628d690904181349w2b8a8061w86431aeb1720554f@mail.gmail.com> Message-ID: <67628d690904190118i2e7506c2jf6dae427a1814f94@mail.gmail.com> Serving files seems to be very confusing, as there are so many driving forces and requirements. 1. The filename. There are two filenames, the one of the structure and the one of the uploaded file. To me it is not clear which one is preferable to be used? The one of the structure changes when the file is renamed, the other one is determined by the original filename of the upload. 2. The serving. There are two ways to serve files. Serving can either happen using Seaside (the default) or using Apache (which is much more efficient). The two approaches have completely different semantics, in the Seaside case we have full control over the path. The approach with Apache is limited to how Magritte lays out the files to the file-system, however that could be fixed using X-Sendfile, but then requires a non-standard plugin in Apache. 3. The response. In the case Seaside is serving we can set Content-Disposition in the response. Setting it means that browsers downloads the file, even if it could be displayed in the browser window. Maybe there are even more possible dimensions. Anybody has an idea how to consistently resolve these problems? Lukas -- Lukas Renggli http://www.lukas-renggli.ch From ducasse at iam.unibe.ch Sun Apr 19 17:13:39 2009 From: ducasse at iam.unibe.ch (=?ISO-8859-1?Q?st=E9phane_ducasse?=) Date: Sun, 19 Apr 2009 17:13:39 +0200 Subject: Loosing file name dowloading PRFile In-Reply-To: <67628d690904181349w2b8a8061w86431aeb1720554f@mail.gmail.com> References: <84f77e270904181232v6897061fo6b9df658fc5929c@mail.gmail.com> <67628d690904181349w2b8a8061w86431aeb1720554f@mail.gmail.com> Message-ID: <34CE0D3C-3BD8-4126-84E7-DEFD14D40421@iam.unibe.ch> lukas this is a pier only bug? On Apr 18, 2009, at 10:49 PM, Lukas Renggli wrote: > Thank you for reporting. I can reproduce this, but not immediately > fix this. > > I created an issue and will look at this ASAP. > > http://code.google.com/p/pier/issues/detail?id=94 > > Cheers, > Lukas > > On Sat, Apr 18, 2009 at 9:32 PM, Dennis Schetinin > wrote: >> I use Pier in pharo0.1-10268web09.04. When I try to download a File I >> added before, original file name is ignored and it is named as 'Pier' >> always. The contents is correct. >> >> -- >> Dennis Schetinin >> _______________________________________________ >> Magritte, Pier and Related Tools ... >> https://www.iam.unibe.ch/mailman/listinfo/smallwiki >> > > > > -- > Lukas Renggli > http://www.lukas-renggli.ch > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki From davorin.rusevljan at gmail.com Sun Apr 19 17:23:19 2009 From: davorin.rusevljan at gmail.com (Davorin Rusevljan) Date: Sun, 19 Apr 2009 17:23:19 +0200 Subject: Loosing file name dowloading PRFile In-Reply-To: <67628d690904190118i2e7506c2jf6dae427a1814f94@mail.gmail.com> References: <84f77e270904181232v6897061fo6b9df658fc5929c@mail.gmail.com> <67628d690904181349w2b8a8061w86431aeb1720554f@mail.gmail.com> <67628d690904190118i2e7506c2jf6dae427a1814f94@mail.gmail.com> Message-ID: <45d84bd00904190823l33e7545fx6133224c6a941dc9@mail.gmail.com> On Sun, Apr 19, 2009 at 10:18 AM, Lukas Renggli wrote: > Serving files seems to be very confusing, as there are so many driving > forces and requirements. > > 1. The filename. There are two filenames, the one of the structure and > the one of the uploaded file. To me it is not clear which one is > preferable to be used? The one of the structure changes when the file > is renamed, the other one is determined by the original filename of > the upload. the extension is sometimes cruical, since windows uses it to offer a program that can open it. Can structure names end in .doc? 2. The serving. There are two ways to serve files. Serving can either > happen using Seaside (the default) or using Apache (which is much more > efficient). The two approaches have completely different semantics, in > the Seaside case we have full control over the path. The approach with > Apache is limited to how Magritte lays out the files to the > file-system, however that could be fixed using X-Sendfile, but then > requires a non-standard plugin in Apache. > it would be ideal if the same image could be used in both scenarios. In one file would be served from the pier image, for instance when designer is working on his local copy based on one-click image. In other scenario web proxy would intercept file requst by recognizing url patttern, and serve the file it self. For second scenario to work, there are two important conditions: - all structures that need to be served as files need to have some recognizable url like /seaside/pier/content-files/* - pier should also write uploaded files in equvalent file system directory structure so nginx or apache could serve it of from there. Maybe there are even more possible dimensions. Anybody has an idea how > to consistently resolve these problems? > I think I have managed to add some more complications with my wishes ;) rush http://www.cloud208.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From davorin.rusevljan at gmail.com Sun Apr 19 17:27:58 2009 From: davorin.rusevljan at gmail.com (Davorin Rusevljan) Date: Sun, 19 Apr 2009 17:27:58 +0200 Subject: Loosing file name dowloading PRFile In-Reply-To: <45d84bd00904190823l33e7545fx6133224c6a941dc9@mail.gmail.com> References: <84f77e270904181232v6897061fo6b9df658fc5929c@mail.gmail.com> <67628d690904181349w2b8a8061w86431aeb1720554f@mail.gmail.com> <67628d690904190118i2e7506c2jf6dae427a1814f94@mail.gmail.com> <45d84bd00904190823l33e7545fx6133224c6a941dc9@mail.gmail.com> Message-ID: <45d84bd00904190827n134458b5r44fd418e4e20cd09@mail.gmail.com> Maybe offering FileLibrary and its web interface as part of pier, and not forcing it to be a structure could be a solution? But in this case user rights management that works for structures would be lost. rush http://www.cloud208.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From renggli at gmail.com Sun Apr 19 17:38:07 2009 From: renggli at gmail.com (Lukas Renggli) Date: Sun, 19 Apr 2009 17:38:07 +0200 Subject: Loosing file name dowloading PRFile In-Reply-To: <45d84bd00904190823l33e7545fx6133224c6a941dc9@mail.gmail.com> References: <84f77e270904181232v6897061fo6b9df658fc5929c@mail.gmail.com> <67628d690904181349w2b8a8061w86431aeb1720554f@mail.gmail.com> <67628d690904190118i2e7506c2jf6dae427a1814f94@mail.gmail.com> <45d84bd00904190823l33e7545fx6133224c6a941dc9@mail.gmail.com> Message-ID: <67628d690904190838k27c58bdfs6b08e0aa1ea64d4f@mail.gmail.com> >> 1. The filename. There are two filenames, the one of the structure and >> the one of the uploaded file. To me it is not clear which one is >> preferable to be used? The one of the structure changes when the file >> is renamed, the other one is determined by the original filename of >> the upload. > > the extension is sometimes cruical, since windows uses it to offer a program > that can open it. Can structure names end in .doc? Yes, that is possible. It is probably more consistent to use the structure name, because like this one has the possibility to rename. >> 2. The serving. There are two ways to serve files. Serving can either >> happen using Seaside (the default) or using Apache (which is much more >> efficient). The two approaches have completely different semantics, in >> the Seaside case we have full control over the path. The approach with >> Apache is limited to how Magritte lays out the files to the >> file-system, however that could be fixed using X-Sendfile, but then >> requires a non-standard plugin in Apache. > > it would be ideal if the same image could be used in both scenarios. In one > file would be served from the pier image, for instance when designer is > working on his local copy based on one-click image. In other scenario web > proxy would intercept file requst by recognizing url patttern, and serve the > file it self. > For second scenario to work, there are two important conditions: > - all structures that need to be served as files need to have some > ?recognizable url like /seaside/pier/content-files/* > - pier should also write uploaded files in equvalent file system directory > structure so nginx or apache could serve it of from there. This is essentially already implemented, see the class side of MAExternalFileModel or the PRFileSettings widget to change these properties from the web. The problem with Apache serving is that the directories have to be obfuscated to not loose security. This is not a problem for downloads, but for style-sheets for example that sometimes use relative references to other files. Using X-Sendfile this could be fixed relatively easy, but this is a non-standard Apache module. Lukas -- Lukas Renggli http://www.lukas-renggli.ch From renggli at gmail.com Sun Apr 19 17:41:53 2009 From: renggli at gmail.com (Lukas Renggli) Date: Sun, 19 Apr 2009 17:41:53 +0200 Subject: Loosing file name dowloading PRFile In-Reply-To: <45d84bd00904190827n134458b5r44fd418e4e20cd09@mail.gmail.com> References: <84f77e270904181232v6897061fo6b9df658fc5929c@mail.gmail.com> <67628d690904181349w2b8a8061w86431aeb1720554f@mail.gmail.com> <67628d690904190118i2e7506c2jf6dae427a1814f94@mail.gmail.com> <45d84bd00904190823l33e7545fx6133224c6a941dc9@mail.gmail.com> <45d84bd00904190827n134458b5r44fd418e4e20cd09@mail.gmail.com> Message-ID: <67628d690904190841n2602fd93j756b96de657ce6e4@mail.gmail.com> > Maybe offering FileLibrary and its web interface as part of pier, and not > forcing it to be a structure could be a solution? But in this case user > rights management that works for structures would be lost. That's a possibility. Although I've never tried myself, but it should be possible to add the Seaside application configuration and the FileLibrary management component into some protected management page. However this is not really efficient when files get bigger than a few KB, because these are compiled as Smalltalk methods and thus always in memory. Lukas -- Lukas Renggli http://www.lukas-renggli.ch From renggli at gmail.com Sun Apr 19 17:45:13 2009 From: renggli at gmail.com (Lukas Renggli) Date: Sun, 19 Apr 2009 17:45:13 +0200 Subject: Loosing file name dowloading PRFile In-Reply-To: <34CE0D3C-3BD8-4126-84E7-DEFD14D40421@iam.unibe.ch> References: <84f77e270904181232v6897061fo6b9df658fc5929c@mail.gmail.com> <67628d690904181349w2b8a8061w86431aeb1720554f@mail.gmail.com> <34CE0D3C-3BD8-4126-84E7-DEFD14D40421@iam.unibe.ch> Message-ID: <67628d690904190845g3026ca4ap56b32e1a0e9d80b3@mail.gmail.com> > this is a pier only ?bug? As I tried to explain there are several dragging forces here. When one is fixed, another one breaks. I am trying to find a solution that is consistent and that works for most setups. Earlier versions did not show this bug until John McIntosh discovered that enforcing a file-name in the HTTP header caused the file to always be downloaded instead of displayed inside the browser window. Lukas -- Lukas Renggli http://www.lukas-renggli.ch From davorin.rusevljan at gmail.com Sun Apr 19 17:51:19 2009 From: davorin.rusevljan at gmail.com (Davorin Rusevljan) Date: Sun, 19 Apr 2009 17:51:19 +0200 Subject: Loosing file name dowloading PRFile In-Reply-To: <67628d690904190838k27c58bdfs6b08e0aa1ea64d4f@mail.gmail.com> References: <84f77e270904181232v6897061fo6b9df658fc5929c@mail.gmail.com> <67628d690904181349w2b8a8061w86431aeb1720554f@mail.gmail.com> <67628d690904190118i2e7506c2jf6dae427a1814f94@mail.gmail.com> <45d84bd00904190823l33e7545fx6133224c6a941dc9@mail.gmail.com> <67628d690904190838k27c58bdfs6b08e0aa1ea64d4f@mail.gmail.com> Message-ID: <45d84bd00904190851g3a30a8e4t366c7e6431f10b02@mail.gmail.com> > > This is essentially already implemented, see the class side of > MAExternalFileModel or the PRFileSettings widget to change these > properties from the web. The problem with Apache serving is that the > directories have to be obfuscated to not loose security. This is not a > problem for downloads, but for style-sheets for example that sometimes > use relative references to other files. Using X-Sendfile this could be > fixed relatively easy, but this is a non-standard Apache module. > I think there are 2 usage scenarios with different needs: a) files are actually documents with security - i.e. someone has uplaoded pdf with perliminary financial results b) files that are used as part of templates, css and similar. which need no security on read side, but need offloading to proxy a) is served pretty well within current framework b) does not fit well within current framework since it is difficult to offload to proxy Maybe the solution is not trying to fit those 2 into one thing but handle them separately. rush http://www.cloud208.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From johnmci at smalltalkconsulting.com Sun Apr 19 19:55:57 2009 From: johnmci at smalltalkconsulting.com (John M McIntosh) Date: Sun, 19 Apr 2009 10:55:57 -0700 Subject: Loosing file name dowloading PRFile In-Reply-To: <67628d690904190118i2e7506c2jf6dae427a1814f94@mail.gmail.com> References: <84f77e270904181232v6897061fo6b9df658fc5929c@mail.gmail.com> <67628d690904181349w2b8a8061w86431aeb1720554f@mail.gmail.com> <67628d690904190118i2e7506c2jf6dae427a1814f94@mail.gmail.com> Message-ID: <53609D41-7EEE-4BA1-8843-24D1475EE3A6@smalltalkconsulting.com> On 19-Apr-09, at 1:18 AM, Lukas Renggli wrote: > 3. The response. In the case Seaside is serving we can set > Content-Disposition in the response. Setting it means that browsers > downloads the file, even if it could be displayed in the browser > window. Ah, I thought I mentioned if you stick "inline" in WAReponse>>attachmentWithFileName: aString self headerAt: 'Content-Disposition' put: 'inline; attachment; filename="', aString, '"' see http://www.ietf.org/rfc/rfc2183.txt Then Safari is happy to show PDF files in the browser, versus downloading -- = = = ======================================================================== John M. McIntosh Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com = = = ======================================================================== From renggli at gmail.com Sun Apr 19 20:03:55 2009 From: renggli at gmail.com (Lukas Renggli) Date: Sun, 19 Apr 2009 20:03:55 +0200 Subject: Loosing file name dowloading PRFile In-Reply-To: <53609D41-7EEE-4BA1-8843-24D1475EE3A6@smalltalkconsulting.com> References: <84f77e270904181232v6897061fo6b9df658fc5929c@mail.gmail.com> <67628d690904181349w2b8a8061w86431aeb1720554f@mail.gmail.com> <67628d690904190118i2e7506c2jf6dae427a1814f94@mail.gmail.com> <53609D41-7EEE-4BA1-8843-24D1475EE3A6@smalltalkconsulting.com> Message-ID: <67628d690904191103h51732281uf16bdd3c62e19018@mail.gmail.com> >> 3. The response. In the case Seaside is serving we can set >> Content-Disposition in the response. Setting it means that browsers >> downloads the file, even if it could be displayed in the browser >> window. > > Ah, I thought I mentioned if you stick "inline" in > > WAReponse>>attachmentWithFileName: aString > ? ? ? ?self headerAt: 'Content-Disposition' put: 'inline; attachment; > filename="', aString, '"' > > see http://www.ietf.org/rfc/rfc2183.txt > > Then Safari is happy to show PDF files in the browser, versus downloading Ahh, interesting. I wasn't aware of that, only that removing the Content-Disposition altogether has the same effect but also loses control over the filename. That should solve at least the problems when the file is served through Squeak/Seaside. Thanks for the hint. Lukas > > -- > =========================================================================== > John M. McIntosh > Corporate Smalltalk Consulting Ltd. ?http://www.smalltalkconsulting.com > =========================================================================== > > > > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -- Lukas Renggli http://www.lukas-renggli.ch From johnmci at smalltalkconsulting.com Sun Apr 19 20:51:49 2009 From: johnmci at smalltalkconsulting.com (John M McIntosh) Date: Sun, 19 Apr 2009 11:51:49 -0700 Subject: Loosing file name dowloading PRFile In-Reply-To: <67628d690904191103h51732281uf16bdd3c62e19018@mail.gmail.com> References: <84f77e270904181232v6897061fo6b9df658fc5929c@mail.gmail.com> <67628d690904181349w2b8a8061w86431aeb1720554f@mail.gmail.com> <67628d690904190118i2e7506c2jf6dae427a1814f94@mail.gmail.com> <53609D41-7EEE-4BA1-8843-24D1475EE3A6@smalltalkconsulting.com> <67628d690904191103h51732281uf16bdd3c62e19018@mail.gmail.com> Message-ID: I think you've a copy of WikiServer, use the latest one and give it a try. The other issue was the desire for Magritte to hand back the contents of the file to seaside for downloading. This might be fine on a server, but if you attempt to toss a 64MB file on the iPhone you die, well it could apply to a desktop machine if you move 500MB files. The problem is MAExternalFileModel>>urlFor: aRenderingContext ^ self baseUrl isNil ifTrue: [ super urlFor: aRenderingContext ] ifFalse: [ self baseUrl , '/' , (self location reduce: [ :a :b | a , '/' , b ]) , '/' , self filename ] MAFileModel>>urlFor: aContext ^ aContext urlForDocument: self contents mimeType: self mimetype fileName: self filename See the "self contents" In WikiServer I changed that to MAExternalFileModel >>urlFor: aContext ^ self baseUrl isNil ifTrue: [aContext urlForDocument: self mimeType: self mimetype fileName: self filename] ifFalse: [ self baseUrl , '/' , (self location reduce: [ :a :b | a , '/' , b ]) , '/' , self filename ] Other helper methods I had to add were MAExternalFileModel>>asMIMEDocumentType: aMimeType "for text documents we need to return the proper mime type aware document otherwise we get UTF-8 errors but for other document types we want a binary type" self maintype = 'text' ifTrue: [^self readStream asMIMEDocumentType: aMimeType]. ^self readStreamBinary asMIMEDocumentType: aMimeType MAExternalFileModel>>readStreamBinary "We make a StandardFileStream instance and set to binary, oddly someone closes this later and re-opens as text if we make a MultiByteFileStream then it starts streaming as utf-8 which is a bad thing" ^ (self directory readOnlyStandardFileNamed: self filename) binary FileDirectory>>readOnlyStandardFileNamed: localFileName "Open the existing file with the given name in this directory for read-only access." ^ StandardFileStream readOnlyFileNamed: (self fullNameFor: localFileName) On 19-Apr-09, at 11:03 AM, Lukas Renggli wrote: >>> Ahh, interesting. I wasn't aware of that, only that removing the > Content-Disposition altogether has the same effect but also loses > control over the filename. That should solve at least the problems > when the file is served through Squeak/Seaside. > > Thanks for the hint. > > Lukas -- = = = ======================================================================== John M. McIntosh Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com = = = ======================================================================== From renggli at gmail.com Sun Apr 19 23:12:54 2009 From: renggli at gmail.com (Lukas Renggli) Date: Sun, 19 Apr 2009 23:12:54 +0200 Subject: Loosing file name dowloading PRFile In-Reply-To: References: <84f77e270904181232v6897061fo6b9df658fc5929c@mail.gmail.com> <67628d690904181349w2b8a8061w86431aeb1720554f@mail.gmail.com> <67628d690904190118i2e7506c2jf6dae427a1814f94@mail.gmail.com> <53609D41-7EEE-4BA1-8843-24D1475EE3A6@smalltalkconsulting.com> <67628d690904191103h51732281uf16bdd3c62e19018@mail.gmail.com> Message-ID: <67628d690904191412n2cb3e8eft2a56852cceb7b1e6@mail.gmail.com> > I think you've a copy of WikiServer, use the latest one and give it a try. The binary application, yes ;-) > See the "self contents" ?In WikiServer I changed that to > > MAExternalFileModel >>urlFor: aContext > > ? ? ? ?^ self baseUrl isNil > ? ? ? ? ? ? ? ?ifTrue: [aContext > ? ? ? ? ? ? ? ? ? ? ? ?urlForDocument: self > ? ? ? ? ? ? ? ? ? ? ? ?mimeType: self mimetype > ? ? ? ? ? ? ? ? ? ? ? ?fileName: self filename] > ? ? ? ? ? ? ? ?ifFalse: [ self baseUrl , '/' , (self location reduce: [ :a > :b | a , '/' , b ]) , '/' , self filename ] That's a very cool trick. Thanks for sharing. I integrated the change with Magritte-Seaside-lr.295, however instead of using the standard WADocumentHandler of Seaside I added my own handler called MAFileModelHandler. Like this I don't think I need to worry about ascii/binary modes (AFAIK) and I can avoid unnecessary copy and cache operations that the default implementation idoes. Furthermore it does not depend on platform dependent file operations, something I would like to avoid if possible (for GST, VisualWorks and GemStone compatibility). Please give it a try and let me know if this solves at least the current problems when the file is served through the image. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From johnmci at smalltalkconsulting.com Mon Apr 20 00:06:57 2009 From: johnmci at smalltalkconsulting.com (John M McIntosh) Date: Sun, 19 Apr 2009 15:06:57 -0700 Subject: Loosing file name dowloading PRFile In-Reply-To: <67628d690904191412n2cb3e8eft2a56852cceb7b1e6@mail.gmail.com> References: <84f77e270904181232v6897061fo6b9df658fc5929c@mail.gmail.com> <67628d690904181349w2b8a8061w86431aeb1720554f@mail.gmail.com> <67628d690904190118i2e7506c2jf6dae427a1814f94@mail.gmail.com> <53609D41-7EEE-4BA1-8843-24D1475EE3A6@smalltalkconsulting.com> <67628d690904191103h51732281uf16bdd3c62e19018@mail.gmail.com> <67628d690904191412n2cb3e8eft2a56852cceb7b1e6@mail.gmail.com> Message-ID: <268B3B23-832B-4C74-A545-AF2B2C37D3E9@smalltalkconsulting.com> Ok, well I forgot to add the part for the upload side. Again the issue on the iphone is uploading 50MB files, but for desktop, what if someone wants to push 1GB file? anyway first you have to turn on the KOM stream uploading feature, say via WAKom default streamUploads: true. now the issue is with MAFileUploadCompoent>>upload: aFile self value: (aFile isNil ifFalse: [ self description kind new mimetype: aFile contentType; filename: aFile fileName; contents: aFile contents; yourself ]) That sets the content to "aFile contents". I changed that to MAFileUploadComponent>>upload: aFile self value: (aFile isNil ifFalse: [ self description kind new mimetype: aFile contentType; filename: aFile fileName; contentsFromWATemporaryFileProxy: aFile; yourself ]) MAFileModel>>contentsFromWATemporaryFilePRoxy: file self contents: file contents and MAExternalFileModel>>contentsFromWATemporaryFileProxy: file | writeStream readStream | "Write Stream is a file handle to the Pier storage library, Read Stream will be the WATemporaryFile" "Set instance filesave value, and copy file from temporary storage to Pier storage" writeStream := self writeStream. readStream := file stream. filesize := readStream size. [FileDirectory default copyFile: readStream toFile: writeStream] ensure: [readStream close. writeStream close] and WATemporaryFile>>stream | stream | stream := self temporaryDirectory readOnlyFileNamed: self temporaryFileName. stream binary. ^stream I note however on the iPhone I do this instead of the copyFile:toFile: IPhoneWikiServerUI isiPhone ifTrue: [IPhoneWikiServerUI move: readStream to: writeStream. ^self]. and use an operating system call to move the file from one directory to the other so the cost is zero, when WATemporaryFileProxy closes, it runs out the delete the file, but we've move it, guess I should add an override... BTW In Sophie we coded up a os-x api call to either copy or move files via OS calls so we could preserve all the file meta-data. Doing the copyFile: toFile: is just so *primitive* and expensive. Now if someone want's to test all this that would be great because my environment is contaminated with changes and it's a bit hard to confirm I"ve detailed all the changes. We've attempted to mark all our Magrritte/pier/seaside changes as overrides or extensions, but it's easy to miss one or two. Testing in fact is easy on a desktop machine, for linux based machines you would start the VM with a memory configuration of oh say 40MB depending on your pier image. On the Macintosh make a copy of the squeak.app and change the info.plist SqueakMaxHeapSize entry from 536870912 to 40000000, or you can start the VM on the cmd line (see http://wiki.squeak.org/squeak/105) and set -memory 40m just like you would do on Linux. This will limit the VM to use 40MB of memory, now attempt to add an image file of say 50MB to a pier page. No doubt you should use the GC/ memory report to confirm what you think you are telling the VM about memory upper bound is what it actually is don.g On 19-Apr-09, at 2:12 PM, Lukas Renggli wrote: >> I integrated the change with Magritte-Seaside-lr.295, however instead > of using the standard WADocumentHandler of Seaside I added my own > handler called MAFileModelHandler. Like this I don't think I need to > worry about ascii/binary modes (AFAIK) and I can avoid unnecessary > copy and cache operations that the default implementation idoes. > Furthermore it does not depend on platform dependent file operations, > something I would like to avoid if possible (for GST, VisualWorks and > GemStone compatibility). > > Please give it a try and let me know if this solves at least the > current problems when the file is served through the image. > > Cheers, > Lukas > > -- > Lukas Renggli > http://www.lukas-renggli.ch -- = = = ======================================================================== John M. McIntosh Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com = = = ======================================================================== From kbrown at mac.com Mon Apr 20 01:12:58 2009 From: kbrown at mac.com (Ken G. Brown) Date: Sun, 19 Apr 2009 17:12:58 -0600 Subject: WikiServer1.3.5b & Pier on iPhone In-Reply-To: References: Message-ID: I hope this is the right place to discuss WikiServer and Pier. I've been messing around a bit with John McIntosh's WikiServer1.3.5b on the iPhone and would like some help understanding what's going on with Pier. I wanted to understand the overall structure better and thought I would like to see the Tree view at the bottom left instead of just Children. However when viewing Tree instead of Children view at bottom left things are getting lost. In order to reproduce the symptoms in a fresh WikiServer, click Help, then Layout, then Environment, see at the bottom left: Children Contents Footer Search Sidebar Style.css Title Wikiserver.png Click Sidebar/Navigation,/Settings, choose Component Class = Tree, then Apply. Go back to Help/Layout/Environment, and only see: -WikiServer +Help at bottom left. Previous items above are not there. In order to revert back to Children view in the sidebar the necessary items were no longer available in the sidebar. I had to search for the Navigation page and then do as follows: Do a search for Navigation, go to Navigation page, click Settings, revert Component Class back to Children from Tree. Position back to the Environment page (Help/Layout/Environment), items above are back. What changes might I need to make in order for the Tree view to not lose the items? Ken G. Brown From marianopeck at gmail.com Mon Apr 20 16:32:55 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Mon, 20 Apr 2009 13:32:55 -0100 Subject: Source control version and Pier Message-ID: Hi folks! I was trying to see how to manage all my code and resources of a Pier application. There are several things I must manage: 1) My library (css, js, and so on), seaside components, ... 2) External files ( /files ) 3) Pier content (trough import/export utility) For 1) I use Monticello. But I don't know how to manage 2) and 3). I tough I could have a SVN project where I can put them. So, what I should do is: export and then commit SVN. However, I would like to have all in the same control version system. Is there a way I can do 2) and 3) in MC ? Thanks in advance, Mariano -------------- next part -------------- An HTML attachment was scrubbed... URL: From johnmci at smalltalkconsulting.com Mon Apr 20 18:42:32 2009 From: johnmci at smalltalkconsulting.com (John M McIntosh) Date: Mon, 20 Apr 2009 09:42:32 -0700 Subject: Source control version and Pier In-Reply-To: References: Message-ID: For WikiServer I SVN all the source code, the image/change, and the / files. At release time I ensure MC is updated for my project, quit the VM, then commit everything to SVN. This ensure I can later export a source tree from SVN for a particular version and have everything the same as it was when I made the version commit point. Although this tosses 40-50MB of image/changes into SVN, disk space is cheap. That said a chore I have this week is to explore import/export to have it build a zip file of not only the PRKernel, but /files as well. But I'm not going to expect that should take over from my SVN solution On 20-Apr-09, at 7:32 AM, Mariano Martinez Peck wrote: > Hi folks! > > I was trying to see how to manage all my code and resources of a > Pier application. There are several things I must manage: > > 1) My library (css, js, and so on), seaside components, ... > 2) External files ( /files ) > 3) Pier content (trough import/export utility) > > For 1) I use Monticello. > > But I don't know how to manage 2) and 3). I tough I could have a SVN > project where I can put them. So, what I should do is: export and > then commit SVN. > > However, I would like to have all in the same control version > system. Is there a way I can do 2) and 3) in MC ? > > Thanks in advance, > > Mariano > > > > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki -- = = = ======================================================================== John M. McIntosh Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com = = = ======================================================================== From keith_hodges at yahoo.co.uk Mon Apr 20 19:45:51 2009 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Mon, 20 Apr 2009 18:45:51 +0100 Subject: Source control version and Pier In-Reply-To: References: Message-ID: <49ECB4CF.1050706@yahoo.co.uk> Mariano Martinez Peck wrote: > Hi folks! > > I was trying to see how to manage all my code and resources of a Pier > application. There are several things I must manage: > > 1) My library (css, js, and so on), seaside components, ... > 2) External files ( /files ) > 3) Pier content (trough import/export utility) > > For 1) I use Monticello. > > But I don't know how to manage 2) and 3). I tough I could have a SVN > project where I can put them. So, what I should do is: export and then > commit SVN. My prefered solution is to use bazaar for 1, and 2, and for the image, and all support files. This is because bazaar supports a lightweight checkout for deployment. > However, I would like to have all in the same control version system. > Is there a way I can do 2) and 3) in MC One reason I added files support to Monticello 1.5 was for seaside css/js. (yes MC can handle files, check squeak-dev announcements) Keith From keith_hodges at yahoo.co.uk Mon Apr 20 19:50:07 2009 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Mon, 20 Apr 2009 18:50:07 +0100 Subject: Source control version and Pier In-Reply-To: References: Message-ID: <49ECB5CF.6050303@yahoo.co.uk> John M McIntosh wrote: > For WikiServer I SVN all the source code, the image/change, and the > /files. > > At release time I ensure MC is updated for my project, quit the VM, > then commit everything to SVN. > This ensure I can later export a source tree from SVN for a particular > version and have everything the same as it was when I made the version > commit point. > > Although this tosses 40-50MB of image/changes into SVN, disk space is > cheap. > > That said a chore I have this week is to explore import/export to have > it build a zip file of not only the PRKernel, but /files as well. > But I'm not going to expect that should take over from my SVN solution > > On 20-Apr-09, at 7:32 AM, Mariano Martinez Peck wrote: Since mcz is a zip file anyway perhaps an extension to enable PRKernel nodes to be exported into mc, in a similar manner to the existing mc1.5 file support, would be an idea worth pursuing Keith From marianopeck at gmail.com Mon Apr 20 20:45:24 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Mon, 20 Apr 2009 17:45:24 -0100 Subject: Source control version and Pier In-Reply-To: <49ECB4CF.1050706@yahoo.co.uk> References: <49ECB4CF.1050706@yahoo.co.uk> Message-ID: On Mon, Apr 20, 2009 at 4:45 PM, Keith Hodges wrote: > Mariano Martinez Peck wrote: > > Hi folks! > > > > I was trying to see how to manage all my code and resources of a Pier > > application. There are several things I must manage: > > > > 1) My library (css, js, and so on), seaside components, ... > > 2) External files ( /files ) > > 3) Pier content (trough import/export utility) > > > > For 1) I use Monticello. > > > > But I don't know how to manage 2) and 3). I tough I could have a SVN > > project where I can put them. So, what I should do is: export and then > > commit SVN. > My prefered solution is to use bazaar for 1, and 2, and for the image, > and all support files. This is because bazaar supports a lightweight > checkout for deployment. Thank you very much to both of you. It is a long time since I want to try bazar. I really hate SVN so, this is the perfect exuse for me to use bazar :) > > > However, I would like to have all in the same control version system. > > Is there a way I can do 2) and 3) in MC > One reason I added files support to Monticello 1.5 was for seaside > css/js. (yes MC can handle files, check squeak-dev announcements) > Do you know which verion is in Pier 1.1.1 one click image ? and in pharo ? Thanks a lot. Mariano > > Keith > > > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -------------- next part -------------- An HTML attachment was scrubbed... URL: From marianopeck at gmail.com Mon Apr 20 20:47:54 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Mon, 20 Apr 2009 17:47:54 -0100 Subject: Source control version and Pier In-Reply-To: References: <49ECB4CF.1050706@yahoo.co.uk> Message-ID: I wanted to say bazaar not bazar haha On Mon, Apr 20, 2009 at 5:45 PM, Mariano Martinez Peck < marianopeck at gmail.com> wrote: > > > On Mon, Apr 20, 2009 at 4:45 PM, Keith Hodges wrote: > >> Mariano Martinez Peck wrote: >> > Hi folks! >> > >> > I was trying to see how to manage all my code and resources of a Pier >> > application. There are several things I must manage: >> > >> > 1) My library (css, js, and so on), seaside components, ... >> > 2) External files ( /files ) >> > 3) Pier content (trough import/export utility) >> > >> > For 1) I use Monticello. >> > >> > But I don't know how to manage 2) and 3). I tough I could have a SVN >> > project where I can put them. So, what I should do is: export and then >> > commit SVN. >> My prefered solution is to use bazaar for 1, and 2, and for the image, >> and all support files. This is because bazaar supports a lightweight >> checkout for deployment. > > > Thank you very much to both of you. > > It is a long time since I want to try bazar. I really hate SVN so, this is > the perfect exuse for me to use bazar :) > > >> >> > However, I would like to have all in the same control version system. >> > Is there a way I can do 2) and 3) in MC >> One reason I added files support to Monticello 1.5 was for seaside >> css/js. (yes MC can handle files, check squeak-dev announcements) >> > > Do you know which verion is in Pier 1.1.1 one click image ? and in pharo ? > > Thanks a lot. > > Mariano > > >> >> Keith >> >> >> _______________________________________________ >> Magritte, Pier and Related Tools ... >> https://www.iam.unibe.ch/mailman/listinfo/smallwiki >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From merlyn at stonehenge.com Mon Apr 20 20:58:02 2009 From: merlyn at stonehenge.com (Randal L. Schwartz) Date: Mon, 20 Apr 2009 11:58:02 -0700 Subject: Source control version and Pier In-Reply-To: (Mariano Martinez Peck's message of "Mon, 20 Apr 2009 17:45:24 -0100") References: <49ECB4CF.1050706@yahoo.co.uk> Message-ID: <86iqkzkv9h.fsf@blue.stonehenge.com> >>>>> "Mariano" == Mariano Martinez Peck writes: Mariano> It is a long time since I want to try bazar. I really hate SVN so, this is Mariano> the perfect exuse for me to use bazar :) Be sure to look at "git" as well. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion From marianopeck at gmail.com Mon Apr 20 21:01:18 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Mon, 20 Apr 2009 18:01:18 -0100 Subject: Source control version and Pier In-Reply-To: <86iqkzkv9h.fsf@blue.stonehenge.com> References: <49ECB4CF.1050706@yahoo.co.uk> <86iqkzkv9h.fsf@blue.stonehenge.com> Message-ID: On Mon, Apr 20, 2009 at 5:58 PM, Randal L. Schwartz wrote: > >>>>> "Mariano" == Mariano Martinez Peck writes: > > Mariano> It is a long time since I want to try bazar. I really hate SVN so, > this is > Mariano> the perfect exuse for me to use bazar :) > > Be sure to look at "git" as well. > Yes. It's true. There are lots of them. I also look Git once because I use Linux and Git author......and there is Mercury also. But, the truth is that I didn't really work with any of them. I will look at git then and try to use one of them. Thanks for the help. Mariano > > -- > Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 > > Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. > See http://methodsandmessages.vox.com/ for Smalltalk and Seaside > discussion > -------------- next part -------------- An HTML attachment was scrubbed... URL: From keith_hodges at yahoo.co.uk Mon Apr 20 21:02:10 2009 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Mon, 20 Apr 2009 20:02:10 +0100 Subject: Source control version and Pier In-Reply-To: References: <49ECB4CF.1050706@yahoo.co.uk> Message-ID: <49ECC6B2.4070201@yahoo.co.uk> Mariano Martinez Peck wrote: > > > On Mon, Apr 20, 2009 at 4:45 PM, Keith Hodges > > wrote: > > Mariano Martinez Peck wrote: > > Hi folks! > > > > I was trying to see how to manage all my code and resources of a > Pier > > application. There are several things I must manage: > > > > 1) My library (css, js, and so on), seaside components, ... > > 2) External files ( /files ) > > 3) Pier content (trough import/export utility) > > > > For 1) I use Monticello. > > > > But I don't know how to manage 2) and 3). I tough I could have a SVN > > project where I can put them. So, what I should do is: export > and then > > commit SVN. > My prefered solution is to use bazaar for 1, and 2, and for the image, > and all support files. This is because bazaar supports a lightweight > checkout for deployment. > > > Thank you very much to both of you. > > It is a long time since I want to try bazar. I really hate SVN so, > this is the perfect exuse for me to use bazar :) > > > > > However, I would like to have all in the same control version > system. > > Is there a way I can do 2) and 3) in MC > One reason I added files support to Monticello 1.5 was for seaside > css/js. (yes MC can handle files, check squeak-dev announcements) > > > Do you know which verion is in Pier 1.1.1 one click image ? and in pharo ? > > Thanks a lot. > > Mariano Its not MC1.5, and I will say no more to avoid offending anyone Keith From davorin.rusevljan at gmail.com Mon Apr 20 21:06:45 2009 From: davorin.rusevljan at gmail.com (Davorin Rusevljan) Date: Mon, 20 Apr 2009 21:06:45 +0200 Subject: Source control version and Pier In-Reply-To: References: Message-ID: <45d84bd00904201206t47412c72g73eed61856ef1d31@mail.gmail.com> On Mon, Apr 20, 2009 at 4:32 PM, Mariano Martinez Peck < marianopeck at gmail.com> wrote: > 2) External files ( /files ) > 3) Pier content (trough import/export utility) > > But I don't know how to manage 2) and 3). I tough I could have a SVN > project where I can put them. So, what I should do is: export and then > commit SVN. > Interestingly, while we were discussing version control options for Dolphin on the newsgroup, many people also complained that current smalltalk version control systems miss handling of non smalltalk artifacts, like bitmaps , icons, dll's and similar stuff that eds to go hand in hand with particular release of smalltalk stuff. -------------- next part -------------- An HTML attachment was scrubbed... URL: From marianopeck at gmail.com Mon Apr 20 21:09:20 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Mon, 20 Apr 2009 18:09:20 -0100 Subject: Source control version and Pier In-Reply-To: <49ECC6B2.4070201@yahoo.co.uk> References: <49ECB4CF.1050706@yahoo.co.uk> <49ECC6B2.4070201@yahoo.co.uk> Message-ID: On Mon, Apr 20, 2009 at 6:02 PM, Keith Hodges wrote: > Mariano Martinez Peck wrote: > > > > > > On Mon, Apr 20, 2009 at 4:45 PM, Keith Hodges > > > wrote: > > > > Mariano Martinez Peck wrote: > > > Hi folks! > > > > > > I was trying to see how to manage all my code and resources of a > > Pier > > > application. There are several things I must manage: > > > > > > 1) My library (css, js, and so on), seaside components, ... > > > 2) External files ( /files ) > > > 3) Pier content (trough import/export utility) > > > > > > For 1) I use Monticello. > > > > > > But I don't know how to manage 2) and 3). I tough I could have a > SVN > > > project where I can put them. So, what I should do is: export > > and then > > > commit SVN. > > My prefered solution is to use bazaar for 1, and 2, and for the > image, > > and all support files. This is because bazaar supports a lightweight > > checkout for deployment. > > > > > > Thank you very much to both of you. > > > > It is a long time since I want to try bazar. I really hate SVN so, > > this is the perfect exuse for me to use bazar :) > > > > > > > > > However, I would like to have all in the same control version > > system. > > > Is there a way I can do 2) and 3) in MC > > One reason I added files support to Monticello 1.5 was for seaside > > css/js. (yes MC can handle files, check squeak-dev announcements) > > > > > > Do you know which verion is in Pier 1.1.1 one click image ? and in pharo > ? > > > > Thanks a lot. > > > > Mariano > Its not MC1.5, and I will say no more to avoid offending anyone > Ok. Thanks. Sorry for the noise. However what I really wanted to know if there was a easy way on managing ALL of a Pier application inside squeak/pharo or if the easy way was to use an external control version system. Thanks for the replies > > Keith > > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jborden23 at mac.com Wed Apr 22 06:15:27 2009 From: jborden23 at mac.com (John Borden) Date: Tue, 21 Apr 2009 23:15:27 -0500 Subject: Pier - Problems moving pages Message-ID: <6CAA63F8-FCFB-422C-A282-21ABA76EBA8B@mac.com> All, One of the most impressive things I see about pier is the ability to move pages around. A few days ago, I found that if I moved a page, then edited it, all of the links on the page were broken. A three page test would be: root - Root has children *folder* and *command* folder - Folder has a *parent>../.* and a *sibling/child>../ command* command - Command has a *root>../.* and a *sibling/parent>../ folder* If command is moved from being a child of root to being a child of folder, then when it is edited, the link will not be updated to *root>../..* and *sibling/parent>../..*. If we add the following to the bottom of PRMoveCommand>>doExecute, then it removes this problem: self structure enumerator everything do: [:e | (PROutgoingReferences on: e) do: [:link | link update ]] This evening, I wrote a test case, and tested this with some older code, but when I load Pier-model 300 and Pier tests 129, about a dozen tests fail and there an issue with a DNU in PRPathReference>>setTarget:, if someone is changing the Pier-Model, could you add this test: PRMoveCommandTest>>testMoveIntoFolderCheckContents "Taken from #testMoveIntoFolder" self command target: (self command root childrenDecoration at: 'folder'). self kernel root contents: 'Before root has two children, *folder* and *command*. After will be one child named folder, which has a child command'. (self kernel root childrenDecoration at: 'folder') contents: 'Folder has a *parent>../* and a *sibling/child>../ command*.'. (self kernel root childrenDecoration at: 'command') contents: 'Command has a *root parent>../* and a *sibling/ parrent>../folder*.'. self deny: (self kernel root enumerator everything anySatisfy: [:e | (PROutgoingReferences on: e) anySatisfy: [:link | link isBroken]]). self shouldnt: [self command execute] raise: PRStructureError. self assert: (self command root contents includesSubString: 'two children, *folder* and *folder/command*.'). self assert: ((self command root childrenDecoration at: 'folder') contents includesSubString: 'has a *parent>../* and a *sibling/ child>command*.'). self assert: (((self command root childrenDecoration at: 'folder') childrenDecoration at: 'command') contents includesSubString: 'Command has a *root parent>../..* and a *sibling/parrent>..*.') Thanks, John From renggli at gmail.com Wed Apr 22 08:39:30 2009 From: renggli at gmail.com (Lukas Renggli) Date: Wed, 22 Apr 2009 08:39:30 +0200 Subject: Pier - Problems moving pages In-Reply-To: <6CAA63F8-FCFB-422C-A282-21ABA76EBA8B@mac.com> References: <6CAA63F8-FCFB-422C-A282-21ABA76EBA8B@mac.com> Message-ID: <67628d690904212339o6da168d8l523c8a63cff808d5@mail.gmail.com> Thank you for submitting this test case. I know that the link-updating is not as well tested as it should. The method that does all the update magic is the following one. I recently fixed a problem there, so it is good that somebody has a look at it. The relevant method is the following and called with the structure that was moved or copied: PRLocationCommand>>#updateLinksFor: aStructure | structures | structures := aStructure enumerator everything contents. structures do: [ :structure | structure outgoingReferences do: [ :link | link update ] ]. aStructure root incomingReferences toAll: structures; do: [ :link | link update ] First of all it builds a collection of the receiver an all its nested children and updates all their links. Then it updates all the references in the complete system that point to any structure in the collection. Am I missing something? Without touching other code your test passes in the latest Pier. Also I could not reproduce the problem in the web browser. Are you sure that you have all the latest versions of the relevant packages loaded? In my image there is a method called PRPathReference>>#setTarget:. Cheers, Lukas On Wed, Apr 22, 2009 at 6:15 AM, John Borden wrote: > All, > One of the most impressive things I see about pier is the ability to move > pages around. ?A few days ago, I found that if I moved a page, then edited > it, all of the links on the page were broken. ?A three page test would be: > ?root - Root has children *folder* and *command* > ? ?folder - Folder has a *parent>../.* and a ?*sibling/child>../command* > ? ?command - Command has a *root>../.* and a ?*sibling/parent>../folder* > > If command is moved from being a child of root to being a child of folder, > then when it is edited, the link will not be updated to *root>../..* and > *sibling/parent>../..*. > > If we add the following to the bottom of PRMoveCommand>>doExecute, then it > removes this problem: > > ?self structure enumerator everything do: [:e | (PROutgoingReferences on: e) > do: [:link | link update ]] > > This evening, I wrote a test case, and tested this with some older code, but > when I load Pier-model 300 and Pier tests 129, about a dozen tests fail and > there an issue with a DNU in PRPathReference>>setTarget:, if someone is > changing the Pier-Model, could you add this test: > > PRMoveCommandTest>>testMoveIntoFolderCheckContents > ? ? ? ?"Taken from #testMoveIntoFolder" > ? ? ? ?self command > ? ? ? ? ? ? ? ?target: (self command root childrenDecoration at: 'folder'). > ? ? ? ?self kernel root contents: 'Before root has two children, *folder* > and *command*. ?After will be one child named folder, which has a child > command'. > ? ? ? ?(self kernel root childrenDecoration at: 'folder') > ? ? ? ? ? ? ? ?contents: 'Folder has a *parent>../* and a > ?*sibling/child>../command*.'. > ? ? ? ?(self kernel root childrenDecoration at: 'command') > ? ? ? ? ? ? ? ?contents: 'Command has a *root parent>../* and a > ?*sibling/parrent>../folder*.'. > ? ? ? ?self deny: (self kernel root enumerator everything > ? ? ? ? ? ? ? ? ? ? ? ?anySatisfy: [:e | (PROutgoingReferences on: e) > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?anySatisfy: [:link | link > isBroken]]). > ? ? ? ?self > ? ? ? ? ? ? ? ?shouldnt: [self command execute] > ? ? ? ? ? ? ? ?raise: PRStructureError. > ? ? ? ?self > ? ? ? ? ? ? ? ?assert: (self command root contents includesSubString: 'two > children, *folder* and *folder/command*.'). > ? ? ? ?self > ? ? ? ? ? ? ? ?assert: ((self command root childrenDecoration at: 'folder') > contents includesSubString: 'has a *parent>../* and a > ?*sibling/child>command*.'). > ? ? ? ?self > ? ? ? ? ? ? ? ?assert: (((self command root childrenDecoration at: 'folder') > childrenDecoration at: 'command') contents includesSubString: 'Command has a > *root parent>../..* and a ?*sibling/parrent>..*.') > > Thanks, > John > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -- Lukas Renggli http://www.lukas-renggli.ch From lists at moedae.net Wed Apr 22 21:03:33 2009 From: lists at moedae.net (Taun) Date: Wed, 22 Apr 2009 15:03:33 -0400 (EDT) Subject: Pier editing Message-ID: <174103634.4221240427013368.JavaMail.root@lpm> I was just reading and watching the latest blog entry at piercms.com regarding the new editing features. Pier is really coming along and it looks like a lot of good effort is going into it. I constantly waffle between Plone and Pier and thought the following post might be relevant to the edit changes in Pier. http://limi.net/articles/simplifying-plone/simplify-plones-editing-experience Taun From renggli at gmail.com Wed Apr 22 21:35:01 2009 From: renggli at gmail.com (Lukas Renggli) Date: Wed, 22 Apr 2009 21:35:01 +0200 Subject: Pier editing In-Reply-To: <174103634.4221240427013368.JavaMail.root@lpm> References: <174103634.4221240427013368.JavaMail.root@lpm> Message-ID: <67628d690904221235k5bd49457i9bb68b2b4418947c@mail.gmail.com> > http://limi.net/articles/simplifying-plone/simplify-plones-editing-experience Thanks for sharing this. Looks really interesting to see in what directions they are going. For those that do not know: SmallWiki, the predecessor of Pier, was essentially written because I got annoyed with Zope/Plone ;-) Lukas -- Lukas Renggli http://www.lukas-renggli.ch From keith_hodges at yahoo.co.uk Wed Apr 22 22:24:30 2009 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Wed, 22 Apr 2009 21:24:30 +0100 Subject: Renderer Message-ID: <49EF7CFE.9030005@yahoo.co.uk> Lukas, I am trying to get my head around what is happening to the renderer. For my application I subclass the PRViewRenderer, so I can tweak how things are rendered. For example I use the standard "content with style" layout (unedited) which uses horizontal rules in a specific way. Therefore I render horizontal rules as
instead of the standard. I also find that the rendering of paragraphs is unpredictable and unhelpful so I take that out too. What is the plan for the renderer and where are the hooks to change it? Ideally, I want my default renderer to be configured by my choice of frame. If I use one frame to embed content in another seaside app (e.g. gjallar) I want to be able to render appropriately for that context. regards Keith From keith_hodges at yahoo.co.uk Thu Apr 23 00:49:29 2009 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Wed, 22 Apr 2009 23:49:29 +0100 Subject: Renderer In-Reply-To: <49EF7CFE.9030005@yahoo.co.uk> References: <49EF7CFE.9030005@yahoo.co.uk> Message-ID: <49EF9EF9.9080600@yahoo.co.uk> Keith Hodges wrote: > Ideally, I want my default renderer to be configured by my choice of > frame. If I use one frame to embed content in another seaside app (e.g. > gjallar) I want to be able to render appropriately for that context. > It appears that the best if not only place to provide a custom renderer globally is in PRPierFrame-renderOn: The fact that the renderer is originally chosen by the command suggests to me that there is some use case for per-command custom rendering, that I am not aware of, and my setting will break it. Is this the case? Keith p.s. is the new PRSlideShow a "crossfade?" I couldn't see any code that does crossfading? From merlyn at stonehenge.com Thu Apr 23 02:36:35 2009 From: merlyn at stonehenge.com (Randal L. Schwartz) Date: Wed, 22 Apr 2009 17:36:35 -0700 Subject: magritte and pier for 2.9 Message-ID: <86zle8dx4c.fsf@blue.stonehenge.com> Can I use the existing Magritte and Pier with 2.9, or do these need to be updated? -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion From renggli at gmail.com Thu Apr 23 08:04:44 2009 From: renggli at gmail.com (Lukas Renggli) Date: Thu, 23 Apr 2009 08:04:44 +0200 Subject: magritte and pier for 2.9 In-Reply-To: <86zle8dx4c.fsf@blue.stonehenge.com> References: <86zle8dx4c.fsf@blue.stonehenge.com> Message-ID: <67628d690904222304lff3e93bu9734b2860155dda8@mail.gmail.com> Magritte works well with Seaside 2.9, I am using it myself in various projects. Pier is problematic, because it depends on various internal features of Seaside. Pier-Seaside will require various parts to be fixed or rewritten. Cheers, Lukas On Thu, Apr 23, 2009 at 2:36 AM, Randal L. Schwartz wrote: > > Can I use the existing Magritte and Pier with 2.9, or do these need > to be updated? > > -- > Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 > > Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. > See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -- Lukas Renggli http://www.lukas-renggli.ch From matthias.berth at googlemail.com Thu Apr 23 11:36:05 2009 From: matthias.berth at googlemail.com (Matthias Berth) Date: Thu, 23 Apr 2009 11:36:05 +0200 Subject: Pier editing In-Reply-To: <67628d690904221235k5bd49457i9bb68b2b4418947c@mail.gmail.com> References: <174103634.4221240427013368.JavaMail.root@lpm> <67628d690904221235k5bd49457i9bb68b2b4418947c@mail.gmail.com> Message-ID: <9aa6ae270904230236r16f906aq20f214515665bf46@mail.gmail.com> BTW: piercms.com goes to the seasidehosting main page (at least for me), www.piercms.com goes to the expected page... Matthias On Wed, Apr 22, 2009 at 9:35 PM, Lukas Renggli wrote: >> http://limi.net/articles/simplifying-plone/simplify-plones-editing-experience > > Thanks for sharing this. Looks really interesting to see in what > directions they are going. > > For those that do not know: SmallWiki, the predecessor of Pier, was > essentially written because I got annoyed with Zope/Plone ;-) > > Lukas > > -- > Lukas Renggli > http://www.lukas-renggli.ch > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > From girba at iam.unibe.ch Thu Apr 23 12:27:52 2009 From: girba at iam.unibe.ch (Tudor Girba) Date: Thu, 23 Apr 2009 12:27:52 +0200 Subject: Pier editing In-Reply-To: <9aa6ae270904230236r16f906aq20f214515665bf46@mail.gmail.com> References: <174103634.4221240427013368.JavaMail.root@lpm> <67628d690904221235k5bd49457i9bb68b2b4418947c@mail.gmail.com> <9aa6ae270904230236r16f906aq20f214515665bf46@mail.gmail.com> Message-ID: Hi, We know about this. Unfortunately, the seasidehosting web interface only allows for one url mapping per application. Cheers, Doru On 23 Apr 2009, at 11:36, Matthias Berth wrote: > BTW: piercms.com goes to the seasidehosting main page (at least for > me), www.piercms.com goes to the expected page... > > Matthias > > On Wed, Apr 22, 2009 at 9:35 PM, Lukas Renggli > wrote: >>> http://limi.net/articles/simplifying-plone/simplify-plones-editing-experience >> >> Thanks for sharing this. Looks really interesting to see in what >> directions they are going. >> >> For those that do not know: SmallWiki, the predecessor of Pier, was >> essentially written because I got annoyed with Zope/Plone ;-) >> >> Lukas >> >> -- >> Lukas Renggli >> http://www.lukas-renggli.ch >> _______________________________________________ >> Magritte, Pier and Related Tools ... >> https://www.iam.unibe.ch/mailman/listinfo/smallwiki >> > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki -- www.tudorgirba.com "It's not what we do that matters most, it's how we do it." From marianopeck at gmail.com Thu Apr 23 22:52:46 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Thu, 23 Apr 2009 19:52:46 -0100 Subject: Post Ticker Message-ID: Hi folks! I have a simple question with the Post Ticker. With the edit command, I can specify the source. In my case, I have this: "/Blog de algo de turismo" which is a simple blog. However, in my web I have more than one blog and I would like the Post Ticker to show new posts not from a particular blog but for any of them. Is this possible ? Thanks Mariano -------------- next part -------------- An HTML attachment was scrubbed... URL: From renggli at gmail.com Thu Apr 23 23:14:41 2009 From: renggli at gmail.com (Lukas Renggli) Date: Thu, 23 Apr 2009 23:14:41 +0200 Subject: Post Ticker In-Reply-To: References: Message-ID: <67628d690904231414i15931886rce3f0a4a14902216@mail.gmail.com> > I have a simple question with the Post Ticker. With the edit command, I can > specify the source. In my case, I have this: "/Blog de algo de turismo" > which is a simple blog. However, in my web I have more than one blog and I > would like the Post Ticker to show new posts? not from a particular blog but > for any of them. Is this possible ? The current implementation only displays a single blog, but I am sure you could change or subclass it to get multiple blogs aggregated. Lukas -- Lukas Renggli http://www.lukas-renggli.ch From marianopeck at gmail.com Thu Apr 23 23:17:20 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Thu, 23 Apr 2009 20:17:20 -0100 Subject: Post Ticker In-Reply-To: <67628d690904231414i15931886rce3f0a4a14902216@mail.gmail.com> References: <67628d690904231414i15931886rce3f0a4a14902216@mail.gmail.com> Message-ID: On Thu, Apr 23, 2009 at 8:14 PM, Lukas Renggli wrote: > > I have a simple question with the Post Ticker. With the edit command, I > can > > specify the source. In my case, I have this: "/Blog de algo de turismo" > > which is a simple blog. However, in my web I have more than one blog and > I > > would like the Post Ticker to show new posts not from a particular blog > but > > for any of them. Is this possible ? > > The current implementation only displays a single blog, but I am sure > you could change or subclass it to get multiple blogs aggregated. > I will do it then and if it works ok and someone give the a feedback I can add it to MC. Thanks, Mariano > > Lukas > > -- > Lukas Renggli > http://www.lukas-renggli.ch > > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -------------- next part -------------- An HTML attachment was scrubbed... URL: From marianopeck at gmail.com Fri Apr 24 22:13:47 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Fri, 24 Apr 2009 19:13:47 -0100 Subject: Google Webmaster tools + sitemap.xml Message-ID: Hi folks. I am developing website which I need google index it quite fast. I want to use Google Webmaster tools and I was wondering if Pier can help me with the sitemap.xml. Is this possible ? Thanks! Mariano -------------- next part -------------- An HTML attachment was scrubbed... URL: From renggli at gmail.com Fri Apr 24 22:21:51 2009 From: renggli at gmail.com (Lukas Renggli) Date: Fri, 24 Apr 2009 22:21:51 +0200 Subject: Google Webmaster tools + sitemap.xml In-Reply-To: References: Message-ID: <67628d690904241321h7ff163b1gf20ee457cb4d1582@mail.gmail.com> > Hi folks. I am developing website which I need google index it quite fast. I > want to use Google Webmaster tools and I was wondering if Pier can help me > with the sitemap.xml. > > Is this possible ? There is the Sitemap package in . However I made the experience that using it does not help much. Out of the box, Pier sites are perfectly indexed by Google. Recent versions for example define the canonical URL for all pages (http://tinyurl.com/b9saag). Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From marianopeck at gmail.com Fri Apr 24 22:34:34 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Fri, 24 Apr 2009 19:34:34 -0100 Subject: Google Webmaster tools + sitemap.xml In-Reply-To: <67628d690904241321h7ff163b1gf20ee457cb4d1582@mail.gmail.com> References: <67628d690904241321h7ff163b1gf20ee457cb4d1582@mail.gmail.com> Message-ID: On Fri, Apr 24, 2009 at 7:21 PM, Lukas Renggli wrote: > > Hi folks. I am developing website which I need google index it quite > fast. I > > want to use Google Webmaster tools and I was wondering if Pier can help > me > > with the sitemap.xml. > > > > Is this possible ? > > There is the Sitemap package in > . However I made the > experience that using it does not help much. Ok. I will take a look anyway. > Out of the box, Pier > sites are perfectly indexed by Google. Recent versions for example > define the canonical URL for all pages (http://tinyurl.com/b9saag). > Nice. This is very important for me, so, this is a good notice. > > Cheers, > Lukas > > -- > Lukas Renggli > http://www.lukas-renggli.ch > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -------------- next part -------------- An HTML attachment was scrubbed... URL: From cdrick65 at gmail.com Sat Apr 25 14:36:56 2009 From: cdrick65 at gmail.com (=?UTF-8?B?Q8OpZHJpY2sgQsOpbGVy?=) Date: Sat, 25 Apr 2009 14:36:56 +0200 Subject: Google Webmaster tools + sitemap.xml In-Reply-To: References: <67628d690904241321h7ff163b1gf20ee457cb4d1582@mail.gmail.com> Message-ID: yes it works nicely. Advantage of the sitemap I guess is you can check how the bot see your site's url (see if there are problems). Also the bot is crawling earlier I guess. If you use seaside hosting though, you have to remove the /seaside from the path (from the app config interface). Cheers, C?drick 2009/4/24 Mariano Martinez Peck : > > > On Fri, Apr 24, 2009 at 7:21 PM, Lukas Renggli wrote: >> >> > Hi folks. I am developing website which I need google index it quite >> > fast. I >> > want to use Google Webmaster tools and I was wondering if Pier can help >> > me >> > with the sitemap.xml. >> > >> > Is this possible ? >> >> There is the Sitemap package in >> . However I made the >> experience that using it does not help much. > > Ok. I will take a look anyway. > >> >> Out of the box, Pier >> sites are perfectly indexed by Google. Recent versions for example >> define the canonical URL for all pages (http://tinyurl.com/b9saag). > > Nice. This is very important for me, so, this is a good notice. > >> >> Cheers, >> Lukas >> >> -- >> Lukas Renggli >> http://www.lukas-renggli.ch >> _______________________________________________ >> Magritte, Pier and Related Tools ... >> https://www.iam.unibe.ch/mailman/listinfo/smallwiki > > > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -- C?drick From petton.nicolas at gmail.com Sun Apr 26 11:17:26 2009 From: petton.nicolas at gmail.com (nico) Date: Sun, 26 Apr 2009 11:17:26 +0200 Subject: Magritte-ROE for gst? Message-ID: <1240737446.4471.22.camel@kiwi> Hi, I would like to port Magritte-roe for gst. Before I start, I would like to know if there are any dependencies to PostgreSQL. I know roe only works with PGsql on squeak, but the gst version has support for other sqls. I saw some 'pg_*' in the sql requests, but as I don't know PGsql, I don't know if that matters. Cheers! Nicolas -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: Ceci est une partie de message num?riquement sign?e URL: From renggli at gmail.com Sun Apr 26 11:58:15 2009 From: renggli at gmail.com (Lukas Renggli) Date: Sun, 26 Apr 2009 11:58:15 +0200 Subject: Magritte-ROE for gst? In-Reply-To: <1240737446.4471.22.camel@kiwi> References: <1240737446.4471.22.camel@kiwi> Message-ID: <67628d690904260258m58cc1581kb50e2ec13d6867bb@mail.gmail.com> > Before I start, I would like to know if there are any dependencies to > PostgreSQL. It looks like Magritte-ROE has some hardcoded PostgreSQL dependencies. However since the package is really minimal, only 3 classes and a few methods it shouldn't be hard to change. I only put that together to quickly dump and load some objects into a database that were Magritte described, it does not do anything sophisticated. > I know roe only works with PGsql on squeak, but the gst version has > support for other sqls. I saw some 'pg_*' in the sql requests, but as I > don't know PGsql, I don't know if that matters. Yeah, these are the meta-tables of PostgreSQL that describe the schema. Lukas -- Lukas Renggli http://www.lukas-renggli.ch From petton.nicolas at gmail.com Sun Apr 26 12:03:52 2009 From: petton.nicolas at gmail.com (nico) Date: Sun, 26 Apr 2009 12:03:52 +0200 Subject: Magritte-ROE for gst? In-Reply-To: <67628d690904260258m58cc1581kb50e2ec13d6867bb@mail.gmail.com> References: <1240737446.4471.22.camel@kiwi> <67628d690904260258m58cc1581kb50e2ec13d6867bb@mail.gmail.com> Message-ID: <1240740232.4471.35.camel@kiwi> Le dimanche 26 avril 2009 ? 11:58 +0200, Lukas Renggli a ?crit : > > Before I start, I would like to know if there are any dependencies to > > PostgreSQL. > > It looks like Magritte-ROE has some hardcoded PostgreSQL dependencies. > However since the package is really minimal, only 3 classes and a few > methods it shouldn't be hard to change. I only put that together to > quickly dump and load some objects into a database that were Magritte > described, it does not do anything sophisticated. Does it mean that there are known limitations? If so, should I consider using another Magritte extension to use it with SQL? Nicolas > > > I know roe only works with PGsql on squeak, but the gst version has > > support for other sqls. I saw some 'pg_*' in the sql requests, but as I > > don't know PGsql, I don't know if that matters. > > Yeah, these are the meta-tables of PostgreSQL that describe the schema. > > Lukas > -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: Ceci est une partie de message num?riquement sign?e URL: From renggli at gmail.com Sun Apr 26 12:25:22 2009 From: renggli at gmail.com (Lukas Renggli) Date: Sun, 26 Apr 2009 12:25:22 +0200 Subject: Magritte-ROE for gst? In-Reply-To: <1240740232.4471.35.camel@kiwi> References: <1240737446.4471.22.camel@kiwi> <67628d690904260258m58cc1581kb50e2ec13d6867bb@mail.gmail.com> <1240740232.4471.35.camel@kiwi> Message-ID: <67628d690904260325h4bf00551s4829049d94fb60a4@mail.gmail.com> > Does it mean that there are known limitations? If so, should I consider > using another Magritte extension to use it with SQL? Magritte-ROE was designed (or rather quickly put together) for a particular use-case (Magritte objects should be read from and dumped into a PostgreSQL). When I wrote it, I did not have the time to do anything more than I needed. So what I am trying to say is that Magritte-ROE might not work for your requirements, but it should be fairly easy to adapt to about anything ;-) Lukas -- Lukas Renggli http://www.lukas-renggli.ch From marianopeck at gmail.com Mon Apr 27 01:28:44 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Sun, 26 Apr 2009 20:28:44 -0300 Subject: Pier Blog Rol component ? Message-ID: Hi people! I was wondering if there is somewhere a Blog Roll addon. See for example, this link (at the right of the page) http://www.jonathancrossland.com/page/Guide-for-Building-Frameworks.aspx Cheers, Mariano -------------- next part -------------- An HTML attachment was scrubbed... URL: From renggli at gmail.com Mon Apr 27 08:05:35 2009 From: renggli at gmail.com (Lukas Renggli) Date: Mon, 27 Apr 2009 08:05:35 +0200 Subject: Pier Blog Rol component ? In-Reply-To: References: Message-ID: <67628d690904262305h6af771fbw3f0a633a2037a054@mail.gmail.com> > I was wondering if there is somewhere a Blog Roll addon. http://www.seaside.st/ displays an aggregation of different blogs in the news section. To group the news by blog (and not by time as it currently does) you would need to create a subclass or change the code a bit, but that shouldn't be difficult. Lukas -- Lukas Renggli http://www.lukas-renggli.ch From marianopeck at gmail.com Mon Apr 27 14:33:39 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Mon, 27 Apr 2009 11:33:39 -0100 Subject: Internacionalizationin Pier Message-ID: Hi folks, I have a couple of questions about Internacionalization in Pier. I am developing a website and I would love it can have multiple languages (spanish, english, and so on). My "final user" is able to add posts or leave comments for example. So, I see two thinks I should care: 1) Pier comments: can this support multilanguage ? For pier components I refer to the html output of the components. For example, when you add a post, you have: "title", "author", etc... 2) My own page text. I have several pages with text. Which is the best approach to support multilanguage for this ? Any tip is welcome. Cheers, Mariano -------------- next part -------------- An HTML attachment was scrubbed... URL: From marianopeck at gmail.com Mon Apr 27 14:36:39 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Mon, 27 Apr 2009 11:36:39 -0100 Subject: Posts Authorization Message-ID: Hi! I am developing a website where the final user can post. However, I (or the rest of the webmasters) would like this post not to be publish inmediatly but it requieres my Authorization. I see that a post is publish if I put a publish date. Can I set custom permissions to the "publish" command ? What I tought is that perhaps I can subclass PRBlog and this one DOESN'T -------------- next part -------------- An HTML attachment was scrubbed... URL: From marianopeck at gmail.com Mon Apr 27 14:39:41 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Mon, 27 Apr 2009 11:39:41 -0100 Subject: Posts Authorization In-Reply-To: References: Message-ID: Sorry....gmail shortcuts... Hi! I am developing a website where the final user can post. However, I (or the rest of the webmasters) would like this post not to be publish immediately because it requires my Authorization. I see that a post is publish if I put a publish date. Can I set custom permissions to the "publish" command ? What I tough is that perhaps I can subclass PRBlog and this one DOESN'T add the output the "Publish". Then, I can have a report somewhere that can be only accesses by the admin, that lists all the posts that doesn't have a publish date, and let me put them a publish date (an the published). Can this be a good idea? Thanks in advance, Mariano On Mon, Apr 27, 2009 at 11:36 AM, Mariano Martinez Peck < marianopeck at gmail.com> wrote: > Hi! > > I am developing a website where the final user can post. However, I (or the > rest of the webmasters) would like this post not to be publish inmediatly > but it requieres my Authorization. I see that a post is publish if I put a > publish date. > > Can I set custom permissions to the "publish" command ? > > What I tought is that perhaps I can subclass PRBlog and this one DOESN'T > -------------- next part -------------- An HTML attachment was scrubbed... URL: From renggli at gmail.com Mon Apr 27 18:46:55 2009 From: renggli at gmail.com (Lukas Renggli) Date: Mon, 27 Apr 2009 18:46:55 +0200 Subject: Internacionalizationin Pier In-Reply-To: References: Message-ID: <67628d690904270946l2d2c197doe9461aca4637bce9@mail.gmail.com> I don't quite get what you want? ;-) Pier and Seaside support multiple languages in a single page, see for example the comments in this post: , so the text you enter can be any language you want. Pier does not have a user interface adapted to multiple languages. It is all in english. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From renggli at gmail.com Mon Apr 27 18:48:28 2009 From: renggli at gmail.com (Lukas Renggli) Date: Mon, 27 Apr 2009 18:48:28 +0200 Subject: Posts Authorization In-Reply-To: References: Message-ID: <67628d690904270948p4cf880fejaa02d9accf6463a4@mail.gmail.com> > What I tough is that perhaps I can subclass PRBlog and this one DOESN'T add > the output the "Publish". Then, I can have a report somewhere that can be > only accesses by the admin, that lists all the posts that doesn't have a > publish date, and let me put them a publish date (an the published). > > Can this be a good idea? Yeah, that's exactly what I would have suggested. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From keith_hodges at yahoo.co.uk Mon Apr 27 18:52:17 2009 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Mon, 27 Apr 2009 17:52:17 +0100 Subject: Renderer In-Reply-To: <49EF7CFE.9030005@yahoo.co.uk> References: <49EF7CFE.9030005@yahoo.co.uk> Message-ID: <49F5E2C1.7070709@yahoo.co.uk> Keith Hodges wrote: > Lukas, > > I am trying to get my head around what is happening to the renderer. > > Yes I can confirm that the new renderer approach is showing itself to be a pain. How can I find out what is the current pier root component. Previously I was able to do... aCommand context renderer component I think I may add it as a property to the context when it is created. Keith From marianopeck at gmail.com Mon Apr 27 19:45:56 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Mon, 27 Apr 2009 16:45:56 -0100 Subject: Posts Authorization In-Reply-To: <67628d690904270948p4cf880fejaa02d9accf6463a4@mail.gmail.com> References: <67628d690904270948p4cf880fejaa02d9accf6463a4@mail.gmail.com> Message-ID: On Mon, Apr 27, 2009 at 3:48 PM, Lukas Renggli wrote: > > What I tough is that perhaps I can subclass PRBlog and this one DOESN'T > add > > the output the "Publish". Then, I can have a report somewhere that can be > > only accesses by the admin, that lists all the posts that doesn't have a > > publish date, and let me put them a publish date (an the published). > > > > Can this be a good idea? > > Yeah, that's exactly what I would have suggested. > Ok. Perfect. So, this is what I will do then. What about adding a new command "publish post" or something like this and being able to set this in "change owner" and "change group" ? I mean, it would be very nice that a PRPost show the publish or not, depending if the user has access to the "publish post" action or similar. However, I think this is more complicated. Isn't it ? Thanks! Mariano > > Cheers, > Lukas > > -- > Lukas Renggli > http://www.lukas-renggli.ch > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -------------- next part -------------- An HTML attachment was scrubbed... URL: From marianopeck at gmail.com Mon Apr 27 20:01:31 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Mon, 27 Apr 2009 17:01:31 -0100 Subject: Internacionalizationin Pier In-Reply-To: <67628d690904270946l2d2c197doe9461aca4637bce9@mail.gmail.com> References: <67628d690904270946l2d2c197doe9461aca4637bce9@mail.gmail.com> Message-ID: On Mon, Apr 27, 2009 at 3:46 PM, Lukas Renggli wrote: > I don't quite get what you want? ;-) > Sorry, it's my english ;) > > Pier and Seaside support multiple languages in a single page, see for > example the comments in this post: > , so the text you > enter can be any language you want. > No. I think you didn't understand me. I have a complete Pier site and I would like o change the language. Imagine a country flag where you can click in your flag and this changes all the text of the pages to that language. I imagine how I can do this with seaside, but I don't in Pier since the text is put in the page. How can I changed then ? Having a structure per language ? > > Pier does not have a user interface adapted to multiple languages. It > is all in english. > Ok. This was my 1) question :) Is this planned for a future ? Thanks for the help, Mariano > > Cheers, > Lukas > > -- > Lukas Renggli > http://www.lukas-renggli.ch > _______________________________________________ > 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 Mon Apr 27 20:01:45 2009 From: renggli at gmail.com (Lukas Renggli) Date: Mon, 27 Apr 2009 20:01:45 +0200 Subject: Posts Authorization In-Reply-To: References: <67628d690904270948p4cf880fejaa02d9accf6463a4@mail.gmail.com> Message-ID: <67628d690904271101ta238cdbx2ae03efc29aec2fb@mail.gmail.com> >> Yeah, that's exactly what I would have suggested. > > Ok. Perfect. So, this is what I will do then. > > What about adding a new command "publish post" or something like this and > being able to set this in "change owner" and "change group" ? > > I mean, it would be very nice that a PRPost show the publish or not, > depending if the user has access to the "publish post" action or similar. > > However, I think this is more complicated. Isn't it ?\ Yeah, that's probably more complicated. The yet simplest solution is to subclass PBBlog and override #description. If the current user is not an admin user (PRCurrentContext value user), you filter the publication date field. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From renggli at gmail.com Mon Apr 27 20:35:42 2009 From: renggli at gmail.com (Lukas Renggli) Date: Mon, 27 Apr 2009 20:35:42 +0200 Subject: Internacionalizationin Pier In-Reply-To: References: <67628d690904270946l2d2c197doe9461aca4637bce9@mail.gmail.com> Message-ID: <67628d690904271135g69cdca8av335767f1efc87c6c@mail.gmail.com> > No. I think you didn't understand me. I have a complete Pier site and I > would like o change the language. Imagine a country flag where you can click > in your flag and this changes all the text of the pages to that language. I > imagine how I can do this with seaside, but I don't in Pier since the text > is put in the page. How can I changed then ? Having a structure per language > ? Yeah, I suggest to create a different structures for different languages. >> Pier does not have a user interface adapted to multiple languages. It >> is all in english. > > Ok. This was my 1) question :)?? Is this planned for a future ? It is not planned, but it would certainly be a cool thing to have. Also in the context of Seaside, not necessarily just for Pier and Magritte. Lukas -- Lukas Renggli http://www.lukas-renggli.ch From marianopeck at gmail.com Mon Apr 27 20:42:37 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Mon, 27 Apr 2009 17:42:37 -0100 Subject: Internacionalizationin Pier In-Reply-To: <67628d690904271135g69cdca8av335767f1efc87c6c@mail.gmail.com> References: <67628d690904270946l2d2c197doe9461aca4637bce9@mail.gmail.com> <67628d690904271135g69cdca8av335767f1efc87c6c@mail.gmail.com> Message-ID: On Mon, Apr 27, 2009 at 5:35 PM, Lukas Renggli wrote: > > No. I think you didn't understand me. I have a complete Pier site and I > > would like o change the language. Imagine a country flag where you can > click > > in your flag and this changes all the text of the pages to that language. > I > > imagine how I can do this with seaside, but I don't in Pier since the > text > > is put in the page. How can I changed then ? Having a structure per > language > > ? > > Yeah, I suggest to create a different structures for different languages. > Ok. I will then take a look to see how can I do this. Thanks! > > >> Pier does not have a user interface adapted to multiple languages. It > >> is all in english. > > > > Ok. This was my 1) question :) Is this planned for a future ? > > It is not planned, but it would certainly be a cool thing to have. > Also in the context of Seaside, not necessarily just for Pier and > Magritte. > Yes. However, I think it is more important for Pier. All of us (who work as programmer or similar) know English. But, the final user of the application, may not. In my case, and I imagine it could be something common, the final user of my app has access to the Pier UI. For example to post, leave comments, and so on. But, the final user won't have access to Seaside or Magritte UI. Cheers, Mariano > Lukas > > -- > Lukas Renggli > http://www.lukas-renggli.ch > > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -------------- next part -------------- An HTML attachment was scrubbed... URL: From keith_hodges at yahoo.co.uk Tue Apr 28 00:55:03 2009 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Mon, 27 Apr 2009 23:55:03 +0100 Subject: Report Sorter Message-ID: <49F637C7.3040407@yahoo.co.uk> Hello Lukas, Is the report column sorter supposed to be able to handle nil values? This code (below) looks like it is trying to be tolerant But what if one= 'string'. two = nil. thanks in advance Keith ==== sort: aFirstObject and: aSecondObject | one two | one := self valueFor: aFirstObject. two := self valueFor: aSecondObject. (one respondsTo: #<=) ifFalse: [ one := self formatter value: one. two := self formatter value: two ]. ^ one <= two From marianopeck at gmail.com Tue Apr 28 02:31:54 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Mon, 27 Apr 2009 21:31:54 -0300 Subject: Posts Authorization In-Reply-To: <67628d690904271101ta238cdbx2ae03efc29aec2fb@mail.gmail.com> References: <67628d690904270948p4cf880fejaa02d9accf6463a4@mail.gmail.com> <67628d690904271101ta238cdbx2ae03efc29aec2fb@mail.gmail.com> Message-ID: On Mon, Apr 27, 2009 at 3:01 PM, Lukas Renggli wrote: > >> Yeah, that's exactly what I would have suggested. > > > > Ok. Perfect. So, this is what I will do then. > > > > What about adding a new command "publish post" or something like this and > > being able to set this in "change owner" and "change group" ? > > > > I mean, it would be very nice that a PRPost show the publish or not, > > depending if the user has access to the "publish post" action or similar. > > > > However, I think this is more complicated. Isn't it ?\ > > Yeah, that's probably more complicated. > > The yet simplest solution is to subclass PBBlog and override > #description. If the current user is not an admin user > (PRCurrentContext value user), you filter the publication date field. > Lukas: Thanks! I start doing this. However I was having a problem. Till now I always use a 'admin' user that has a 'admin' group. I created a new group called "finalUser". I create a user called "mariano" with that group. I went to "change group" with my admin user and recursively I add "add comment" and "PRPost" permissions for the group "finalUser". The problem is that I then try to login with "mariano" and I get this error: " Error: you are forbidden to access "/seaside/pier"" The error is quite descriptive, but I don't know how to give "mariano" the correct access. Thanks for the help. Mariano > > Cheers, > Lukas > > -- > Lukas Renggli > http://www.lukas-renggli.ch > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -------------- next part -------------- An HTML attachment was scrubbed... URL: From marianopeck at gmail.com Tue Apr 28 03:03:58 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Mon, 27 Apr 2009 22:03:58 -0300 Subject: Link for adding a new post Message-ID: Hi people! I was wondering if I can do what I need to do. When you create a Post (add command inside a blog) you are ask first which type to ask and a name. You can put "zaraza post" as name and type "Post". Then you go to another page (second one) where you put all the information of the post (included the name again ("zaraza post" in this case)). Suppose you have a pier site and the final user can add posts (not create the blogs, just post). I would really love to have a link that says "click here to post" or something like that. In this case, the type we ALWAYS be "Post". And as the title is asked again in the second page, I ask: is there a way that from a simple link I simulate an add of a Post type and this goes directly to the second page ? In other words...if there is only one "type" option, can I skip this step and go to the seconds step ? I think this email was very confusing, sorry. Thanks in advance, Mariano -------------- next part -------------- An HTML attachment was scrubbed... URL: From marianopeck at gmail.com Tue Apr 28 03:10:57 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Mon, 27 Apr 2009 22:10:57 -0300 Subject: [OT] record my desktop + vimeo + pier Message-ID: Hi folks (Tudor ?) I saw all of your videos in pier cms blog and they are very useful for me. Because of that, I thought I could copy the idea and do some videos explaining how to do certain things in my site. This will be for the final users. Could you explain me a bit the steps you do ? I guess something like this: 1) Record your desktop with a program. It could be recordMyDesktop (in linux). Any format in particular ? resolution ? 2) update it to vimeo 3) embbed this video in a Pier page. Thanks a lot for the tips you can give me. Cheers, Mariano -------------- next part -------------- An HTML attachment was scrubbed... URL: From girba at iam.unibe.ch Tue Apr 28 07:01:29 2009 From: girba at iam.unibe.ch (Tudor Girba) Date: Tue, 28 Apr 2009 07:01:29 +0200 Subject: [OT] record my desktop + vimeo + pier In-Reply-To: References: Message-ID: Hi, > I saw all of your videos in pier cms blog and they are very useful > for me. Because of that, I thought I could copy the idea and do some > videos explaining how to do certain things in my site. This will be > for the final users. Could you explain me a bit the steps you do ? > > I guess something like this: > > 1) Record your desktop with a program. It could be recordMyDesktop > (in linux). Any format in particular ? resolution ? Vimeo supports the following formats: asf, asx, avi, divx, dv, dvx, m4v, mov, mp4, mpeg, mpg, qt, wmv, 3g2, 3gp, 3ivx and 3vx More details on the suggested codecs: http://www.vimeo.com/help/compression > 2) update it to vimeo http://www.vimeo.com/upload/video > 3) embbed this video in a Pier page. After uploading the video you will get the html code for embedding the video. Cheers, Doru > Thanks a lot for the tips you can give me. > > Cheers, > > Mariano > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki -- www.tudorgirba.com "It's not how it is, it is how we see it." From renggli at gmail.com Tue Apr 28 10:14:13 2009 From: renggli at gmail.com (Lukas Renggli) Date: Tue, 28 Apr 2009 10:14:13 +0200 Subject: Posts Authorization In-Reply-To: References: <67628d690904270948p4cf880fejaa02d9accf6463a4@mail.gmail.com> <67628d690904271101ta238cdbx2ae03efc29aec2fb@mail.gmail.com> Message-ID: <67628d690904280114i7622e3c8of7dc71065e3c8b2e@mail.gmail.com> >> Yeah, that's probably more complicated. >> >> The yet simplest solution is to subclass PBBlog and override >> #description. If the current user is not an admin user >> (PRCurrentContext value user), you filter the publication date field. > > Lukas: Thanks! I start doing this. However I was having a problem. Till now > I always use a 'admin' user that has a 'admin' group. > I created a new group called "finalUser". I create a user called "mariano" > with that group. I went to "change group" with my admin user > and recursively I add "add comment" and "PRPost" permissions for the group > "finalUser". I tried to reproduce that, but it works for me. Did you give the view permissions? Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From marianopeck at gmail.com Tue Apr 28 14:41:54 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Tue, 28 Apr 2009 11:41:54 -0100 Subject: [OT] record my desktop + vimeo + pier In-Reply-To: References: Message-ID: Excellent! I will do some videos then! Thanks a lot for the tips. Mariano On Tue, Apr 28, 2009 at 4:01 AM, Tudor Girba wrote: > Hi, > > I saw all of your videos in pier cms blog and they are very useful for me. >> Because of that, I thought I could copy the idea and do some videos >> explaining how to do certain things in my site. This will be for the final >> users. Could you explain me a bit the steps you do ? >> >> I guess something like this: >> >> 1) Record your desktop with a program. It could be recordMyDesktop (in >> linux). Any format in particular ? resolution ? >> > > Vimeo supports the following formats: > asf, asx, avi, divx, dv, dvx, m4v, mov, mp4, mpeg, mpg, qt, wmv, 3g2, 3gp, > 3ivx and 3vx > > More details on the suggested codecs: > http://www.vimeo.com/help/compression > > 2) update it to vimeo >> > > http://www.vimeo.com/upload/video > > 3) embbed this video in a Pier page. >> > > After uploading the video you will get the html code for embedding the > video. > > Cheers, > Doru > > Thanks a lot for the tips you can give me. >> >> Cheers, >> >> Mariano >> _______________________________________________ >> Magritte, Pier and Related Tools ... >> https://www.iam.unibe.ch/mailman/listinfo/smallwiki >> > > -- > www.tudorgirba.com > > "It's not how it is, it is how we see it." > > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -------------- next part -------------- An HTML attachment was scrubbed... URL: From marianopeck at gmail.com Tue Apr 28 14:59:46 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Tue, 28 Apr 2009 11:59:46 -0100 Subject: Automatic index generation Message-ID: Hi people! Yes, I know, I am sending lots of mails, but I have several questions hahah. Suppose I have a long page and I use "!", "!!" and "!!!" all over the page. Is there a way of autogenerating an index with links above the page? Thanks! Mariano -------------- next part -------------- An HTML attachment was scrubbed... URL: From renggli at gmail.com Tue Apr 28 15:07:46 2009 From: renggli at gmail.com (Lukas Renggli) Date: Tue, 28 Apr 2009 15:07:46 +0200 Subject: Automatic index generation In-Reply-To: References: Message-ID: <67628d690904280607j3c85c205k3e201d0edc03d526@mail.gmail.com> Put the following snipped at the top of the page: +value:toc+ Cheers, Lukas On Tue, Apr 28, 2009 at 2:59 PM, Mariano Martinez Peck wrote: > Hi people! > > Yes, I know, I am sending lots of mails, but I have several questions hahah. > > Suppose I have a long page and I use "!", "!!" and "!!!" all over the page. > Is there a way of autogenerating an index with links above the page? > > Thanks! > > Mariano > > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -- Lukas Renggli http://www.lukas-renggli.ch From marianopeck at gmail.com Tue Apr 28 15:18:26 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Tue, 28 Apr 2009 12:18:26 -0100 Subject: Automatic index generation In-Reply-To: <67628d690904280607j3c85c205k3e201d0edc03d526@mail.gmail.com> References: <67628d690904280607j3c85c205k3e201d0edc03d526@mail.gmail.com> Message-ID: On Tue, Apr 28, 2009 at 12:07 PM, Lukas Renggli wrote: > Put the following snipped at the top of the page: > > +value:toc+ > Men, you are greate. Thanks!!! > > Cheers, > Lukas > > On Tue, Apr 28, 2009 at 2:59 PM, Mariano Martinez Peck > wrote: > > Hi people! > > > > Yes, I know, I am sending lots of mails, but I have several questions > hahah. > > > > Suppose I have a long page and I use "!", "!!" and "!!!" all over the > page. > > Is there a way of autogenerating an index with links above the page? > > > > Thanks! > > > > Mariano > > > > _______________________________________________ > > Magritte, Pier and Related Tools ... > > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > > > > > > -- > Lukas Renggli > http://www.lukas-renggli.ch > _______________________________________________ > 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 Tue Apr 28 16:16:46 2009 From: renggli at gmail.com (Lukas Renggli) Date: Tue, 28 Apr 2009 16:16:46 +0200 Subject: Automatic index generation In-Reply-To: References: <67628d690904280607j3c85c205k3e201d0edc03d526@mail.gmail.com> Message-ID: <67628d690904280716m59e95331t5bb64f5b73ad3ab1@mail.gmail.com> >> Put the following snipped at the top of the page: >> >> ? ? ?+value:toc+ > > Men, you are greate. Thanks!!! These value links are pretty powerful and still safe for a public wiki, unlike the dangerous [ smalltalk code ] constructs we had in SmallWiki. I should probably soon write a blog post about these new kind of link, but I am not yet 100% sure about all their exact semantics. So consider this as experimental, some things might change. To get a list of all supported values add the link +value:values+, or check the syntax page. Cheers, Lukas > >> >> Cheers, >> Lukas >> >> On Tue, Apr 28, 2009 at 2:59 PM, Mariano Martinez Peck >> wrote: >> > Hi people! >> > >> > Yes, I know, I am sending lots of mails, but I have several questions >> > hahah. >> > >> > Suppose I have a long page and I use "!", "!!" and "!!!" all over the >> > page. >> > Is there a way of autogenerating an index with links above the page? >> > >> > Thanks! >> > >> > Mariano >> > >> > _______________________________________________ >> > Magritte, Pier and Related Tools ... >> > https://www.iam.unibe.ch/mailman/listinfo/smallwiki >> > >> >> >> >> -- >> Lukas Renggli >> http://www.lukas-renggli.ch >> _______________________________________________ >> Magritte, Pier and Related Tools ... >> https://www.iam.unibe.ch/mailman/listinfo/smallwiki > > > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -- Lukas Renggli http://www.lukas-renggli.ch From marianopeck at gmail.com Wed Apr 29 03:51:16 2009 From: marianopeck at gmail.com (Mariano Martinez Peck: "si, y no es gripe gordito..." ) Date: Tue, 28 Apr 2009 22:51:16 -0300 Subject: Automatic index generation In-Reply-To: <67628d690904280716m59e95331t5bb64f5b73ad3ab1@mail.gmail.com> References: <67628d690904280607j3c85c205k3e201d0edc03d526@mail.gmail.com> <67628d690904280716m59e95331t5bb64f5b73ad3ab1@mail.gmail.com> Message-ID: On Tue, Apr 28, 2009 at 11:16 AM, Lukas Renggli wrote: > >> Put the following snipped at the top of the page: > >> > >> +value:toc+ > > > > Men, you are greate. Thanks!!! > > These value links are pretty powerful and still safe for a public > wiki, unlike the dangerous [ smalltalk code ] constructs we had in > SmallWiki. I should probably soon write a blog post about these new > kind of link, but I am not yet 100% sure about all their exact > semantics. So consider this as experimental, some things might change. > Ok, don't worry. > > To get a list of all supported values add the link +value:values+, or > check the syntax page. > Thanks! > > Cheers, > Lukas > > > > > > > > >> > >> Cheers, > >> Lukas > >> > >> On Tue, Apr 28, 2009 at 2:59 PM, Mariano Martinez Peck > >> wrote: > >> > Hi people! > >> > > >> > Yes, I know, I am sending lots of mails, but I have several questions > >> > hahah. > >> > > >> > Suppose I have a long page and I use "!", "!!" and "!!!" all over the > >> > page. > >> > Is there a way of autogenerating an index with links above the page? > >> > > >> > Thanks! > >> > > >> > Mariano > >> > > >> > _______________________________________________ > >> > Magritte, Pier and Related Tools ... > >> > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > >> > > >> > >> > >> > >> -- > >> Lukas Renggli > >> http://www.lukas-renggli.ch > >> _______________________________________________ > >> Magritte, Pier and Related Tools ... > >> https://www.iam.unibe.ch/mailman/listinfo/smallwiki > > > > > > _______________________________________________ > > Magritte, Pier and Related Tools ... > > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > > > > > > -- > Lukas Renggli > http://www.lukas-renggli.ch > > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chaetal at gmail.com Wed Apr 29 08:08:51 2009 From: chaetal at gmail.com (Dennis Schetinin) Date: Wed, 29 Apr 2009 10:08:51 +0400 Subject: Speed issue Message-ID: <84f77e270904282308p599ccb6bn4f073e538d74954f@mail.gmail.com> Hello... We are trying to build a site using Pier. Recently we migrated to pharo0.1-10268web09.04.1. Previously we used something like Pier 1.1 with some updates. We found new version a bit slower on our computers. It was not a big problem. But we have to use an old notebook for entering data to our site. And there we've got about a minute delay after structure addition. I found the cause is in PRChangeCommand >> updateRoot: There a big string is being built started with "EditorEnh.linkOptions=". In our case it's size is 207328. Then it's being modified by copyReplaceAll: '"' with: '\"' . On old notebook it's very slow. I replaces that #copyReplaceAll:with: with (sorry for the tautology) streaming. Now it takes about 10 seconds instead of a minute. But still it's too slow (10 -- 15 seconds was a time to enter the whole data item in old image). Can this issue be fixed somehow? TIA Btw, is issues with filenames (I've asked about some time ago) fixed? -- Dennis Schetinin -------------- next part -------------- An HTML attachment was scrubbed... URL: From renggli at gmail.com Wed Apr 29 08:41:45 2009 From: renggli at gmail.com (Lukas Renggli) Date: Wed, 29 Apr 2009 08:41:45 +0200 Subject: Speed issue In-Reply-To: <84f77e270904282308p599ccb6bn4f073e538d74954f@mail.gmail.com> References: <84f77e270904282308p599ccb6bn4f073e538d74954f@mail.gmail.com> Message-ID: <67628d690904282341r8cab916ma77a5d8ecb24097@mail.gmail.com> > PRChangeCommand >> updateRoot: > > There a big string is being built started with "EditorEnh.linkOptions=". In > our case it's size is 207328. Then it's being modified by copyReplaceAll: > '"' with: '\"' . On old notebook it's very slow. I replaces that > #copyReplaceAll:with: with (sorry for the tautology) streaming. Now it takes > about 10 seconds instead of a minute. But still it's too slow (10 -- 15 > seconds was a time to enter the whole data item in old image). Can this > issue be fixed somehow? This code creates a list of all pages in Pier, so that the toolbar is able to offer you a menu with all the possible pages. For a large Pier installation that list can become large, that's a problem. I'll look into this, maybe it would be better to dynamically request that list or only fill it with commonly used links? In the meantime I suggest that you don't use Pier-EditorEnh (or uncomment the part that creates the list of all pages). > Btw, is issues with filenames (I've asked about some time ago) fixed? There are still a couple of issues in some cases. I've committed various improvements, but I don't know what you are exactly referring to? Lukas -- Lukas Renggli http://www.lukas-renggli.ch From chaetal at gmail.com Wed Apr 29 08:57:32 2009 From: chaetal at gmail.com (Dennis Schetinin) Date: Wed, 29 Apr 2009 10:57:32 +0400 Subject: Speed issue In-Reply-To: <67628d690904282341r8cab916ma77a5d8ecb24097@mail.gmail.com> References: <84f77e270904282308p599ccb6bn4f073e538d74954f@mail.gmail.com> <67628d690904282341r8cab916ma77a5d8ecb24097@mail.gmail.com> Message-ID: <84f77e270904282357s24c55921xcb6620b33127f892@mail.gmail.com> > > In the meantime I suggest that you don't use Pier-EditorEnh (or > uncomment the part that creates the list of all pages). > Sorry, I'm not sure how to do it. Should it be unloaded or just "switched-off" somehow? And the second option says absolutely nothing for me --- where to uncomment that? > > Btw, is issues with filenames (I've asked about some time ago) fixed? > > There are still a couple of issues in some cases. I've committed > various improvements, but I don't know what you are exactly referring > to? > Did not check it yet. Thank you for your work! :) -- Dennis Schetinin -------------- next part -------------- An HTML attachment was scrubbed... URL: From akellens at vub.ac.be Wed Apr 29 10:11:42 2009 From: akellens at vub.ac.be (Andy Kellens) Date: Wed, 29 Apr 2009 10:11:42 +0200 Subject: Persistency problem with Pier 1.1.1 on Mac OS X Server Message-ID: Hello, I have a Pier 1.1.1 installation running on our Mac OS X Server. While the Pier system runs just fine, I noticed that the system stopped saving the changes persistently to the image. After playing around a bit with our installation, I was able to reproduce the problem: - I start with a clean Pier image (and import content from a previous 1.1.1 installation using the Importer/Exporter component) - I choose PRImagePersistency (duration: 30 minutes; maxImages: 3) as the persistency scheme - I start changing the wiki - The first two saves work perfectly: Pier creates two new images + changes files - When the third backup should be made, I get an error: pier.image not found - I also tried to manually save the image, but get a similar error: Squeak cannot locate the changes file /...../pier.changes. - I checked: both files are where they should be Kind regards, Andy From renggli at gmail.com Wed Apr 29 10:31:04 2009 From: renggli at gmail.com (Lukas Renggli) Date: Wed, 29 Apr 2009 10:31:04 +0200 Subject: Persistency problem with Pier 1.1.1 on Mac OS X Server In-Reply-To: References: Message-ID: <67628d690904290131p2ec3dc25n3edaf363035bcf4@mail.gmail.com> We are running several instances on a Mac Server here. Are you sure that the VM has write permissions? Especially if you run the one-click image from /Applications, the VM has usually only limited write access. Lukas On Wed, Apr 29, 2009 at 10:11 AM, Andy Kellens wrote: > Hello, > > I have a Pier 1.1.1 installation running on our Mac OS X Server. > While the Pier system runs just fine, I noticed that the system stopped > saving the changes persistently to the image. > After playing around a bit with our installation, I was able to reproduce > the problem: > ? ? ? ?- I start with a clean Pier image (and import content from a previous > 1.1.1 installation using the Importer/Exporter component) > ? ? ? ?- I choose PRImagePersistency (duration: 30 minutes; maxImages: 3) as > the persistency scheme > ? ? ? ?- I start changing the wiki > ? ? ? ?- The first two saves work perfectly: Pier creates two new images + > changes files > ? ? ? ?- When the third backup should be made, I get an error: pier.image > not found > ? ? ? ?- I also tried to manually save the image, but get a similar error: > Squeak cannot locate the changes file /...../pier.changes. > ? ? ? ?- I checked: both files are where they should be > > Kind regards, > > Andy > > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -- Lukas Renggli http://www.lukas-renggli.ch From chaetal at gmail.com Wed Apr 29 10:31:30 2009 From: chaetal at gmail.com (Dennis Schetinin) Date: Wed, 29 Apr 2009 12:31:30 +0400 Subject: Speed issue In-Reply-To: <84f77e270904282357s24c55921xcb6620b33127f892@mail.gmail.com> References: <84f77e270904282308p599ccb6bn4f073e538d74954f@mail.gmail.com> <67628d690904282341r8cab916ma77a5d8ecb24097@mail.gmail.com> <84f77e270904282357s24c55921xcb6620b33127f892@mail.gmail.com> Message-ID: <84f77e270904290131u2ddbb07ah5099ebd90b0ff72f@mail.gmail.com> > > In the meantime I suggest that you don't use Pier-EditorEnh (or >> uncomment the part that creates the list of all pages). >> > > Sorry, I'm not sure how to do it. Should it be unloaded or just > "switched-off" somehow? > And the second option says absolutely nothing for me --- where to uncomment > that? > I commented the part generating "EditorEnh.linkOptions". Think that was what you mean... It seems to work on my notebook and seems to be faster... Later will check it on the old (and slow) computer. \ Thanks -- Dennis Schetinin -------------- next part -------------- An HTML attachment was scrubbed... URL: From akellens at vub.ac.be Wed Apr 29 10:39:15 2009 From: akellens at vub.ac.be (Andy Kellens) Date: Wed, 29 Apr 2009 10:39:15 +0200 Subject: Persistency problem with Pier 1.1.1 on Mac OS X Server In-Reply-To: <67628d690904290131p2ec3dc25n3edaf363035bcf4@mail.gmail.com> References: <67628d690904290131p2ec3dc25n3edaf363035bcf4@mail.gmail.com> Message-ID: <9F5ECB8A-CAEC-4898-A437-49053F3F6FAF@vub.ac.be> I checked: the VM has write permissions to the entire .app directory. Kind regards, Andy On 29 Apr 2009, at 10:31, Lukas Renggli wrote: > We are running several instances on a Mac Server here. > > Are you sure that the VM has write permissions? Especially if you run > the one-click image from /Applications, the VM has usually only > limited write access. > > Lukas > > On Wed, Apr 29, 2009 at 10:11 AM, Andy Kellens > wrote: >> Hello, >> >> I have a Pier 1.1.1 installation running on our Mac OS X Server. >> While the Pier system runs just fine, I noticed that the system >> stopped >> saving the changes persistently to the image. >> After playing around a bit with our installation, I was able to >> reproduce >> the problem: >> - I start with a clean Pier image (and import content from a >> previous >> 1.1.1 installation using the Importer/Exporter component) >> - I choose PRImagePersistency (duration: 30 minutes; >> maxImages: 3) as >> the persistency scheme >> - I start changing the wiki >> - The first two saves work perfectly: Pier creates two new >> images + >> changes files >> - When the third backup should be made, I get an error: >> pier.image >> not found >> - I also tried to manually save the image, but get a similar >> error: >> Squeak cannot locate the changes file /...../pier.changes. >> - I checked: both files are where they should be >> >> Kind regards, >> >> Andy >> >> _______________________________________________ >> Magritte, Pier and Related Tools ... >> https://www.iam.unibe.ch/mailman/listinfo/smallwiki >> > > > > -- > Lukas Renggli > http://www.lukas-renggli.ch > > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki From renggli at gmail.com Wed Apr 29 11:10:35 2009 From: renggli at gmail.com (Lukas Renggli) Date: Wed, 29 Apr 2009 11:10:35 +0200 Subject: Persistency problem with Pier 1.1.1 on Mac OS X Server In-Reply-To: <9F5ECB8A-CAEC-4898-A437-49053F3F6FAF@vub.ac.be> References: <67628d690904290131p2ec3dc25n3edaf363035bcf4@mail.gmail.com> <9F5ECB8A-CAEC-4898-A437-49053F3F6FAF@vub.ac.be> Message-ID: <67628d690904290210i6a9302bcn85f25a3db097313@mail.gmail.com> Can you post a full stack trace? On Wed, Apr 29, 2009 at 10:39 AM, Andy Kellens wrote: > I checked: the VM has write permissions to the entire .app directory. > > Kind regards, > > Andy > > On 29 Apr 2009, at 10:31, Lukas Renggli wrote: > >> We are running several instances on a Mac Server here. >> >> Are you sure that the VM has write permissions? Especially if you run >> the one-click image from /Applications, the VM has usually only >> limited write access. >> >> Lukas >> >> On Wed, Apr 29, 2009 at 10:11 AM, Andy Kellens wrote: >>> >>> Hello, >>> >>> I have a Pier 1.1.1 installation running on our Mac OS X Server. >>> While the Pier system runs just fine, I noticed that the system stopped >>> saving the changes persistently to the image. >>> After playing around a bit with our installation, I was able to reproduce >>> the problem: >>> ? ? ? - I start with a clean Pier image (and import content from a >>> previous >>> 1.1.1 installation using the Importer/Exporter component) >>> ? ? ? - I choose PRImagePersistency (duration: 30 minutes; maxImages: 3) >>> as >>> the persistency scheme >>> ? ? ? - I start changing the wiki >>> ? ? ? - The first two saves work perfectly: Pier creates two new images + >>> changes files >>> ? ? ? - When the third backup should be made, I get an error: pier.image >>> not found >>> ? ? ? - I also tried to manually save the image, but get a similar error: >>> Squeak cannot locate the changes file /...../pier.changes. >>> ? ? ? - I checked: both files are where they should be >>> >>> Kind regards, >>> >>> Andy >>> >>> _______________________________________________ >>> Magritte, Pier and Related Tools ... >>> https://www.iam.unibe.ch/mailman/listinfo/smallwiki >>> >> >> >> >> -- >> Lukas Renggli >> http://www.lukas-renggli.ch >> >> _______________________________________________ >> Magritte, Pier and Related Tools ... >> https://www.iam.unibe.ch/mailman/listinfo/smallwiki > > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -- Lukas Renggli http://www.lukas-renggli.ch From akellens at vub.ac.be Wed Apr 29 14:28:05 2009 From: akellens at vub.ac.be (Andy Kellens) Date: Wed, 29 Apr 2009 14:28:05 +0200 Subject: Persistency problem with Pier 1.1.1 on Mac OS X Server In-Reply-To: <67628d690904290210i6a9302bcn85f25a3db097313@mail.gmail.com> References: <67628d690904290131p2ec3dc25n3edaf363035bcf4@mail.gmail.com> <9F5ECB8A-CAEC-4898-A437-49053F3F6FAF@vub.ac.be> <67628d690904290210i6a9302bcn85f25a3db097313@mail.gmail.com> Message-ID: Hi, I get a pop-up from squeak (see attached screenshot) and I managed to see the error, but I can't open up the actual debugger (the pop-up window just keeps appearing). I have seen that the old image (pier.image and pier.changes) get renamed, but apparently the system is not able to create the new pier.image and pier.changes. To be sure, I verified that squeak has write privileges to the correct directory. Cheers, Andy -------------- next part -------------- A non-text attachment was scrubbed... Name: pastedGraphic.tiff Type: image/tiff Size: 179144 bytes Desc: not available URL: -------------- next part -------------- On 29 Apr 2009, at 11:10, Lukas Renggli wrote: > Can you post a full stack trace? > > On Wed, Apr 29, 2009 at 10:39 AM, Andy Kellens > wrote: >> I checked: the VM has write permissions to the entire .app directory. >> >> Kind regards, >> >> Andy >> >> On 29 Apr 2009, at 10:31, Lukas Renggli wrote: >> >>> We are running several instances on a Mac Server here. >>> >>> Are you sure that the VM has write permissions? Especially if you >>> run >>> the one-click image from /Applications, the VM has usually only >>> limited write access. >>> >>> Lukas >>> >>> On Wed, Apr 29, 2009 at 10:11 AM, Andy Kellens >>> wrote: >>>> >>>> Hello, >>>> >>>> I have a Pier 1.1.1 installation running on our Mac OS X Server. >>>> While the Pier system runs just fine, I noticed that the system >>>> stopped >>>> saving the changes persistently to the image. >>>> After playing around a bit with our installation, I was able to >>>> reproduce >>>> the problem: >>>> - I start with a clean Pier image (and import content from a >>>> previous >>>> 1.1.1 installation using the Importer/Exporter component) >>>> - I choose PRImagePersistency (duration: 30 minutes; >>>> maxImages: 3) >>>> as >>>> the persistency scheme >>>> - I start changing the wiki >>>> - The first two saves work perfectly: Pier creates two new >>>> images + >>>> changes files >>>> - When the third backup should be made, I get an error: >>>> pier.image >>>> not found >>>> - I also tried to manually save the image, but get a >>>> similar error: >>>> Squeak cannot locate the changes file /...../pier.changes. >>>> - I checked: both files are where they should be >>>> >>>> Kind regards, >>>> >>>> Andy >>>> >>>> _______________________________________________ >>>> Magritte, Pier and Related Tools ... >>>> https://www.iam.unibe.ch/mailman/listinfo/smallwiki >>>> >>> >>> >>> >>> -- >>> Lukas Renggli >>> http://www.lukas-renggli.ch >>> >>> _______________________________________________ >>> Magritte, Pier and Related Tools ... >>> https://www.iam.unibe.ch/mailman/listinfo/smallwiki >> >> _______________________________________________ >> Magritte, Pier and Related Tools ... >> https://www.iam.unibe.ch/mailman/listinfo/smallwiki >> > > > > -- > Lukas Renggli > http://www.lukas-renggli.ch > > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki From marianopeck at gmail.com Wed Apr 29 15:48:44 2009 From: marianopeck at gmail.com (Mariano Martinez Peck: "si, y no es gripe gordito..." ) Date: Wed, 29 Apr 2009 12:48:44 -0100 Subject: Persistency problem with Pier 1.1.1 on Mac OS X Server In-Reply-To: References: <67628d690904290131p2ec3dc25n3edaf363035bcf4@mail.gmail.com> <9F5ECB8A-CAEC-4898-A437-49053F3F6FAF@vub.ac.be> <67628d690904290210i6a9302bcn85f25a3db097313@mail.gmail.com> Message-ID: Perhaps SqueakDebug.log (it should be where the image is) can give you more information. Cheers, Mariano On Wed, Apr 29, 2009 at 11:28 AM, Andy Kellens wrote: > Hi, > > I get a pop-up from squeak (see attached screenshot) and I managed to see > the error, but I can't open up the actual debugger (the pop-up window just > keeps appearing). > I have seen that the old image (pier.image and pier.changes) get renamed, > but apparently the system is not able to create the new pier.image and > pier.changes. > To be sure, I verified that squeak has write privileges to the correct > directory. > > Cheers, > > Andy > > > > On 29 Apr 2009, at 11:10, Lukas Renggli wrote: > > Can you post a full stack trace? >> >> On Wed, Apr 29, 2009 at 10:39 AM, Andy Kellens >> wrote: >> >>> I checked: the VM has write permissions to the entire .app directory. >>> >>> Kind regards, >>> >>> Andy >>> >>> On 29 Apr 2009, at 10:31, Lukas Renggli wrote: >>> >>> We are running several instances on a Mac Server here. >>>> >>>> Are you sure that the VM has write permissions? Especially if you run >>>> the one-click image from /Applications, the VM has usually only >>>> limited write access. >>>> >>>> Lukas >>>> >>>> On Wed, Apr 29, 2009 at 10:11 AM, Andy Kellens >>>> wrote: >>>> >>>>> >>>>> Hello, >>>>> >>>>> I have a Pier 1.1.1 installation running on our Mac OS X Server. >>>>> While the Pier system runs just fine, I noticed that the system stopped >>>>> saving the changes persistently to the image. >>>>> After playing around a bit with our installation, I was able to >>>>> reproduce >>>>> the problem: >>>>> - I start with a clean Pier image (and import content from a >>>>> previous >>>>> 1.1.1 installation using the Importer/Exporter component) >>>>> - I choose PRImagePersistency (duration: 30 minutes; maxImages: 3) >>>>> as >>>>> the persistency scheme >>>>> - I start changing the wiki >>>>> - The first two saves work perfectly: Pier creates two new images >>>>> + >>>>> changes files >>>>> - When the third backup should be made, I get an error: pier.image >>>>> not found >>>>> - I also tried to manually save the image, but get a similar >>>>> error: >>>>> Squeak cannot locate the changes file /...../pier.changes. >>>>> - I checked: both files are where they should be >>>>> >>>>> Kind regards, >>>>> >>>>> Andy >>>>> >>>>> _______________________________________________ >>>>> Magritte, Pier and Related Tools ... >>>>> https://www.iam.unibe.ch/mailman/listinfo/smallwiki >>>>> >>>>> >>>> >>>> >>>> -- >>>> Lukas Renggli >>>> http://www.lukas-renggli.ch >>>> >>>> _______________________________________________ >>>> Magritte, Pier and Related Tools ... >>>> https://www.iam.unibe.ch/mailman/listinfo/smallwiki >>>> >>> >>> _______________________________________________ >>> Magritte, Pier and Related Tools ... >>> https://www.iam.unibe.ch/mailman/listinfo/smallwiki >>> >>> >> >> >> -- >> Lukas Renggli >> http://www.lukas-renggli.ch >> >> _______________________________________________ >> Magritte, Pier and Related Tools ... >> https://www.iam.unibe.ch/mailman/listinfo/smallwiki >> > > > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -------------- next part -------------- An HTML attachment was scrubbed... URL: From girba at iam.unibe.ch Wed Apr 29 15:54:01 2009 From: girba at iam.unibe.ch (Tudor Girba) Date: Wed, 29 Apr 2009 15:54:01 +0200 Subject: Persistency problem with Pier 1.1.1 on Mac OS X Server In-Reply-To: References: <67628d690904290131p2ec3dc25n3edaf363035bcf4@mail.gmail.com> <9F5ECB8A-CAEC-4898-A437-49053F3F6FAF@vub.ac.be> <67628d690904290210i6a9302bcn85f25a3db097313@mail.gmail.com> Message-ID: Hi Andy, Do you have enough harddisk space? Cheers, Doru On 29 Apr 2009, at 15:48, Mariano Martinez Peck: si, y no es gripe gordito... wrote: > Perhaps SqueakDebug.log (it should be where the image is) can give > you more information. > > Cheers, > > Mariano > > On Wed, Apr 29, 2009 at 11:28 AM, Andy Kellens > wrote: > Hi, > > I get a pop-up from squeak (see attached screenshot) and I managed > to see the error, but I can't open up the actual debugger (the pop- > up window just keeps appearing). > I have seen that the old image (pier.image and pier.changes) get > renamed, but apparently the system is not able to create the new > pier.image and pier.changes. > To be sure, I verified that squeak has write privileges to the > correct directory. > > Cheers, > > Andy > > > > On 29 Apr 2009, at 11:10, Lukas Renggli wrote: > > Can you post a full stack trace? > > On Wed, Apr 29, 2009 at 10:39 AM, Andy Kellens > wrote: > I checked: the VM has write permissions to the entire .app directory. > > Kind regards, > > Andy > > On 29 Apr 2009, at 10:31, Lukas Renggli wrote: > > We are running several instances on a Mac Server here. > > Are you sure that the VM has write permissions? Especially if you run > the one-click image from /Applications, the VM has usually only > limited write access. > > Lukas > > On Wed, Apr 29, 2009 at 10:11 AM, Andy Kellens > wrote: > > Hello, > > I have a Pier 1.1.1 installation running on our Mac OS X Server. > While the Pier system runs just fine, I noticed that the system > stopped > saving the changes persistently to the image. > After playing around a bit with our installation, I was able to > reproduce > the problem: > - I start with a clean Pier image (and import content from a > previous > 1.1.1 installation using the Importer/Exporter component) > - I choose PRImagePersistency (duration: 30 minutes; maxImages: > 3) > as > the persistency scheme > - I start changing the wiki > - The first two saves work perfectly: Pier creates two new > images + > changes files > - When the third backup should be made, I get an error: > pier.image > not found > - I also tried to manually save the image, but get a similar > error: > Squeak cannot locate the changes file /...../pier.changes. > - I checked: both files are where they should be > > Kind regards, > > Andy > > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > > > > > -- > Lukas Renggli > http://www.lukas-renggli.ch > > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > > > > > -- > Lukas Renggli > http://www.lukas-renggli.ch > > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > > > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki -- www.tudorgirba.com "Obvious things are difficult to teach." From akellens at vub.ac.be Wed Apr 29 16:06:37 2009 From: akellens at vub.ac.be (Andy Kellens) Date: Wed, 29 Apr 2009 16:06:37 +0200 Subject: Persistency problem with Pier 1.1.1 on Mac OS X Server In-Reply-To: References: <67628d690904290131p2ec3dc25n3edaf363035bcf4@mail.gmail.com> <9F5ECB8A-CAEC-4898-A437-49053F3F6FAF@vub.ac.be> <67628d690904290210i6a9302bcn85f25a3db097313@mail.gmail.com> Message-ID: Hello, Yes, there is plenty of space left on the server. Mariano was right: the stack trace could be found in the debug.log. I added it to the end of this mail. Kind regards, Andy ---- Error: attempt to index non-existent element in an ordered collection 29 April 2009 2:21:15 pm VM: Mac OS - a SmalltalkImage Image: Pharo0.1 [Latest update: #10213] SecurityManager state: Restricted: false FileAccess: true SocketAccess: true Working Dir /Library/WebServer/Wikis/IntensiVE.app/Contents/Resources Trusted Dir /foobar/tooBar/forSqueak/bogus/ Untrusted Dir /foobar/tooBar/forSqueak/bogus/ OrderedCollection(Object)>>error: Receiver: an OrderedCollection('pier_backup_2009-04-28_15-52-46.changes' 'pier_backup_2009-04-28_13-...etc... Arguments and temporary variables: aString: 'attempt to index non-existent element in an ordered collection' Receiver's instance variables: array: #('pier_backup_2009-04-28_15-52-46.changes' 'pier_backup_2009-04-28_13-3...etc... firstIndex: 1 lastIndex: 12 OrderedCollection>>errorNoSuchElement Receiver: an OrderedCollection('pier_backup_2009-04-28_15-52-46.changes' 'pier_backup_2009-04-28_13-...etc... Arguments and temporary variables: Receiver's instance variables: array: #('pier_backup_2009-04-28_15-52-46.changes' 'pier_backup_2009-04-28_13-3...etc... firstIndex: 1 lastIndex: 12 OrderedCollection>>at: Receiver: an OrderedCollection('pier_backup_2009-04-28_15-52-46.changes' 'pier_backup_2009-04-28_13-...etc... Arguments and temporary variables: anInteger: 0 Receiver's instance variables: array: #('pier_backup_2009-04-28_15-52-46.changes' 'pier_backup_2009-04-28_13-3...etc... firstIndex: 1 lastIndex: 12 StandardFileStream class>>readOnlyFileDoesNotExistUserHandling: Receiver: StandardFileStream Arguments and temporary variables: fullFileName: '/Library/WebServer/Wikis/IntensiVE.app/Contents/ Resources/pier.c...etc... dir: UnixFileDirectory on '/Library/WebServer/Wikis/IntensiVE.app/ Contents/Reso...etc... files: #('debug.log' 'pier.icns' 'pier2009-04-29_14-16-40.image' 'pier2009-04-2...etc... choices: an OrderedCollection('pier_backup_2009-04-28_15-52-46.changes' 'pier_b...etc... selection: 0 newName: nil fileName: 'pier.changes' Receiver's instance variables: superclass: FileStream methodDict: a MethodDictionary(#actAsExecutor->a CompiledMethod (98) #ascii->a ...etc... format: 146 instanceVariables: #('name' 'fileID' 'buffer1') organization: ('access' directory directoryUrl file fullName isDirectory localN...etc... subclasses: {CrLfFileStream. MultiByteFileStream} name: #StandardFileStream classPool: a Dictionary(#Registry->a WeakRegistry(...etc... sharedPools: nil environment: nil category: #'Files-Kernel' traitComposition: nil localSelectors: nil --- The full stack --- OrderedCollection(Object)>>error: OrderedCollection>>errorNoSuchElement OrderedCollection>>at: StandardFileStream class>>readOnlyFileDoesNotExistUserHandling: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - FileDoesNotExistException>>defaultAction UndefinedObject>>handleSignal: MethodContext(ContextPart)>>handleSignal: FileDoesNotExistException(Exception)>>signal MultiByteFileStream class(StandardFileStream class)>>readOnlyFileNamed: MultiByteFileStream(StandardFileStream)>>readOnlyCopy RemoteString>>text CompiledMethod>>getSourceFromFile CompiledMethod>>methodNode Decompiler>>decompileBlock: BlockContext>>decompile BlockContext>>printOn: [] in BlockContext(Object)>>printStringLimitedTo: {[:s | self printOn: s]} String class(SequenceableCollection class)>>streamContents:limitedTo: BlockContext(Object)>>printStringLimitedTo: BlockContext(Object)>>printString [] in OTToolset class>>debug:context:label:contents:fullView: On 29 Apr 2009, at 15:54, Tudor Girba wrote: > Hi Andy, > > Do you have enough harddisk space? > > Cheers, > Doru > > > On 29 Apr 2009, at 15:48, Mariano Martinez Peck: si, y no es gripe > gordito... wrote: > >> Perhaps SqueakDebug.log (it should be where the image is) can give >> you more information. >> >> Cheers, >> >> Mariano >> >> On Wed, Apr 29, 2009 at 11:28 AM, Andy Kellens >> wrote: >> Hi, >> >> I get a pop-up from squeak (see attached screenshot) and I managed >> to see the error, but I can't open up the actual debugger (the pop- >> up window just keeps appearing). >> I have seen that the old image (pier.image and pier.changes) get >> renamed, but apparently the system is not able to create the new >> pier.image and pier.changes. >> To be sure, I verified that squeak has write privileges to the >> correct directory. >> >> Cheers, >> >> Andy >> >> >> >> On 29 Apr 2009, at 11:10, Lukas Renggli wrote: >> >> Can you post a full stack trace? >> >> On Wed, Apr 29, 2009 at 10:39 AM, Andy Kellens >> wrote: >> I checked: the VM has write permissions to the entire .app directory. >> >> Kind regards, >> >> Andy >> >> On 29 Apr 2009, at 10:31, Lukas Renggli wrote: >> >> We are running several instances on a Mac Server here. >> >> Are you sure that the VM has write permissions? Especially if you run >> the one-click image from /Applications, the VM has usually only >> limited write access. >> >> Lukas >> >> On Wed, Apr 29, 2009 at 10:11 AM, Andy Kellens >> wrote: >> >> Hello, >> >> I have a Pier 1.1.1 installation running on our Mac OS X Server. >> While the Pier system runs just fine, I noticed that the system >> stopped >> saving the changes persistently to the image. >> After playing around a bit with our installation, I was able to >> reproduce >> the problem: >> - I start with a clean Pier image (and import content from a >> previous >> 1.1.1 installation using the Importer/Exporter component) >> - I choose PRImagePersistency (duration: 30 minutes; maxImages: >> 3) >> as >> the persistency scheme >> - I start changing the wiki >> - The first two saves work perfectly: Pier creates two new >> images + >> changes files >> - When the third backup should be made, I get an error: >> pier.image >> not found >> - I also tried to manually save the image, but get a similar >> error: >> Squeak cannot locate the changes file /...../pier.changes. >> - I checked: both files are where they should be >> >> Kind regards, >> >> Andy >> >> _______________________________________________ >> Magritte, Pier and Related Tools ... >> https://www.iam.unibe.ch/mailman/listinfo/smallwiki >> >> >> >> >> -- >> Lukas Renggli >> http://www.lukas-renggli.ch >> >> _______________________________________________ >> Magritte, Pier and Related Tools ... >> https://www.iam.unibe.ch/mailman/listinfo/smallwiki >> >> _______________________________________________ >> Magritte, Pier and Related Tools ... >> https://www.iam.unibe.ch/mailman/listinfo/smallwiki >> >> >> >> >> -- >> Lukas Renggli >> http://www.lukas-renggli.ch >> >> _______________________________________________ >> Magritte, Pier and Related Tools ... >> https://www.iam.unibe.ch/mailman/listinfo/smallwiki >> >> >> _______________________________________________ >> Magritte, Pier and Related Tools ... >> https://www.iam.unibe.ch/mailman/listinfo/smallwiki >> >> _______________________________________________ >> Magritte, Pier and Related Tools ... >> https://www.iam.unibe.ch/mailman/listinfo/smallwiki > > -- > www.tudorgirba.com > > "Obvious things are difficult to teach." > > > > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki From renggli at gmail.com Wed Apr 29 16:56:12 2009 From: renggli at gmail.com (Lukas Renggli) Date: Wed, 29 Apr 2009 16:56:12 +0200 Subject: Speed issue In-Reply-To: <84f77e270904290131u2ddbb07ah5099ebd90b0ff72f@mail.gmail.com> References: <84f77e270904282308p599ccb6bn4f073e538d74954f@mail.gmail.com> <67628d690904282341r8cab916ma77a5d8ecb24097@mail.gmail.com> <84f77e270904282357s24c55921xcb6620b33127f892@mail.gmail.com> <84f77e270904290131u2ddbb07ah5099ebd90b0ff72f@mail.gmail.com> Message-ID: <67628d690904290756g2d908443gc9a007b1d382d0da@mail.gmail.com> Load the latest EditorEnh, it loads the list of links using AJAX now and thus so it should be much faster in the normal case. Lukas On Wed, Apr 29, 2009 at 10:31 AM, Dennis Schetinin wrote: >>> In the meantime I suggest that you don't use Pier-EditorEnh (or >>> uncomment the part that creates the list of all pages). >> >> Sorry, I'm not sure how to do it. Should it be unloaded or just >> "switched-off" somehow? >> And the second option says absolutely nothing for me --- where to >> uncomment that? > > I commented the part generating "EditorEnh.linkOptions". Think that was what > you mean... > It seems to work on my notebook and seems to be faster... Later will check > it on the old? (and slow) computer. \ > Thanks > > -- > Dennis Schetinin > > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -- Lukas Renggli http://www.lukas-renggli.ch From marianopeck at gmail.com Wed Apr 29 17:16:31 2009 From: marianopeck at gmail.com (Mariano Martinez Peck: "si, y no es gripe gordito..." ) Date: Wed, 29 Apr 2009 14:16:31 -0100 Subject: Posts Authorization In-Reply-To: <67628d690904280114i7622e3c8of7dc71065e3c8b2e@mail.gmail.com> References: <67628d690904270948p4cf880fejaa02d9accf6463a4@mail.gmail.com> <67628d690904271101ta238cdbx2ae03efc29aec2fb@mail.gmail.com> <67628d690904280114i7622e3c8of7dc71065e3c8b2e@mail.gmail.com> Message-ID: On Tue, Apr 28, 2009 at 7:14 AM, Lukas Renggli wrote: > >> Yeah, that's probably more complicated. > >> > >> The yet simplest solution is to subclass PBBlog and override > >> #description. If the current user is not an admin user > >> (PRCurrentContext value user), you filter the publication date field. > > > > Lukas: Thanks! I start doing this. However I was having a problem. Till > now > > I always use a 'admin' user that has a 'admin' group. > > I created a new group called "finalUser". I create a user called > "mariano" > > with that group. I went to "change group" with my admin user > > and recursively I add "add comment" and "PRPost" permissions for the > group > > "finalUser". > > I tried to reproduce that, but it works for me. Did you give the view > permissions? > :) That did the trick! Thanks! Now, the last thing I need is what I said in mail with subject "Link for adding a new post". If that's not possible, can I filter the "Type" list when adding something to a blog ? Suppose you are a final user with finalUser group. You will be able to add a PRBlogWithAuthorization but won't be able to add a PRBlog. However, both of them are shown in the list. Ok, I that user selects a PRBlog then Pier says "permission denied". But, I would like to avoid this step. I mean, each user see in that list the thing he has permissions for. Can I do this? Thanks! Mariano > > Cheers, > Lukas > > -- > Lukas Renggli > http://www.lukas-renggli.ch > _______________________________________________ > 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 Apr 29 17:49:41 2009 From: renggli at gmail.com (Lukas Renggli) Date: Wed, 29 Apr 2009 17:49:41 +0200 Subject: Posts Authorization In-Reply-To: References: <67628d690904270948p4cf880fejaa02d9accf6463a4@mail.gmail.com> <67628d690904271101ta238cdbx2ae03efc29aec2fb@mail.gmail.com> <67628d690904280114i7622e3c8of7dc71065e3c8b2e@mail.gmail.com> Message-ID: <67628d690904290849x2eda945al5ea564140cff399d@mail.gmail.com> > Now, the last thing I need is what I said in mail with subject "Link for > adding a new post". Sorry, I must have missed that part. *Add Post>.|command=Add* > If that's not possible, can I filter the "Type" list when adding something > to a blog ? To blogs you can only add posts anyway. > Suppose you are a final user with finalUser group. You will be > able to add a PRBlogWithAuthorization but won't be able to add a PRBlog. > However, both of them are shown in the list. Ok, I that user selects a > PRBlog then Pier says "permission denied". But, I would like to avoid this > step. I mean, each user see in that list the thing he has permissions for. I'll have to check this, I thought this was filtered? Lukas -- Lukas Renggli http://www.lukas-renggli.ch From johnmci at smalltalkconsulting.com Wed Apr 29 19:34:58 2009 From: johnmci at smalltalkconsulting.com (John M McIntosh) Date: Wed, 29 Apr 2009 10:34:58 -0700 Subject: Persistency problem with Pier 1.1.1 on Mac OS X Server In-Reply-To: References: <67628d690904290131p2ec3dc25n3edaf363035bcf4@mail.gmail.com> <9F5ECB8A-CAEC-4898-A437-49053F3F6FAF@vub.ac.be> <67628d690904290210i6a9302bcn85f25a3db097313@mail.gmail.com> Message-ID: I've attached a ContextPart>>errorReportOn: we use to print more information, the current one dates from the last decade of the last century and really provides too little data on the instance variables and stack size. For example if we could see all of files: we chould see if the pier.changes file is there. But it looks like it's trying to bring up a debug dialog and failing when it can't find the changes file. In your image preferences have you set it to say there might not be an source or changes file? Also see http://code.google.com/p/pharo/issues/detail?id=512 where saying you don't have an image or changes file still will trigger a walkback if the files *do* exist but you don't have permission to read them. PS I note on an os-x server the file system is case sensitive, on desktop machines it's non-case sensitive. So for example on a desktop machine "IntensiVE.app" and "Intensive.app" would be the same, but on the server it's not. On 29-Apr-09, at 7:06 AM, Andy Kellens wrote: > Hello, > > Yes, there is plenty of space left on the server. > Mariano was right: the stack trace could be found in the debug.log. > I added it to the end of this mail. > > Kind regards, > > Andy > > ---- > > Error: attempt to index non-existent element in an ordered collection > 29 April 2009 2:21:15 pm > > VM: Mac OS - a SmalltalkImage > Image: Pharo0.1 [Latest update: #10213] > > SecurityManager state: > Restricted: false > FileAccess: true > SocketAccess: true > Working Dir /Library/WebServer/Wikis/IntensiVE.app/Contents/Resources > Trusted Dir /foobar/tooBar/forSqueak/bogus/ > Untrusted Dir /foobar/tooBar/forSqueak/bogus/ > > OrderedCollection(Object)>>error: > Receiver: an > OrderedCollection('pier_backup_2009-04-28_15-52-46.changes' > 'pier_backup_2009-04-28_13-...etc... > Arguments and temporary variables: > aString: 'attempt to index non-existent element in an ordered > collection' > Receiver's instance variables: > array: #('pier_backup_2009-04-28_15-52-46.changes' > 'pier_backup_2009-04-28_13-3...etc... > firstIndex: 1 > lastIndex: 12 > > OrderedCollection>>errorNoSuchElement > Receiver: an > OrderedCollection('pier_backup_2009-04-28_15-52-46.changes' > 'pier_backup_2009-04-28_13-...etc... > Arguments and temporary variables: > > Receiver's instance variables: > array: #('pier_backup_2009-04-28_15-52-46.changes' > 'pier_backup_2009-04-28_13-3...etc... > firstIndex: 1 > lastIndex: 12 > > OrderedCollection>>at: > Receiver: an > OrderedCollection('pier_backup_2009-04-28_15-52-46.changes' > 'pier_backup_2009-04-28_13-...etc... > Arguments and temporary variables: > anInteger: 0 > Receiver's instance variables: > array: #('pier_backup_2009-04-28_15-52-46.changes' > 'pier_backup_2009-04-28_13-3...etc... > firstIndex: 1 > lastIndex: 12 > > StandardFileStream class>>readOnlyFileDoesNotExistUserHandling: > Receiver: StandardFileStream > Arguments and temporary variables: > fullFileName: '/Library/WebServer/Wikis/IntensiVE.app/Contents/ > Resources/pier.c...etc... > dir: UnixFileDirectory on '/Library/WebServer/Wikis/IntensiVE.app/ > Contents/Reso...etc... > files: #('debug.log' 'pier.icns' 'pier2009-04-29_14-16-40.image' > 'pier2009-04-2...etc... > choices: an > OrderedCollection('pier_backup_2009-04-28_15-52-46.changes' > 'pier_b...etc... > selection: 0 > newName: nil > fileName: 'pier.changes' > Receiver's instance variables: > superclass: FileStream > methodDict: a MethodDictionary(#actAsExecutor->a CompiledMethod > (98) #ascii->a ...etc... > format: 146 > instanceVariables: #('name' 'fileID' 'buffer1') > organization: ('access' directory directoryUrl file fullName > isDirectory localN...etc... > subclasses: {CrLfFileStream. MultiByteFileStream} > name: #StandardFileStream > classPool: a Dictionary(#Registry->a WeakRegistry( WeakRegistry is locked>...etc... > sharedPools: nil > environment: nil > category: #'Files-Kernel' > traitComposition: nil > localSelectors: nil > > > --- The full stack --- > OrderedCollection(Object)>>error: > OrderedCollection>>errorNoSuchElement > OrderedCollection>>at: > StandardFileStream class>>readOnlyFileDoesNotExistUserHandling: > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > FileDoesNotExistException>>defaultAction > UndefinedObject>>handleSignal: > MethodContext(ContextPart)>>handleSignal: > FileDoesNotExistException(Exception)>>signal > MultiByteFileStream class(StandardFileStream > class)>>readOnlyFileNamed: > MultiByteFileStream(StandardFileStream)>>readOnlyCopy > RemoteString>>text > CompiledMethod>>getSourceFromFile > CompiledMethod>>methodNode > Decompiler>>decompileBlock: > BlockContext>>decompile > BlockContext>>printOn: > [] in BlockContext(Object)>>printStringLimitedTo: {[:s | self > printOn: s]} > String class(SequenceableCollection class)>>streamContents:limitedTo: > BlockContext(Object)>>printStringLimitedTo: > BlockContext(Object)>>printString > [] in OTToolset class>>debug:context:label:contents:fullView: > On 29 Apr 2009, at 15:54, Tudor Girba wrote: > >> Hi Andy, >> >> Do you have enough harddisk space? >> >> Cheers, >> Doru >> >> >> On 29 Apr 2009, at 15:48, Mariano Martinez Peck: si, y no es gripe >> gordito... wrote: >> >>> Perhaps SqueakDebug.log (it should be where the image is) can give >>> you more information. >>> >>> Cheers, >>> >>> Mariano >>> >>> On Wed, Apr 29, 2009 at 11:28 AM, Andy Kellens >>> wrote: >>> Hi, >>> >>> I get a pop-up from squeak (see attached screenshot) and I managed >>> to see the error, but I can't open up the actual debugger (the >>> pop-up window just keeps appearing). >>> I have seen that the old image (pier.image and pier.changes) get >>> renamed, but apparently the system is not able to create the new >>> pier.image and pier.changes. >>> To be sure, I verified that squeak has write privileges to the >>> correct directory. >>> >>> Cheers, >>> >>> Andy >>> >>> >>> >>> On 29 Apr 2009, at 11:10, Lukas Renggli wrote: >>> >>> Can you post a full stack trace? >>> >>> On Wed, Apr 29, 2009 at 10:39 AM, Andy Kellens >>> wrote: >>> I checked: the VM has write permissions to the entire .app >>> directory. >>> >>> Kind regards, >>> >>> Andy >>> >>> On 29 Apr 2009, at 10:31, Lukas Renggli wrote: >>> >>> We are running several instances on a Mac Server here. >>> >>> Are you sure that the VM has write permissions? Especially if you >>> run >>> the one-click image from /Applications, the VM has usually only >>> limited write access. >>> >>> Lukas >>> >>> On Wed, Apr 29, 2009 at 10:11 AM, Andy Kellens >>> wrote: >>> >>> Hello, >>> >>> I have a Pier 1.1.1 installation running on our Mac OS X Server. >>> While the Pier system runs just fine, I noticed that the system >>> stopped >>> saving the changes persistently to the image. >>> After playing around a bit with our installation, I was able to >>> reproduce >>> the problem: >>> - I start with a clean Pier image (and import content from a >>> previous >>> 1.1.1 installation using the Importer/Exporter component) >>> - I choose PRImagePersistency (duration: 30 minutes; maxImages: >>> 3) >>> as >>> the persistency scheme >>> - I start changing the wiki >>> - The first two saves work perfectly: Pier creates two new >>> images + >>> changes files >>> - When the third backup should be made, I get an error: >>> pier.image >>> not found >>> - I also tried to manually save the image, but get a similar >>> error: >>> Squeak cannot locate the changes file /...../pier.changes. >>> - I checked: both files are where they should be >>> >>> Kind regards, >>> >>> Andy >>> ContextPart>>errorReportOn: strm "Write a detailed error report on the stack (above me) on a stream. For both the error file, and emailing a bug report. Suppress any errors while getting printStrings. Limit the length." | cnt aContext startPos | strm print: Date today; space; print: Time now; cr. strm cr. strm nextPutAll: 'VM: '; nextPutAll: SmalltalkImage current platformName asString; nextPutAll: ' - '; nextPutAll: SmalltalkImage current platformSubtype asString; nextPutAll: ' - '; nextPutAll: SmalltalkImage current osVersion asString; nextPutAll: ' - '; nextPutAll: SmalltalkImage current vmVersion asString; cr. strm nextPutAll: 'Image: '; nextPutAll: SystemVersion current version asString; nextPutAll: ' ['; nextPutAll: SmalltalkImage current lastUpdateString asString; nextPutAll: ']'; cr. strm cr. SecurityManager default printStateOn: strm. "Note: The following is an open-coded version of ContextPart>>stackOfSize: since this method may be called during a low space condition and we might run out of space for allocating the full stack." cnt := 0. startPos := strm position. aContext := self. [aContext notNil and: [(cnt := cnt + 1) < 40]] whileTrue: [aContext printDetails: strm. "variable values" strm cr. aContext := aContext sender]. strm cr; nextPutAll: '--- The full stack ---'; cr. aContext := self. cnt := 0. [aContext == nil] whileFalse: [cnt := cnt + 1. cnt = 40 ifTrue: [strm nextPutAll: ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -'; cr]. strm print: aContext; cr. "just class>>selector" strm position > (startPos+150000) ifTrue: [strm nextPutAll: '...etc...'. ^ self]. "exit early" cnt > 200 ifTrue: [strm nextPutAll: '-- and more not shown --'. ^ self]. aContext := aContext sender]. From rdrvr.biz at gmail.com Wed Apr 29 20:08:48 2009 From: rdrvr.biz at gmail.com (David Farber) Date: Wed, 29 Apr 2009 12:08:48 -0600 Subject: Persistency problem with Pier 1.1.1 on Mac OS X Server In-Reply-To: References: <67628d690904290131p2ec3dc25n3edaf363035bcf4@mail.gmail.com> <9F5ECB8A-CAEC-4898-A437-49053F3F6FAF@vub.ac.be> <67628d690904290210i6a9302bcn85f25a3db097313@mail.gmail.com> Message-ID: <75664F5E-3665-461F-AE83-C1DA8CBB98BA@gmail.com> Andy - I've seen this error outside of the context of Pier. Once you get into this state, there is nothing you can do--everything you try to do throws the same error. Whatever the problem turns out to be, it would be really nice to fix it so that the image isn't brought to its knees. David ---- 1 Squeak/Seaside/Pier site deployed On Apr 29, 2009, at 8:06 AM, Andy Kellens wrote: > Hello, > > Yes, there is plenty of space left on the server. > Mariano was right: the stack trace could be found in the debug.log. > I added it to the end of this mail. > > Kind regards, > > Andy > > ---- > > Error: attempt to index non-existent element in an ordered collection > 29 April 2009 2:21:15 pm > > VM: Mac OS - a SmalltalkImage > Image: Pharo0.1 [Latest update: #10213] > > SecurityManager state: > Restricted: false > FileAccess: true > SocketAccess: true > Working Dir /Library/WebServer/Wikis/IntensiVE.app/Contents/Resources > Trusted Dir /foobar/tooBar/forSqueak/bogus/ > Untrusted Dir /foobar/tooBar/forSqueak/bogus/ > > OrderedCollection(Object)>>error: > Receiver: an > OrderedCollection('pier_backup_2009-04-28_15-52-46.changes' > 'pier_backup_2009-04-28_13-...etc... > Arguments and temporary variables: > aString: 'attempt to index non-existent element in an ordered > collection' > Receiver's instance variables: > array: #('pier_backup_2009-04-28_15-52-46.changes' > 'pier_backup_2009-04-28_13-3...etc... > firstIndex: 1 > lastIndex: 12 > > OrderedCollection>>errorNoSuchElement > Receiver: an > OrderedCollection('pier_backup_2009-04-28_15-52-46.changes' > 'pier_backup_2009-04-28_13-...etc... > Arguments and temporary variables: > > Receiver's instance variables: > array: #('pier_backup_2009-04-28_15-52-46.changes' > 'pier_backup_2009-04-28_13-3...etc... > firstIndex: 1 > lastIndex: 12 > > OrderedCollection>>at: > Receiver: an > OrderedCollection('pier_backup_2009-04-28_15-52-46.changes' > 'pier_backup_2009-04-28_13-...etc... > Arguments and temporary variables: > anInteger: 0 > Receiver's instance variables: > array: #('pier_backup_2009-04-28_15-52-46.changes' > 'pier_backup_2009-04-28_13-3...etc... > firstIndex: 1 > lastIndex: 12 > > StandardFileStream class>>readOnlyFileDoesNotExistUserHandling: > Receiver: StandardFileStream > Arguments and temporary variables: > fullFileName: '/Library/WebServer/Wikis/IntensiVE.app/Contents/ > Resources/pier.c...etc... > dir: UnixFileDirectory on '/Library/WebServer/Wikis/IntensiVE.app/ > Contents/Reso...etc... > files: #('debug.log' 'pier.icns' 'pier2009-04-29_14-16-40.image' > 'pier2009-04-2...etc... > choices: an > OrderedCollection('pier_backup_2009-04-28_15-52-46.changes' > 'pier_b...etc... > selection: 0 > newName: nil > fileName: 'pier.changes' > Receiver's instance variables: > superclass: FileStream > methodDict: a MethodDictionary(#actAsExecutor->a CompiledMethod > (98) #ascii->a ...etc... > format: 146 > instanceVariables: #('name' 'fileID' 'buffer1') > organization: ('access' directory directoryUrl file fullName > isDirectory localN...etc... > subclasses: {CrLfFileStream. MultiByteFileStream} > name: #StandardFileStream > classPool: a Dictionary(#Registry->a WeakRegistry( WeakRegistry is locked>...etc... > sharedPools: nil > environment: nil > category: #'Files-Kernel' > traitComposition: nil > localSelectors: nil > > > --- The full stack --- > OrderedCollection(Object)>>error: > OrderedCollection>>errorNoSuchElement > OrderedCollection>>at: > StandardFileStream class>>readOnlyFileDoesNotExistUserHandling: > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > FileDoesNotExistException>>defaultAction > UndefinedObject>>handleSignal: > MethodContext(ContextPart)>>handleSignal: > FileDoesNotExistException(Exception)>>signal > MultiByteFileStream class(StandardFileStream > class)>>readOnlyFileNamed: > MultiByteFileStream(StandardFileStream)>>readOnlyCopy > RemoteString>>text > CompiledMethod>>getSourceFromFile > CompiledMethod>>methodNode > Decompiler>>decompileBlock: > BlockContext>>decompile > BlockContext>>printOn: > [] in BlockContext(Object)>>printStringLimitedTo: {[:s | self > printOn: s]} > String class(SequenceableCollection class)>>streamContents:limitedTo: > BlockContext(Object)>>printStringLimitedTo: > BlockContext(Object)>>printString > [] in OTToolset class>>debug:context:label:contents:fullView: > On 29 Apr 2009, at 15:54, Tudor Girba wrote: > >> Hi Andy, >> >> Do you have enough harddisk space? >> >> Cheers, >> Doru >> >> >> On 29 Apr 2009, at 15:48, Mariano Martinez Peck: si, y no es gripe >> gordito... wrote: >> >>> Perhaps SqueakDebug.log (it should be where the image is) can give >>> you more information. >>> >>> Cheers, >>> >>> Mariano >>> >>> On Wed, Apr 29, 2009 at 11:28 AM, Andy Kellens >>> wrote: >>> Hi, >>> >>> I get a pop-up from squeak (see attached screenshot) and I managed >>> to see the error, but I can't open up the actual debugger (the >>> pop-up window just keeps appearing). >>> I have seen that the old image (pier.image and pier.changes) get >>> renamed, but apparently the system is not able to create the new >>> pier.image and pier.changes. >>> To be sure, I verified that squeak has write privileges to the >>> correct directory. >>> >>> Cheers, >>> >>> Andy >>> >>> >>> >>> On 29 Apr 2009, at 11:10, Lukas Renggli wrote: >>> >>> Can you post a full stack trace? >>> >>> On Wed, Apr 29, 2009 at 10:39 AM, Andy Kellens >>> wrote: >>> I checked: the VM has write permissions to the entire .app >>> directory. >>> >>> Kind regards, >>> >>> Andy >>> >>> On 29 Apr 2009, at 10:31, Lukas Renggli wrote: >>> >>> We are running several instances on a Mac Server here. >>> >>> Are you sure that the VM has write permissions? Especially if you >>> run >>> the one-click image from /Applications, the VM has usually only >>> limited write access. >>> >>> Lukas >>> >>> On Wed, Apr 29, 2009 at 10:11 AM, Andy Kellens >>> wrote: >>> >>> Hello, >>> >>> I have a Pier 1.1.1 installation running on our Mac OS X Server. >>> While the Pier system runs just fine, I noticed that the system >>> stopped >>> saving the changes persistently to the image. >>> After playing around a bit with our installation, I was able to >>> reproduce >>> the problem: >>> - I start with a clean Pier image (and import content from a >>> previous >>> 1.1.1 installation using the Importer/Exporter component) >>> - I choose PRImagePersistency (duration: 30 minutes; maxImages: >>> 3) >>> as >>> the persistency scheme >>> - I start changing the wiki >>> - The first two saves work perfectly: Pier creates two new >>> images + >>> changes files >>> - When the third backup should be made, I get an error: >>> pier.image >>> not found >>> - I also tried to manually save the image, but get a similar >>> error: >>> Squeak cannot locate the changes file /...../pier.changes. >>> - I checked: both files are where they should be >>> >>> Kind regards, >>> >>> Andy >>> >>> _______________________________________________ >>> Magritte, Pier and Related Tools ... >>> https://www.iam.unibe.ch/mailman/listinfo/smallwiki >>> >>> >>> >>> >>> -- >>> Lukas Renggli >>> http://www.lukas-renggli.ch >>> >>> _______________________________________________ >>> Magritte, Pier and Related Tools ... >>> https://www.iam.unibe.ch/mailman/listinfo/smallwiki >>> >>> _______________________________________________ >>> Magritte, Pier and Related Tools ... >>> https://www.iam.unibe.ch/mailman/listinfo/smallwiki >>> >>> >>> >>> >>> -- >>> Lukas Renggli >>> http://www.lukas-renggli.ch >>> >>> _______________________________________________ >>> Magritte, Pier and Related Tools ... >>> https://www.iam.unibe.ch/mailman/listinfo/smallwiki >>> >>> >>> _______________________________________________ >>> Magritte, Pier and Related Tools ... >>> https://www.iam.unibe.ch/mailman/listinfo/smallwiki >>> >>> _______________________________________________ >>> Magritte, Pier and Related Tools ... >>> https://www.iam.unibe.ch/mailman/listinfo/smallwiki >> >> -- >> www.tudorgirba.com >> >> "Obvious things are difficult to teach." >> >> >> >> _______________________________________________ >> Magritte, Pier and Related Tools ... >> https://www.iam.unibe.ch/mailman/listinfo/smallwiki > > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki From renggli at gmail.com Thu Apr 30 00:07:34 2009 From: renggli at gmail.com (Lukas Renggli) Date: Thu, 30 Apr 2009 00:07:34 +0200 Subject: Posts Authorization In-Reply-To: <67628d690904290849x2eda945al5ea564140cff399d@mail.gmail.com> References: <67628d690904270948p4cf880fejaa02d9accf6463a4@mail.gmail.com> <67628d690904271101ta238cdbx2ae03efc29aec2fb@mail.gmail.com> <67628d690904280114i7622e3c8of7dc71065e3c8b2e@mail.gmail.com> <67628d690904290849x2eda945al5ea564140cff399d@mail.gmail.com> Message-ID: <67628d690904291507s2e986e4fkb158946fcfe1d807@mail.gmail.com> >> Suppose you are a final user with finalUser group. You will be >> able to add a PRBlogWithAuthorization but won't be able to add a PRBlog. >> However, both of them are shown in the list. Ok, I that user selects a >> PRBlog then Pier says "permission denied". But, I would like to avoid this >> step. I mean, each user see in that list the thing he has permissions for. > > I'll have to check this, I thought this was filtered? You are right, this is something I missed. I fixed this issue in Pier-Security-lr.137. Please let me know if this solves the problem. Name: Pier-Security-lr.137 Author: lr Time: 30 April 2009, 12:06:13 am UUID: 9ddcb800-7198-4937-8413-d979ffb01263 Ancestors: Pier-Security-lr.136 - only show the add actions, that the user actually has the permission for Lukas -- Lukas Renggli http://www.lukas-renggli.ch From marianopeck at gmail.com Thu Apr 30 01:26:02 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Wed, 29 Apr 2009 20:26:02 -0300 Subject: Posts Authorization In-Reply-To: <67628d690904290849x2eda945al5ea564140cff399d@mail.gmail.com> References: <67628d690904270948p4cf880fejaa02d9accf6463a4@mail.gmail.com> <67628d690904271101ta238cdbx2ae03efc29aec2fb@mail.gmail.com> <67628d690904280114i7622e3c8of7dc71065e3c8b2e@mail.gmail.com> <67628d690904290849x2eda945al5ea564140cff399d@mail.gmail.com> Message-ID: On Wed, Apr 29, 2009 at 12:49 PM, Lukas Renggli wrote: > > Now, the last thing I need is what I said in mail with subject "Link for > > adding a new post". > > Sorry, I must have missed that part. > > *Add Post>.|command=Add* > First of all, thanks for your replies and interest :) Suppose I am inside a blog. And there I want to put a link to add a blog. Just as "add" command but as a custom link in a custom place. I put that but is like I miss the environment. The add is not interpreted for the blog, but for something general. How can I specify the environment to the link ? or any way to solve this ? > > > If that's not possible, can I filter the "Type" list when adding > something > > to a blog ? > > To blogs you can only add posts anyway. That's exactly my question. If blogs can only add posts, can I avoid this step and go directly to add post? (the screen where I put name, author, publication and so on)... If so, how ? Thanks!!! > -- > Lukas Renggli > http://www.lukas-renggli.ch > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -------------- next part -------------- An HTML attachment was scrubbed... URL: From marianopeck at gmail.com Thu Apr 30 01:26:30 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Wed, 29 Apr 2009 20:26:30 -0300 Subject: Posts Authorization In-Reply-To: <67628d690904291507s2e986e4fkb158946fcfe1d807@mail.gmail.com> References: <67628d690904270948p4cf880fejaa02d9accf6463a4@mail.gmail.com> <67628d690904271101ta238cdbx2ae03efc29aec2fb@mail.gmail.com> <67628d690904280114i7622e3c8of7dc71065e3c8b2e@mail.gmail.com> <67628d690904290849x2eda945al5ea564140cff399d@mail.gmail.com> <67628d690904291507s2e986e4fkb158946fcfe1d807@mail.gmail.com> Message-ID: On Wed, Apr 29, 2009 at 7:07 PM, Lukas Renggli wrote: > >> Suppose you are a final user with finalUser group. You will be > >> able to add a PRBlogWithAuthorization but won't be able to add a PRBlog. > >> However, both of them are shown in the list. Ok, I that user selects a > >> PRBlog then Pier says "permission denied". But, I would like to avoid > this > >> step. I mean, each user see in that list the thing he has permissions > for. > > > > I'll have to check this, I thought this was filtered? > > You are right, this is something I missed. I fixed this issue in > Pier-Security-lr.137. Please let me know if this solves the problem. > > Name: Pier-Security-lr.137 > Author: lr > Time: 30 April 2009, 12:06:13 am > UUID: 9ddcb800-7198-4937-8413-d979ffb01263 > Ancestors: Pier-Security-lr.136 > > - only show the add actions, that the user actually has the permission for :) Perfect!!!! Thanks a lot !!! > > > Lukas > > -- > Lukas Renggli > http://www.lukas-renggli.ch > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -------------- next part -------------- An HTML attachment was scrubbed... URL: From marianopeck at gmail.com Thu Apr 30 03:08:41 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Wed, 29 Apr 2009 22:08:41 -0300 Subject: Reports in Pier Message-ID: Hi! I want to make a report with Pier in Seaside that shows all the blogs that satisfy certain condition. Perhaps something more, but not right now. Which is the easy way to do this with Pier/Magritte ? I thought to subclass PUReportWidget. Should this be a good idea ? Thanks for the tips! Mariano -------------- next part -------------- An HTML attachment was scrubbed... URL: From renggli at gmail.com Thu Apr 30 08:31:45 2009 From: renggli at gmail.com (Lukas Renggli) Date: Thu, 30 Apr 2009 08:31:45 +0200 Subject: Posts Authorization In-Reply-To: References: <67628d690904270948p4cf880fejaa02d9accf6463a4@mail.gmail.com> <67628d690904271101ta238cdbx2ae03efc29aec2fb@mail.gmail.com> <67628d690904280114i7622e3c8of7dc71065e3c8b2e@mail.gmail.com> <67628d690904290849x2eda945al5ea564140cff399d@mail.gmail.com> Message-ID: <67628d690904292331k23b74793v38e0ac3b88ac3b4d@mail.gmail.com> > That's exactly my question. If blogs can only add posts, can I avoid this > step and go directly to add post? (the screen where I put name, author, > publication and so on)... If so, how ? Not at the moment, because you need to provide a name. Lukas -- Lukas Renggli http://www.lukas-renggli.ch From renggli at gmail.com Thu Apr 30 08:36:56 2009 From: renggli at gmail.com (Lukas Renggli) Date: Thu, 30 Apr 2009 08:36:56 +0200 Subject: Reports in Pier In-Reply-To: References: Message-ID: <67628d690904292336g122f8d3an9f2130d140ac0f2f@mail.gmail.com> > Which is the easy way to do this with Pier/Magritte ? I thought to subclass > PUReportWidget. Should this be a good idea ? Yeah, or even PUStructuresWidget a subclass of PUReportWidget, then you already get the basic functionality to report on structures. Lukas -- Lukas Renggli http://www.lukas-renggli.ch From chaetal at gmail.com Thu Apr 30 15:58:22 2009 From: chaetal at gmail.com (Dennis Schetinin) Date: Thu, 30 Apr 2009 17:58:22 +0400 Subject: Speed issue In-Reply-To: <67628d690904290756g2d908443gc9a007b1d382d0da@mail.gmail.com> References: <84f77e270904282308p599ccb6bn4f073e538d74954f@mail.gmail.com> <67628d690904282341r8cab916ma77a5d8ecb24097@mail.gmail.com> <84f77e270904282357s24c55921xcb6620b33127f892@mail.gmail.com> <84f77e270904290131u2ddbb07ah5099ebd90b0ff72f@mail.gmail.com> <67628d690904290756g2d908443gc9a007b1d382d0da@mail.gmail.com> Message-ID: <84f77e270904300658l43d5a9ddsd43f680bc0b442f4@mail.gmail.com> > Load the latest EditorEnh, it loads the list of links using AJAX now > and thus so it should be much faster in the normal case. > > Lukas > Thank you. Now it's ok. -- Dennis Schetinin -------------- next part -------------- An HTML attachment was scrubbed... URL: From dtrussardi at tiscali.it Thu Apr 30 18:29:42 2009 From: dtrussardi at tiscali.it (Dario Trussardi) Date: Thu, 30 Apr 2009 18:29:42 +0200 Subject: MAExternalFileModel baseUrl configuration Message-ID: <398EBF0B044A478391641C120DF30212@istcamuno> Hi All, I work with Glass and Magritte. I have create a subclass of MAExternalFileModel to manage the files on my server with Lighttpd sever. My problem is relative to the baseUrl configuration of it class because : 1) for web request from local LAN it's need point to my local server IP. 2) for web request from www it's need point to my router ( configured with Port Forwarding to my server ). I forget something ? Any pointers would be greatly appreciated! Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: From renggli at gmail.com Thu Apr 30 18:43:19 2009 From: renggli at gmail.com (Lukas Renggli) Date: Thu, 30 Apr 2009 18:43:19 +0200 Subject: MAExternalFileModel baseUrl configuration In-Reply-To: <398EBF0B044A478391641C120DF30212@istcamuno> References: <398EBF0B044A478391641C120DF30212@istcamuno> Message-ID: <67628d690904300943o66b355ftc5bb979d95533bef@mail.gmail.com> > Any pointers would be greatly appreciated! Can't you make all requests go through your router? Lukas -- Lukas Renggli http://www.lukas-renggli.ch From marianopeck at gmail.com Thu Apr 30 19:40:11 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Thu, 30 Apr 2009 16:40:11 -0100 Subject: Posts Authorization In-Reply-To: <67628d690904292331k23b74793v38e0ac3b88ac3b4d@mail.gmail.com> References: <67628d690904270948p4cf880fejaa02d9accf6463a4@mail.gmail.com> <67628d690904271101ta238cdbx2ae03efc29aec2fb@mail.gmail.com> <67628d690904280114i7622e3c8of7dc71065e3c8b2e@mail.gmail.com> <67628d690904290849x2eda945al5ea564140cff399d@mail.gmail.com> <67628d690904292331k23b74793v38e0ac3b88ac3b4d@mail.gmail.com> Message-ID: On Thu, Apr 30, 2009 at 5:31 AM, Lukas Renggli wrote: > > That's exactly my question. If blogs can only add posts, can I avoid this > > step and go directly to add post? (the screen where I put name, author, > > publication and so on)... If so, how ? > > Not at the moment, because you need to provide a name. > Ok. But perhaps (I don't know if magritte supports this) it can be configure (through settings command) the type list so that it only renders if it has more than one option. I would love the final user not to be aware of a "component type". Thanks a lot! Mariano > > Lukas > > -- > Lukas Renggli > http://www.lukas-renggli.ch > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -------------- next part -------------- An HTML attachment was scrubbed... URL: From marianopeck at gmail.com Thu Apr 30 21:45:26 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Thu, 30 Apr 2009 18:45:26 -0100 Subject: Pier-EmailSender and "Contact Us" Message-ID: Hi! I need to do the typical "Contact Us" form where the user can put the name the email and the question and then this email to the webmaster email account. I look there was a Pier-EmailSender which seems to do what I need. However It has different walkbacks in Pier 1.1.1. Keith Hodges: do you think it's rather to make it work that doing my own ? It is very simple to reproduce. Just open a fresh Pier 1.1.1 and add that widget. Thanks!! Mariano -------------- next part -------------- An HTML attachment was scrubbed... URL: From keith_hodges at yahoo.co.uk Thu Apr 30 23:29:41 2009 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Thu, 30 Apr 2009 22:29:41 +0100 Subject: Pier-EmailSender and "Contact Us" In-Reply-To: References: Message-ID: <49FA1845.8010201@yahoo.co.uk> Mariano Martinez Peck wrote: > Hi! > > I need to do the typical "Contact Us" form where the user can put the > name the email and the question and then this email to the webmaster > email account. > > I look there was a Pier-EmailSender which seems to do what I need. > However It has different walkbacks in Pier 1.1.1. > > Keith Hodges: do you think it's rather to make it work that doing my own ? > > It is very simple to reproduce. Just open a fresh Pier 1.1.1 and add > that widget. > > Thanks!! > > Mariano The code I am using myself based on this code has been moved into the Beach project, I think you will find it a bit more workable there. I dont think it has any dependencies upon beach itself. www.squeaksource.com/BeachPostBox-Seaside Keith