From marianopeck at gmail.com Tue Jun 2 15:27:15 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Tue, 2 Jun 2009 12:27:15 -0100 Subject: pharo to glass: moving data question... In-Reply-To: <67628d690905242305j3fa0a5a4qb33e7d3b8c44897f@mail.gmail.com> References: <2060510619.1022951243178549277.JavaMail.root@gir> <1419124045.1022971243178578867.JavaMail.root@gir> <67628d690905242305j3fa0a5a4qb33e7d3b8c44897f@mail.gmail.com> Message-ID: On Mon, May 25, 2009 at 5:05 AM, Lukas Renggli wrote: > > I also don't know how it is do it. Lukas, do you know ? Perhaps, > extending > > Pier/Export package using a GemStone compatible serializer (like SIXX) > would > > be a good idea to do. > > I agree that extending the exporter to support SIXX would be a good idea. > > I created an issue: > > http://code.google.com/p/pier/issues/detail?id=96 Now there is this post: http://kentreis.wordpress.com/2009/06/01/deep-sixx-with-xml-pull-parser/ > > > Cheers, > Lukas > > > > > > Do you have something like a magic SIXX example to do this? export a pier > > kernel ? > > > > thanks! > > > > Mariano > > > > > >> > >> Dale > >> > >> ----- "Mariano Martinez Peck" wrote: > >> > >> | Pier (in 1.1.1 I think) has it's own Importer/Exporter. I don't know > >> | if it > >> | works on Gemstone, but if this is the case is really easy. I do this > >> | when > >> | move a pier site from one image to another. > >> | > >> | Cheers, > >> | > >> | Mariano > >> | > >> | On Sat, May 23, 2009 at 1:01 PM, Sean Allen > >> | wrote: > >> | > >> | > I'll add SIXX on to my ever growing list of things to learn and if I > >> | have > >> | > issues, will be in touch. > >> | > > >> | > > >> | > On May 23, 2009, at 11:02 AM, Dale Henrichs wrote: > >> | > > >> | > SSean, > >> | >> > >> | >> Use SIXX. During SIXX testing I was able to move a Pier kernel from > >> | Squeak > >> | >> to GemStone. > >> | >> > >> | >> If you run into issues, I will be very interested to fix them, > >> | since at > >> | >> the moment I think SIXX is the best alternative. > >> | >> > >> | >> Dale > >> | >> > >> | >> ----- "Sean Allen" wrote: > >> | >> > >> | >> | i want to start playing around with putting together a site in > >> | pharo > >> | >> | > >> | >> | on my laptop and then when i have it mostly completed, moving it > >> | over > >> | >> | > >> | >> | to a GLASS installation. > >> | >> | i've scanned back through the list since i first signed up last > >> | year > >> | >> | > >> | >> | ( and found numerous interesting tidbits i had missed ), but i > >> | can't > >> | >> | > >> | >> | find anything on this: > >> | >> | > >> | >> | if i want to move an existing pier site out of a pharo/squeak > >> | image > >> | >> | and into glass, how do i do that? i assume it would be using > >> | >> | monticello. i'm not sure though, how much i need to move. i'm > >> | sure > >> | >> | there is a simple answer to this, but i still haven't really > >> | used > >> | >> | monticello much as i have been able to get by without using it > >> | yet. > >> | >> | > >> | >> | > >> | >> | _______________________________________________ > >> | >> | 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 > >> | > > > > > > > _______________________________________________ > > 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 Jun 3 09:20:40 2009 From: chaetal at gmail.com (Dennis Schetinin) Date: Wed, 3 Jun 2009 11:20:40 +0400 Subject: Rendering other aspect than title in title Message-ID: <84f77e270906030020r5d72dc11y5cf4d575d5632692@mail.gmail.com> How can I render other property of object (say #fullName) in the title of the page? -- Dennis Schetinin -------------- next part -------------- An HTML attachment was scrubbed... URL: From renggli at gmail.com Wed Jun 3 09:37:29 2009 From: renggli at gmail.com (Lukas Renggli) Date: Wed, 3 Jun 2009 09:37:29 +0200 Subject: Rendering other aspect than title in title In-Reply-To: <84f77e270906030020r5d72dc11y5cf4d575d5632692@mail.gmail.com> References: <84f77e270906030020r5d72dc11y5cf4d575d5632692@mail.gmail.com> Message-ID: <67628d690906030037v61a63180i4a4e819bc7c2268c@mail.gmail.com> Edit PRContentWidget. There is a setting called 'Head Title' that specifies the title of the page. Probably you need to subclass or change the implementation, as it is not that powerful. Cheers, Lukas On Wed, Jun 3, 2009 at 9:20 AM, Dennis Schetinin wrote: > How can I render other property of object (say #fullName) in the title of > the page? > > -- > Dennis Schetinin > > _______________________________________________ > 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 Jun 3 18:01:10 2009 From: chaetal at gmail.com (Dennis Schetinin) Date: Wed, 3 Jun 2009 20:01:10 +0400 Subject: Rendering other aspect than title in title In-Reply-To: <67628d690906030037v61a63180i4a4e819bc7c2268c@mail.gmail.com> References: <84f77e270906030020r5d72dc11y5cf4d575d5632692@mail.gmail.com> <67628d690906030037v61a63180i4a4e819bc7c2268c@mail.gmail.com> Message-ID: <84f77e270906030901o6ca2deabk54974f0b03d76e5b@mail.gmail.com> > > Edit PRContentWidget. There is a setting called 'Head Title' that > specifies the title of the page. Probably you need to subclass or > change the implementation, as it is not that powerful. > Thank you -- Dennis Schetinin -------------- next part -------------- An HTML attachment was scrubbed... URL: From chaetal at gmail.com Thu Jun 4 08:45:53 2009 From: chaetal at gmail.com (Dennis Schetinin) Date: Thu, 4 Jun 2009 10:45:53 +0400 Subject: Rendering other aspect than title in title In-Reply-To: <84f77e270906030901o6ca2deabk54974f0b03d76e5b@mail.gmail.com> References: <84f77e270906030020r5d72dc11y5cf4d575d5632692@mail.gmail.com> <67628d690906030037v61a63180i4a4e819bc7c2268c@mail.gmail.com> <84f77e270906030901o6ca2deabk54974f0b03d76e5b@mail.gmail.com> Message-ID: <84f77e270906032345ia2013adh249a55cf991fb9cf@mail.gmail.com> Edit PRContentWidget. There is a setting called 'Head Title' that >> specifies the title of the page. Probably you need to subclass or >> change the implementation, as it is not that powerful. >> > With the help of my coworker just found there's #menu in #PRStructure (comment: 'A short title used for navigation facilities.'), which can be used to implement what I wanted... :) -- Dennis Schetinin -------------- next part -------------- An HTML attachment was scrubbed... URL: From marianopeck at gmail.com Sun Jun 7 19:08:45 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Sun, 7 Jun 2009 14:08:45 -0300 Subject: Questions about text formatting Message-ID: Hi folks, I have two simple questions: 1) I am putting in a Pier page a text I am copying from a .doc (I am copy pasting it). The main problem I have is with the "Point and beyond". Suppose I have this text when I am editing the page: "This is a paragraph that talks about something. This is another paragraph." Pier render me this: This is a paragraph that talks about something. This is another paragraph. The only way I found to render what I want is using a
, like this: "This is a paragraph that talks about something.

This is another paragraph." Is there an easier way to do this ? 2) In a Pier page, I have text and an image embebed. Suppose something like this: "Buceo en Madryn y Pen?nsula de Vald?s. +/LugaresDestino/Provincia - Chubut/Puerto Madryn/Foto - Buceo - Puerto Madryn+ Otras actividades, se puede realizar Mountain bike, trekking, sandboard, cabalgatas, paseos n?uticos, windsurf pueden ser comunes a otros sitios, pero pocas veces se unen a un escenario atractivo." In this case +/LugaresDestino/Provincia - Chubut/Puerto Madryn/Foto - Buceo - Puerto Madryn+ is a picture but the width of this picure is less than the area of the text. So, the text "Otras actividades, se puede......" estar to render at the right of the picture. Suppose I don't want this and want this text to start below the picture. how can I do this ? If I wasn't clear enough I can attach an screenshot. Thanks in advance, Mariano -------------- next part -------------- An HTML attachment was scrubbed... URL: From girba at iam.unibe.ch Sun Jun 7 19:18:19 2009 From: girba at iam.unibe.ch (Tudor Girba) Date: Sun, 7 Jun 2009 19:18:19 +0200 Subject: Questions about text formatting In-Reply-To: References: Message-ID: Hi, 1) there is no other way if you want to force a breakpoint 2) you could put the picture in a div to force a new line
+mypicture+
my text Cheers, Doru On 7 Jun 2009, at 19:08, Mariano Martinez Peck wrote: > Hi folks, I have two simple questions: > > 1) I am putting in a Pier page a text I am copying from a .doc (I am > copy pasting it). The main problem I have is with the "Point and > beyond". Suppose I have this text when I am editing the page: > > "This is a paragraph that talks about something. > This is another paragraph." > > Pier render me this: > > This is a paragraph that talks about something. This is another > paragraph. > > The only way I found to render what I want is using a
, like this: > > "This is a paragraph that talks about something.

> This is another paragraph." > > Is there an easier way to do this ? > > > 2) In a Pier page, I have text and an image embebed. Suppose > something like this: > > > "Buceo en Madryn y Pen?nsula de Vald?s. > +/LugaresDestino/Provincia - Chubut/Puerto Madryn/Foto - Buceo - > Puerto Madryn+ > > Otras actividades, se puede realizar Mountain bike, trekking, > sandboard, cabalgatas, paseos n?uticos, windsurf pueden ser comunes > a otros sitios, pero pocas veces se unen a un escenario atractivo." > > In this case +/LugaresDestino/Provincia - Chubut/Puerto Madryn/Foto > - Buceo - Puerto Madryn+ is a picture but the width of this > picure is less than the area of the text. So, the text "Otras > actividades, se puede......" estar to render at the right of the > picture. Suppose I don't want this and want this text to start below > the picture. how can I do this ? > If I wasn't clear enough I can attach an screenshot. > > > Thanks in advance, > > Mariano > > > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki -- www.tudorgirba.com "Problem solving efficiency grows with the abstractness level of problem understanding." From marianopeck at gmail.com Sun Jun 7 19:21:59 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Sun, 7 Jun 2009 14:21:59 -0300 Subject: Questions about text formatting In-Reply-To: References: Message-ID: On Sun, Jun 7, 2009 at 2:18 PM, Tudor Girba wrote: > Hi, > > 1) there is no other way if you want to force a breakpoint > ok. > > 2) you could put the picture in a div to force a new line >
+mypicture+
> my text > Worked perfect!! Thanks Doru Mariano > > Cheers, > Doru > > > > On 7 Jun 2009, at 19:08, Mariano Martinez Peck wrote: > > Hi folks, I have two simple questions: >> >> 1) I am putting in a Pier page a text I am copying from a .doc (I am copy >> pasting it). The main problem I have is with the "Point and beyond". Suppose >> I have this text when I am editing the page: >> >> "This is a paragraph that talks about something. >> This is another paragraph." >> >> Pier render me this: >> >> This is a paragraph that talks about something. This is another paragraph. >> >> The only way I found to render what I want is using a
, like this: >> >> "This is a paragraph that talks about something.

>> This is another paragraph." >> >> Is there an easier way to do this ? >> >> >> 2) In a Pier page, I have text and an image embebed. Suppose something >> like this: >> >> >> "Buceo en Madryn y Pen?nsula de Vald?s. >> +/LugaresDestino/Provincia - Chubut/Puerto Madryn/Foto - Buceo - Puerto >> Madryn+ >> >> Otras actividades, se puede realizar Mountain bike, trekking, sandboard, >> cabalgatas, paseos n?uticos, windsurf pueden ser comunes a otros sitios, >> pero pocas veces se unen a un escenario atractivo." >> >> In this case +/LugaresDestino/Provincia - Chubut/Puerto Madryn/Foto - >> Buceo - Puerto Madryn+ is a picture but the width of this picure is less >> than the area of the text. So, the text "Otras actividades, se puede......" >> estar to render at the right of the picture. Suppose I don't want this and >> want this text to start below the picture. how can I do this ? >> If I wasn't clear enough I can attach an screenshot. >> >> >> Thanks in advance, >> >> Mariano >> >> >> _______________________________________________ >> Magritte, Pier and Related Tools ... >> https://www.iam.unibe.ch/mailman/listinfo/smallwiki >> > > -- > www.tudorgirba.com > > "Problem solving efficiency grows with the abstractness level of problem > understanding." > > > > > _______________________________________________ > 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 Sun Jun 7 19:57:06 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Sun, 7 Jun 2009 14:57:06 -0300 Subject: automatically pier page detection Message-ID: Hi folks. I am creating a website where I have countries, states, places, cities and so on. I have several pages talking about that. And I want to put internal links everywhere they are called in a Pier page. Example. Suppose I have this piece of text in a Pier page: "I hope Brest to be a nice city. It is situated in France, far away from Paris." In my website I have another page called "France" and another called "Paris". So, I would like the text above to be: "I hope Brest to be a nice city. It is situated in *France*, far away from *Paris*." But I have a lot of pages and places. Is there a way this to be detected easier? I ask because in some wiki I saw this behaviour. Thanks in advance, Mariano -------------- next part -------------- An HTML attachment was scrubbed... URL: From renggli at gmail.com Sun Jun 7 20:22:24 2009 From: renggli at gmail.com (Lukas Renggli) Date: Sun, 7 Jun 2009 20:22:24 +0200 Subject: automatically pier page detection In-Reply-To: References: Message-ID: <67628d690906071122x47220644jd671c969db6891f6@mail.gmail.com> > But I have a lot of pages and places. Is there a way this to be detected > easier? I ask because in some wiki I saw this behaviour. It is not supported out-of-the-box, although it could be added to a customized parser. A problem might be that Pier organizes pages in tree and not in a flat namespace as wikis typically do. Lukas -- Lukas Renggli http://www.lukas-renggli.ch From damien.cassou at gmail.com Mon Jun 8 13:34:27 2009 From: damien.cassou at gmail.com (Damien Cassou) Date: Mon, 8 Jun 2009 13:34:27 +0200 Subject: Questions about text formatting In-Reply-To: References: Message-ID: <6ac749c10906080434g6ad5b4d1i5ec22bbb8c9031ed@mail.gmail.com> On Sun, Jun 7, 2009 at 7:18 PM, Tudor Girba wrote: > 1) there is no other way if you want to force a breakpoint Adding a blank line in-between should also do it: This is a paragraph that talks about something. This is another paragraph. > 2) you could put the picture in a div to force a new line >
+mypicture+
http://www.piercms.com/doc/faq#24549845 -- Damien Cassou http://damiencassou.seasidehosting.st "Lambdas are relegated to relative obscurity until Java makes them popular by not having them." James Iry From marianopeck at gmail.com Mon Jun 8 14:19:36 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Mon, 8 Jun 2009 11:19:36 -0100 Subject: Questions about text formatting In-Reply-To: <6ac749c10906080434g6ad5b4d1i5ec22bbb8c9031ed@mail.gmail.com> References: <6ac749c10906080434g6ad5b4d1i5ec22bbb8c9031ed@mail.gmail.com> Message-ID: On Mon, Jun 8, 2009 at 10:34 AM, Damien Cassou wrote: > On Sun, Jun 7, 2009 at 7:18 PM, Tudor Girba wrote: > > 1) there is no other way if you want to force a breakpoint > > Adding a blank line in-between should also do it: > > This is a paragraph that talks about something. > > This is another paragraph. > Yes thanks! I then noticed that. But, not always I want a black line, but this: "This is a paragraph that talks about something. This is another paragraph. " Having both ways is what I needed :) > > > 2) you could put the picture in a div to force a new line > >
+mypicture+
> > http://www.piercms.com/doc/faq#24549845 > this was just added or it was there before my question? If it was before....sorry > > -- > Damien Cassou > http://damiencassou.seasidehosting.st > > "Lambdas are relegated to relative obscurity until Java makes them > popular by not having them." James Iry > _______________________________________________ > 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 Jun 8 14:30:08 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Mon, 8 Jun 2009 11:30:08 -0100 Subject: Dependencies of Pier addons [was [Seaside] [ANN] Seaside 2.8.4] Message-ID: On Sun, Jun 7, 2009 at 5:44 PM, Lukas Renggli wrote: > > Ok but then I must know that Import/Export widget depends on an external > > package like XMLParser? I didn't know that till I debugg it. > > No, it is not the Import/Export widget that depends on an external package. > > It is the serialized file that you upload/import that depends on an > external package. > Ahh okok. Now I get it. I have an object of XMLDocument in my Pier kernel. I look the references of XMLDocument and seems to be used for "sitemap addon". I had this plugin installed. Now I wonder, is there a place where I can see the dependencies of a Pier addon? Thanks for the explanation, I am still newbie in this :) Mariano > > Lukas > > -- > Lukas Renggli > http://www.lukas-renggli.ch > _______________________________________________ > seaside mailing list > seaside at lists.squeakfoundation.org > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > -------------- next part -------------- An HTML attachment was scrubbed... URL: From renggli at gmail.com Mon Jun 8 15:17:25 2009 From: renggli at gmail.com (Lukas Renggli) Date: Mon, 8 Jun 2009 15:17:25 +0200 Subject: Dependencies of Pier addons [was [Seaside] [ANN] Seaside 2.8.4] In-Reply-To: References: Message-ID: <67628d690906080617l7171d31cib494995e2da08053@mail.gmail.com> > Ahh okok. Now I get it. I have an object of XMLDocument in my Pier kernel. I > look the references of XMLDocument and seems to be used for "sitemap addon". > I had this plugin installed. Now I wonder, is there a place where I can see > the dependencies of a Pier addon? No, not at the moment. Lukas -- Lukas Renggli http://www.lukas-renggli.ch From merlyn at stonehenge.com Mon Jun 8 16:16:07 2009 From: merlyn at stonehenge.com (Randal L. Schwartz) Date: Mon, 08 Jun 2009 07:16:07 -0700 Subject: Questions about text formatting In-Reply-To: (Mariano Martinez Peck's message of "Mon, 8 Jun 2009 11:19:36 -0100") References: <6ac749c10906080434g6ad5b4d1i5ec22bbb8c9031ed@mail.gmail.com> Message-ID: <86tz2qkdzs.fsf@blue.stonehenge.com> >>>>> "Mariano" == Mariano Martinez Peck writes: Mariano> "This is a paragraph that talks about something. Mariano> This is another paragraph. " But in English, those aren't paragraphs. So, I wouldn't know that's what you intended. The blank line (or at least an indent) serves to warn the reader that the topic is changing. A simple line-break doesn't do so. That's because line breaks also have to be inserted when the line reaches its limit. So, please, the reason you can't do what you want, is that the reader wouldn't know what you mean. Don't fight it. Use it as it was intended. -- 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 Jun 8 16:32:43 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Mon, 8 Jun 2009 13:32:43 -0100 Subject: Dependencies of Pier addons [was [Seaside] [ANN] Seaside 2.8.4] In-Reply-To: <67628d690906080617l7171d31cib494995e2da08053@mail.gmail.com> References: <67628d690906080617l7171d31cib494995e2da08053@mail.gmail.com> Message-ID: On Mon, Jun 8, 2009 at 12:17 PM, Lukas Renggli wrote: > > Ahh okok. Now I get it. I have an object of XMLDocument in my Pier > kernel. I > > look the references of XMLDocument and seems to be used for "sitemap > addon". > > I had this plugin installed. Now I wonder, is there a place where I can > see > > the dependencies of a Pier addon? > > No, not at the moment. Right now http://www.piercms.com/ seems to be down here. Anyway, I remember a section about pieradd ons. Perhaps that's a good place to put information about them. Is the user/pass to edit public? If so, I can add some information. 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 petton.nicolas at gmail.com Mon Jun 8 17:28:07 2009 From: petton.nicolas at gmail.com (Nicolas Petton) Date: Mon, 08 Jun 2009 17:28:07 +0200 Subject: XSS vulnerability in Pier-Blog Message-ID: <1244474887.4447.3.camel@kiwi> Hi, I just found that Pier-Blog seems to be very vulnerable to XSS attacks... Try to post the following in a comment: Cheers! Nico -------------- 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 Mon Jun 8 17:49:24 2009 From: renggli at gmail.com (Lukas Renggli) Date: Mon, 8 Jun 2009 17:49:24 +0200 Subject: XSS vulnerability in Pier-Blog In-Reply-To: <1244474887.4447.3.camel@kiwi> References: <1244474887.4447.3.camel@kiwi> Message-ID: <67628d690906080849o23fb3412tcbb417f814eac528@mail.gmail.com> Hi Nico, yeah, that's a known problem related to this issue http://code.google.com/p/pier/issues/detail?id=48 Fixing it using an explicit verbatim syntax would also resolve other encoding related issues in the environment and the blog could filter such markup. It is on the todo list for a long time ... if anybody wants to help, I would be glad. Lukas -- Lukas Renggli http://www.lukas-renggli.ch From damien.cassou at gmail.com Mon Jun 8 18:28:42 2009 From: damien.cassou at gmail.com (Damien Cassou) Date: Mon, 8 Jun 2009 18:28:42 +0200 Subject: Dependencies of Pier addons [was [Seaside] [ANN] Seaside 2.8.4] In-Reply-To: References: <67628d690906080617l7171d31cib494995e2da08053@mail.gmail.com> Message-ID: <6ac749c10906080928n4458d0e2m85927781287a724@mail.gmail.com> On Mon, Jun 8, 2009 at 4:32 PM, Mariano Martinez Peck wrote: > Anyway, I remember a section about pieradd ons. Perhaps that's a good place > to put information about them. Is the user/pass to edit public? If so, I can > add some information. It's not public. However, you can send me the text using the Pier syntax and I will add it to the corresponding page. -- Damien Cassou http://damiencassou.seasidehosting.st "Lambdas are relegated to relative obscurity until Java makes them popular by not having them." James Iry From marianopeck at gmail.com Mon Jun 8 21:45:27 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Mon, 8 Jun 2009 18:45:27 -0100 Subject: automatically pier page detection In-Reply-To: <67628d690906071122x47220644jd671c969db6891f6@mail.gmail.com> References: <67628d690906071122x47220644jd671c969db6891f6@mail.gmail.com> Message-ID: On Sun, Jun 7, 2009 at 5:22 PM, Lukas Renggli wrote: > > But I have a lot of pages and places. Is there a way this to be detected > > easier? I ask because in some wiki I saw this behaviour. > > It is not supported out-of-the-box, although it could be added to a > customized parser. A problem might be that Pier organizes pages in > tree and not in a flat namespace as wikis typically do. Ok. I think that right now I will do it manually, but using the "search" feature of Pier. I mean, I will go page per page and I will search for it and see the results :) 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 john.chludzinski at gmail.com Tue Jun 9 00:42:49 2009 From: john.chludzinski at gmail.com (John Chludzinski) Date: Mon, 8 Jun 2009 18:42:49 -0400 Subject: MAPictureDescription missing from Magritte??? In-Reply-To: <27a48dd60906051517q2cf88f49udb575db7942cd7e4@mail.gmail.com> References: <27a48dd60906051517q2cf88f49udb575db7942cd7e4@mail.gmail.com> Message-ID: <27a48dd60906081542h24279ad8j7f689d492aa9eeee@mail.gmail.com> Lukas, not quite certain what you meant by: "However, I doubt that it is possible to write it in a platform independent way ..."? The platform is the browser; so are you saying it would be browser specific? In what way? (The beginning of this thread was started on seaside at lists.squeakfoundation.org.) BTW, I made some mods to some classes to support pictures: MAFileUploadComponent subclass: #MMAPicFileUploadComponent instanceVariableNames: '' classVariableNames: '' poolDictionaries: '' category: 'MMAApp'! !MMAPicFileUploadComponent methodsFor: 'rendering' stamp: 'jtc 6/8/2009 17:44'! renderEditorOn: html self value isNil ifFalse: [ html table: [ html tableRow: [ html image id: 'XXX'; document: self value contents mimeType: self value mimetype]. html tableRow: []]]. self isMultipart ifTrue: [ self renderUploadOn: html ] ifFalse: [ self renderRemoveOn: html ]! ! <<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>> MAFileDescription subclass: #MMAImageFileDescription instanceVariableNames: '' classVariableNames: '' poolDictionaries: '' category: 'MMAApp'! "-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- "! MMAImageFileDescription class instanceVariableNames: ''! !MMAImageFileDescription class methodsFor: 'as yet unclassified' stamp: 'jtc 6/8/2009 16:29'! defaultReportColumnClasses ^ Array with: MMADescribedImageColumn! ! MADescribedColumn subclass: #MMADescribedImageColumn instanceVariableNames: '' classVariableNames: '' poolDictionaries: '' category: 'MMAApp'! !MMADescribedImageColumn methodsFor: 'as yet unclassified' stamp: 'jtc 6/8/2009 18:21'! renderCellContent: anObject on: html | myValue | myValue _ (self valueFor: anObject). "myValue contents class asString displayAt: 0 at 40." (myValue isNil or: [myValue contents isEmpty]) ifTrue: [ ^html render: (self formatter value: myValue)]. html image id: 'XXX'; document: myValue contents mimeType: myValue mimetype ! ! <<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>> ---John On Fri, Jun 5, 2009 at 6:17 PM, John Chludzinski wrote: > > After searching about I've come to the conclusion that Magritte is missing MAPictureDescription + MAPictureComponent classes.? I would like to have a passport ilk pictures appear in Magritte generated reports and editors for users of a system by defining a #descriptionPicture class-side method for a system-user class.? Not that easy! > > I assume I'll need to add these classes (MAPictureDescription + MAPictureComponent) to Magritte?? ----John From renggli at gmail.com Tue Jun 9 09:11:56 2009 From: renggli at gmail.com (Lukas Renggli) Date: Tue, 9 Jun 2009 09:11:56 +0200 Subject: [Seaside] Re: MAPictureDescription missing from Magritte??? In-Reply-To: <27a48dd60906081542h24279ad8j7f689d492aa9eeee@mail.gmail.com> References: <27a48dd60906051517q2cf88f49udb575db7942cd7e4@mail.gmail.com> <27a48dd60906081542h24279ad8j7f689d492aa9eeee@mail.gmail.com> Message-ID: <67628d690906090011s197dfa47nec3ee61f0e6d5338@mail.gmail.com> > !MMAImageFileDescription class methodsFor: 'as yet unclassified' > stamp: 'jtc 6/8/2009 16:29'! > defaultReportColumnClasses > > ^ Array with: MMADescribedImageColumn! ! That subclass is not really necessary, because you can reconfigure any description instance to use your customized view: MAFileDescription new reportColumnClass: MMADescribedImageColumn; componentClass: MADescribedImageComponent; .... > html image > id: 'XXX'; > document: myValue contents mimeType: myValue mimetype Something like this used to be part of Magritte. However, your table or form will "explode" if you upload a typical 12 MB picture ;-) I guess to make this really useable you need some code to resize the picture accordingly. And this is unfortunately not possible on different Smalltalk dialects in a platform independent way. Lukas -- Lukas Renggli http://www.lukas-renggli.ch From marianopeck at gmail.com Tue Jun 9 15:03:35 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Tue, 9 Jun 2009 12:03:35 -0100 Subject: Dependencies of Pier addons [was [Seaside] [ANN] Seaside 2.8.4] In-Reply-To: <6ac749c10906080928n4458d0e2m85927781287a724@mail.gmail.com> References: <67628d690906080617l7171d31cib494995e2da08053@mail.gmail.com> <6ac749c10906080928n4458d0e2m85927781287a724@mail.gmail.com> Message-ID: On Mon, Jun 8, 2009 at 3:28 PM, Damien Cassou wrote: > On Mon, Jun 8, 2009 at 4:32 PM, Mariano Martinez > Peck wrote: > > Anyway, I remember a section about pieradd ons. Perhaps that's a good > place > > to put information about them. Is the user/pass to edit public? If so, I > can > > add some information. > > It's not public. However, you can send me the text using the Pier > syntax and I will add it to the corresponding page. > Right now I just want to add here: http://www.piercms.com/doc/add-ons one more title about sitemap plugin. It can be something like this: !!Sitemap For this add-on you must have XMLSupport project (XML-Parser package) installed. You can find it here: MCHttpRepository location: 'http://www.squeaksource.com/XMLSupport' user: '' password: '' Cheers, Mariano > > > -- > Damien Cassou > http://damiencassou.seasidehosting.st > > "Lambdas are relegated to relative obscurity until Java makes them > popular by not having them." James Iry > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -------------- next part -------------- An HTML attachment was scrubbed... URL: From john.chludzinski at gmail.com Wed Jun 10 06:40:13 2009 From: john.chludzinski at gmail.com (John Chludzinski) Date: Wed, 10 Jun 2009 00:40:13 -0400 Subject: Clickable pictures in reports? Message-ID: <27a48dd60906092140k2586b6bbkc68eae2a8f68c6e@mail.gmail.com> To make pics clickable I first subclassed MAReport adding an instance variable to maintain a reference to the component in which the report is created: MAReport subclass: #MMAReport instanceVariableNames: 'component' classVariableNames: '' poolDictionaries: '' category: 'MMAApp'! !MMAReport methodsFor: 'accessing' stamp: 'jtc 6/9/2009 18:15'! component ^ component! ! !MMAReport methodsFor: 'accessing' stamp: 'jtc 6/9/2009 18:16'! component: c component _ c! ! "-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- "! MMAReport class instanceVariableNames: ''! !MMAReport class methodsFor: 'instance creation' stamp: 'jtc 6/9/2009 18:16'! rows: aCollection description: aDescription component: aComponent | report | report := self rows: aCollection. aDescription asContainer do: [ :each | report addColumnDescription: each ]. report component: aComponent. ^ report! ! ------------------------------------------------------------------------------------------------------------------ I next modified #renderCellContent:on: in class MMADescribedImageColumn (my #reportColumnClass: class). !MMADescribedImageColumn methodsFor: 'rendering' stamp: 'jtc 6/9/2009 18:16'! renderCellContent: anObject on: html | myValue ibt | myValue _ self valueFor: anObject. (myValue isNil or: [myValue contents isEmpty]) ifTrue: [ ^html render: (self formatter value: myValue)]. html form: [ ibt _ html imageButton. ibt url: (ibt canvas context urlForDocument: myValue contents mimeType: myValue mimetype fileName: nil). ibt callback: callback: [ self report component editBuddy: anObject ]. "This is where the report's reference to the component (that created it) is used." ]. ! ! This works but I was considering subclassing MMADescribedImageColumn from MACommandColumn instead of MADescribedColumn. Would this have been a better approach? ---John From damien.cassou at gmail.com Wed Jun 10 09:11:26 2009 From: damien.cassou at gmail.com (Damien Cassou) Date: Wed, 10 Jun 2009 09:11:26 +0200 Subject: Dependencies of Pier addons [was [Seaside] [ANN] Seaside 2.8.4] In-Reply-To: References: <67628d690906080617l7171d31cib494995e2da08053@mail.gmail.com> <6ac749c10906080928n4458d0e2m85927781287a724@mail.gmail.com> Message-ID: <6ac749c10906100011p17c411ben941c2b46352844ac@mail.gmail.com> On Tue, Jun 9, 2009 at 3:03 PM, Mariano Martinez Peck wrote: > Right now I just want to add here: http://www.piercms.com/doc/add-ons > > one more title about sitemap plugin. It can be something like this: http://www.piercms.com/doc/add-ons#97334349 Could you please also give me an explanation on what it is used for and how to use it? -- Damien Cassou http://damiencassou.seasidehosting.st "Lambdas are relegated to relative obscurity until Java makes them popular by not having them." James Iry From estebanlm at gmail.com Wed Jun 10 15:15:15 2009 From: estebanlm at gmail.com (Esteban Lorenzano) Date: Wed, 10 Jun 2009 10:15:15 -0300 Subject: Clickable pictures in reports? References: <27a48dd60906092140k2586b6bbkc68eae2a8f68c6e@mail.gmail.com> Message-ID: I have a child of MADescribedColumn for perform that task, and works well... and seems to be a less intrusive approach, IMHO. Cheers, Esteban On 2009-06-10 01:40:13 -0300, John Chludzinski said: > To make pics clickable I first subclassed MAReport adding an instance > variable to maintain a reference to the component in which the report > is created: > > MAReport subclass: #MMAReport > instanceVariableNames: 'component' > classVariableNames: '' > poolDictionaries: '' > category: 'MMAApp'! > > !MMAReport methodsFor: 'accessing' stamp: 'jtc 6/9/2009 18 From marianopeck at gmail.com Wed Jun 10 15:16:53 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Wed, 10 Jun 2009 12:16:53 -0100 Subject: Dependencies of Pier addons [was [Seaside] [ANN] Seaside 2.8.4] In-Reply-To: <6ac749c10906100011p17c411ben941c2b46352844ac@mail.gmail.com> References: <67628d690906080617l7171d31cib494995e2da08053@mail.gmail.com> <6ac749c10906080928n4458d0e2m85927781287a724@mail.gmail.com> <6ac749c10906100011p17c411ben941c2b46352844ac@mail.gmail.com> Message-ID: On Wed, Jun 10, 2009 at 6:11 AM, Damien Cassou wrote: > On Tue, Jun 9, 2009 at 3:03 PM, Mariano Martinez > Peck wrote: > > Right now I just want to add here: http://www.piercms.com/doc/add-ons > > > > one more title about sitemap plugin. It can be something like this: > > http://www.piercms.com/doc/add-ons#97334349 > > Could you please also give me an explanation on what it is used for > and how to use it? I am not the author of the plugin but what I understand is that it's a plugin that autogenerates the sitemap.xml. This file has metadata that are used by search engines. So, having a sitemap.xml would probably help the search engines to find your site. However, Lukas said that 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). To use it, just add "sitemap" somewhere (at least this is what I did). Cheers, Mariano > > > -- > Damien Cassou > http://damiencassou.seasidehosting.st > > "Lambdas are relegated to relative obscurity until Java makes them > popular by not having them." James Iry > _______________________________________________ > 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 Wed Jun 10 15:45:31 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Wed, 10 Jun 2009 12:45:31 -0100 Subject: Problem with gallery addon Message-ID: Hi folks! I am trying to see if gallery addon is what I need :) So, I add one to my Pier site. Then I use the "Import Pictures" command and select a zip I have with pictures. After saving the upload I receive the error: "Import pictures: Only zip files are accepted" But my file IS a zip. Any ideas? Thanks Mariano -------------- next part -------------- An HTML attachment was scrubbed... URL: From damien.cassou at gmail.com Wed Jun 10 17:38:32 2009 From: damien.cassou at gmail.com (Damien Cassou) Date: Wed, 10 Jun 2009 17:38:32 +0200 Subject: Problem with gallery addon In-Reply-To: References: Message-ID: <6ac749c10906100838i2b96ff22qe94f3d195fadecc9@mail.gmail.com> On Wed, Jun 10, 2009 at 3:45 PM, Mariano Martinez Peck wrote: > So, I add one to my Pier site. Then I use the "Import Pictures" command and > select a zip I have with pictures. After saving the upload I receive the > error: "Import pictures: Only zip files are accepted" It seems your file is not recognized by the zip algorithm of Squeak. I don't know why, you will have to debug that. -- Damien Cassou http://damiencassou.seasidehosting.st "Lambdas are relegated to relative obscurity until Java makes them popular by not having them." James Iry From marianopeck at gmail.com Wed Jun 10 17:42:17 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Wed, 10 Jun 2009 14:42:17 -0100 Subject: Problem with gallery addon In-Reply-To: <6ac749c10906100838i2b96ff22qe94f3d195fadecc9@mail.gmail.com> References: <6ac749c10906100838i2b96ff22qe94f3d195fadecc9@mail.gmail.com> Message-ID: On Wed, Jun 10, 2009 at 2:38 PM, Damien Cassou wrote: > On Wed, Jun 10, 2009 at 3:45 PM, Mariano Martinez > Peck wrote: > > So, I add one to my Pier site. Then I use the "Import Pictures" command > and > > select a zip I have with pictures. After saving the upload I receive the > > error: "Import pictures: Only zip files are accepted" > > It seems your file is not recognized by the zip algorithm of Squeak. I > don't know why, you will have to debug that. I tough the same and as I were in Linux, I tried to zip it in Windows, but I got the same results. I can also debug it and see what the problem is. I just ask because perhaps this was a known problem or someone has already faced it. > > > -- > Damien Cassou > http://damiencassou.seasidehosting.st > > "Lambdas are relegated to relative obscurity until Java makes them > popular by not having them." James Iry > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -------------- next part -------------- An HTML attachment was scrubbed... URL: From damien.cassou at gmail.com Wed Jun 10 17:46:17 2009 From: damien.cassou at gmail.com (Damien Cassou) Date: Wed, 10 Jun 2009 17:46:17 +0200 Subject: Problem with gallery addon In-Reply-To: References: <6ac749c10906100838i2b96ff22qe94f3d195fadecc9@mail.gmail.com> Message-ID: <6ac749c10906100846q677197c9q8a4abfe7fe73d557@mail.gmail.com> On Wed, Jun 10, 2009 at 5:42 PM, Mariano Martinez Peck wrote: > I can also debug it and see what the problem is. I just ask because perhaps > this was a known problem or someone has already faced it. I tried it and it worked for me at that time. Please tell me if there is something wrong in my code. -- Damien Cassou http://damiencassou.seasidehosting.st "Lambdas are relegated to relative obscurity until Java makes them popular by not having them." James Iry From marianopeck at gmail.com Wed Jun 10 20:01:45 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Wed, 10 Jun 2009 17:01:45 -0100 Subject: Problem with gallery addon In-Reply-To: <6ac749c10906100846q677197c9q8a4abfe7fe73d557@mail.gmail.com> References: <6ac749c10906100838i2b96ff22qe94f3d195fadecc9@mail.gmail.com> <6ac749c10906100846q677197c9q8a4abfe7fe73d557@mail.gmail.com> Message-ID: Today, I test it again in another windows machine and I have another problem. When saving the uploaded zip file, I have the following error: "Error: Fotos/foto_flor.jpg is an invalid child in Galeria." Suppose my file is called "fotos.zip" and I have a photo inside called 'foto_flor.jpg' After debugging for a while, this is the problem. ZipArchive generates a member with fileName 'fotos/foto_flor.jpg'. Then when trying to addPictura a validation is done: PRPath>>isValidName and when it does: aString allSatisfy: [ :char | self validCharacters includes: char ] In this case, aString is 'fotos/foto_flor.jpg' and '/' is not in validCharacters. So, what can I do? 1) add '/' to self validCharacters ? I think this has a lot of impact in other places 2) in PGImportArchiveCommand>>addPicture: archiveMember remove the '/' when creating the picture (PGPicture) object what should I do? any other idea? Thanks! Mariano On Wed, Jun 10, 2009 at 2:46 PM, Damien Cassou wrote: > On Wed, Jun 10, 2009 at 5:42 PM, Mariano Martinez > Peck wrote: > > I can also debug it and see what the problem is. I just ask because > perhaps > > this was a known problem or someone has already faced it. > > I tried it and it worked for me at that time. Please tell me if there > is something wrong in my code. > > -- > Damien Cassou > http://damiencassou.seasidehosting.st > > "Lambdas are relegated to relative obscurity until Java makes them > popular by not having them." James Iry > _______________________________________________ > 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 Jun 11 02:05:30 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Wed, 10 Jun 2009 21:05:30 -0300 Subject: Problem with gallery addon In-Reply-To: <6ac749c10906100838i2b96ff22qe94f3d195fadecc9@mail.gmail.com> References: <6ac749c10906100838i2b96ff22qe94f3d195fadecc9@mail.gmail.com> Message-ID: On Wed, Jun 10, 2009 at 12:38 PM, Damien Cassou wrote: > On Wed, Jun 10, 2009 at 3:45 PM, Mariano Martinez > Peck wrote: > > So, I add one to my Pier site. Then I use the "Import Pictures" command > and > > select a zip I have with pictures. After saving the upload I receive the > > error: "Import pictures: Only zip files are accepted" > > It seems your file is not recognized by the zip algorithm of Squeak. I > don't know why, you will have to debug that. > After debugging I found this problem: when I upload a zip file in linux, the mimetype is "application/zip". And subtype is: subtype "Answer the second part of the mime-type." ^ self mimetype copyAfter: $/ So PGImportArchiveCommand>>doValidate when it does (self file subtype = 'zip') this is true :) But, in Linux, the mimetype is "x-zip-compressed"....so subtype is 'x-zip-compressed' and (self file subtype = 'zip') gives false.... Now, does someone has a better idea than doing this piece of hack: #PGImportArchiveCommand doValidate super doValidate. (self file subtype = 'zip') ifFalse: [ (self file subtype includesSubString: 'zip') ifFalse:[MAConditionError description: self description signal: 'Only zip files are accepted'] ]. However, after validating, when I press "save" I have another problem: FileDoesNotExistException: '/home/mariano/squeak/imagenes/Seaside-2.8.4.app/Contents/Resources/files/46/rfxaf2dt4t7nyrzmg2cam6i1yknaji/pagina/PN Los Alerces.jpg' The thing is that the folder "pagina" (the zip uncompressed) was never created. There can be a problem when trying to uncompress ? where is this done? so that I can debug.... Thanks for the help :( Mariano > > -- > Damien Cassou > http://damiencassou.seasidehosting.st > > "Lambdas are relegated to relative obscurity until Java makes them > popular by not having them." James Iry > _______________________________________________ > 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 Jun 11 06:13:26 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Thu, 11 Jun 2009 01:13:26 -0300 Subject: Google Maps for Pier? Message-ID: James: sorry for cc'ing you, I don't know if you are in this mailing list. I need to integrate google maps in my webapp and I found VERY useful what you did here: http://seaside.gemstone.com/ss/GoogleMaps A really excellent job. Actually what I need is exactly the example "Interacting With the Map". Now, the question is, do you have in mind to do a Pier component for this ? This would be greate! On the other hand, I saw the GoogleMaps addon for Pier but it is quite limited for what I need. That addon is only for static maps. I need the final user be able to zoom in, out, move, change to road to satellite, etc... Thanks for the help! Mariano -------------- next part -------------- An HTML attachment was scrubbed... URL: From damien.cassou at gmail.com Thu Jun 11 09:25:42 2009 From: damien.cassou at gmail.com (Damien Cassou) Date: Thu, 11 Jun 2009 09:25:42 +0200 Subject: Problem with gallery addon In-Reply-To: References: <6ac749c10906100838i2b96ff22qe94f3d195fadecc9@mail.gmail.com> <6ac749c10906100846q677197c9q8a4abfe7fe73d557@mail.gmail.com> Message-ID: <6ac749c10906110025u3107f0a8sa0feb7a5116c66ad@mail.gmail.com> On Wed, Jun 10, 2009 at 8:01 PM, Mariano Martinez Peck wrote: > 2) in PGImportArchiveCommand>>addPicture: archiveMember > remove the? '/' when creating the picture (PGPicture) object In that case you will have problems if there are multiple identically named files in the zip. But that should be ok for most cases. -- Damien Cassou http://damiencassou.seasidehosting.st "Lambdas are relegated to relative obscurity until Java makes them popular by not having them." James Iry From damien.cassou at gmail.com Thu Jun 11 09:33:40 2009 From: damien.cassou at gmail.com (Damien Cassou) Date: Thu, 11 Jun 2009 09:33:40 +0200 Subject: Problem with gallery addon In-Reply-To: References: <6ac749c10906100838i2b96ff22qe94f3d195fadecc9@mail.gmail.com> Message-ID: <6ac749c10906110033i5c4a3034p5752f7911d188574@mail.gmail.com> On Thu, Jun 11, 2009 at 2:05 AM, Mariano Martinez Peck wrote: > But, in Linux, the mimetype is "x-zip-compressed"....so subtype is > 'x-zip-compressed' I think that's a bug in Pharo because on command line I get application/zip. -- Damien Cassou http://damiencassou.seasidehosting.st "Lambdas are relegated to relative obscurity until Java makes them popular by not having them." James Iry From marianopeck at gmail.com Thu Jun 11 15:14:14 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Thu, 11 Jun 2009 12:14:14 -0100 Subject: Problem with gallery addon In-Reply-To: <6ac749c10906110025u3107f0a8sa0feb7a5116c66ad@mail.gmail.com> References: <6ac749c10906100838i2b96ff22qe94f3d195fadecc9@mail.gmail.com> <6ac749c10906100846q677197c9q8a4abfe7fe73d557@mail.gmail.com> <6ac749c10906110025u3107f0a8sa0feb7a5116c66ad@mail.gmail.com> Message-ID: On Thu, Jun 11, 2009 at 6:25 AM, Damien Cassou wrote: > On Wed, Jun 10, 2009 at 8:01 PM, Mariano Martinez > Peck wrote: > > 2) in PGImportArchiveCommand>>addPicture: archiveMember > > remove the '/' when creating the picture (PGPicture) object > > In that case you will have problems if there are multiple identically > named files in the zip. But that should be ok for most cases. > Yes, that's true. But you even can't do that in windows :) I mean, you cannot have two identically named file in a directory. > > -- > Damien Cassou > http://damiencassou.seasidehosting.st > > "Lambdas are relegated to relative obscurity until Java makes them > popular by not having them." James Iry > > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -------------- next part -------------- An HTML attachment was scrubbed... URL: From damien.cassou at gmail.com Thu Jun 11 15:34:20 2009 From: damien.cassou at gmail.com (Damien Cassou) Date: Thu, 11 Jun 2009 15:34:20 +0200 Subject: Problem with gallery addon In-Reply-To: References: <6ac749c10906100838i2b96ff22qe94f3d195fadecc9@mail.gmail.com> <6ac749c10906100846q677197c9q8a4abfe7fe73d557@mail.gmail.com> <6ac749c10906110025u3107f0a8sa0feb7a5116c66ad@mail.gmail.com> Message-ID: <6ac749c10906110634y90c5a22yf62de3ff8634f32@mail.gmail.com> On Thu, Jun 11, 2009 at 3:14 PM, Mariano Martinez Peck wrote: > Yes, that's true. But you even can't do that in windows :) I mean, you > cannot have two identically named file in a directory. No, but you can have identically named files in a zip if they are in different folders of the zip file. If you just ignore the folders, you may have conflicts. -- Damien Cassou http://damiencassou.seasidehosting.st "Lambdas are relegated to relative obscurity until Java makes them popular by not having them." James Iry From marianopeck at gmail.com Thu Jun 11 15:40:04 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Thu, 11 Jun 2009 12:40:04 -0100 Subject: Problem with gallery addon In-Reply-To: <6ac749c10906110634y90c5a22yf62de3ff8634f32@mail.gmail.com> References: <6ac749c10906100838i2b96ff22qe94f3d195fadecc9@mail.gmail.com> <6ac749c10906100846q677197c9q8a4abfe7fe73d557@mail.gmail.com> <6ac749c10906110025u3107f0a8sa0feb7a5116c66ad@mail.gmail.com> <6ac749c10906110634y90c5a22yf62de3ff8634f32@mail.gmail.com> Message-ID: On Thu, Jun 11, 2009 at 12:34 PM, Damien Cassou wrote: > On Thu, Jun 11, 2009 at 3:14 PM, Mariano Martinez > Peck wrote: > > Yes, that's true. But you even can't do that in windows :) I mean, you > > cannot have two identically named file in a directory. > > No, but you can have identically named files in a zip if they are in > different folders of the zip file. If you just ignore the folders, you > may have conflicts. > Ups...That's true. You are right. Anyway, do you know which is the use of the fileName in the picture? Because perhaps having two objects with the same name is not a problem. Cheers, Mariano > > -- > Damien Cassou > http://damiencassou.seasidehosting.st > > "Lambdas are relegated to relative obscurity until Java makes them > popular by not having them." James Iry > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -------------- next part -------------- An HTML attachment was scrubbed... URL: From damien.cassou at gmail.com Thu Jun 11 15:47:04 2009 From: damien.cassou at gmail.com (Damien Cassou) Date: Thu, 11 Jun 2009 15:47:04 +0200 Subject: Problem with gallery addon In-Reply-To: References: <6ac749c10906100838i2b96ff22qe94f3d195fadecc9@mail.gmail.com> <6ac749c10906100846q677197c9q8a4abfe7fe73d557@mail.gmail.com> <6ac749c10906110025u3107f0a8sa0feb7a5116c66ad@mail.gmail.com> <6ac749c10906110634y90c5a22yf62de3ff8634f32@mail.gmail.com> Message-ID: <6ac749c10906110647ge6ac00dx75d0e98ea5ffe29e@mail.gmail.com> On Thu, Jun 11, 2009 at 3:40 PM, Mariano Martinez Peck wrote: > Ups...That's true. You are right. Anyway, do you know which is the use of > the fileName in the picture? Because perhaps having two objects with the > same name is not a problem. Not sure I understand your question. Each picture in the zip file will translate into a Pier structure. IIRC, the name of the file is the same as the name of the structure. Having two structures at the same level with the same name will certainly result in a conflict. -- Damien Cassou http://damiencassou.seasidehosting.st "Lambdas are relegated to relative obscurity until Java makes them popular by not having them." James Iry From norbert at hartl.name Thu Jun 11 21:26:16 2009 From: norbert at hartl.name (Norbert Hartl) Date: Thu, 11 Jun 2009 21:26:16 +0200 Subject: Example pier installation Message-ID: <1244748376.25644.53.camel@cineflux> Hi, now I had some time to set up my pier installation. You can add me to the example installations on piercms.com The url is http://selfish.org/ all the best, Norbert From renggli at gmail.com Thu Jun 11 21:32:35 2009 From: renggli at gmail.com (Lukas Renggli) Date: Thu, 11 Jun 2009 21:32:35 +0200 Subject: Example pier installation In-Reply-To: <1244748376.25644.53.camel@cineflux> References: <1244748376.25644.53.camel@cineflux> Message-ID: <67628d690906111232s24ef0faeh3a1237579d8a8883@mail.gmail.com> Cool, thanks for letting us know. I added the site to the list. Cheers, Lukas On Thu, Jun 11, 2009 at 9:26 PM, Norbert Hartl wrote: > Hi, > > now I had some time to set up my pier installation. You > can add me to the example installations on piercms.com > > The url is > > http://selfish.org/ > > all the best, > > Norbert > > _______________________________________________ > 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 Thu Jun 11 21:45:40 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Thu, 11 Jun 2009 18:45:40 -0100 Subject: Example pier installation In-Reply-To: <67628d690906111232s24ef0faeh3a1237579d8a8883@mail.gmail.com> References: <1244748376.25644.53.camel@cineflux> <67628d690906111232s24ef0faeh3a1237579d8a8883@mail.gmail.com> Message-ID: Nice posts man. I think the information you put here: http://selfish.org/blog/pier+surgery+1?_s=r3JqSFaMqrtMjwIr&_k=t3w1QwhG&_n&35 should be put into the Pier website. Cheers, Mariano On Thu, Jun 11, 2009 at 6:32 PM, Lukas Renggli wrote: > Cool, thanks for letting us know. I added the site to the list. > > Cheers, > Lukas > > On Thu, Jun 11, 2009 at 9:26 PM, Norbert Hartl wrote: > > Hi, > > > > now I had some time to set up my pier installation. You > > can add me to the example installations on piercms.com > > > > The url is > > > > http://selfish.org/ > > > > all the best, > > > > Norbert > > > > _______________________________________________ > > 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 norbert at hartl.name Thu Jun 11 21:55:49 2009 From: norbert at hartl.name (Norbert Hartl) Date: Thu, 11 Jun 2009 21:55:49 +0200 Subject: Example pier installation In-Reply-To: References: <1244748376.25644.53.camel@cineflux> <67628d690906111232s24ef0faeh3a1237579d8a8883@mail.gmail.com> Message-ID: <1244750150.25644.60.camel@cineflux> On Thu, 2009-06-11 at 18:45 -0100, Mariano Martinez Peck wrote: > Nice posts man. I think the information you put here: > http://selfish.org/blog/pier+surgery > +1?_s=r3JqSFaMqrtMjwIr&_k=t3w1QwhG&_n&35 > > should be put into the Pier website. > Thanks very much! I'm planning to do more of these. For me it is kind of a documentation to bring this (http://whooka.com) from my current approach to be based on pier. Great you like it, Norbert > > On Thu, Jun 11, 2009 at 6:32 PM, Lukas Renggli > wrote: > Cool, thanks for letting us know. I added the site to the > list. > > Cheers, > Lukas > > > On Thu, Jun 11, 2009 at 9:26 PM, Norbert > Hartl wrote: > > Hi, > > > > now I had some time to set up my pier installation. You > > can add me to the example installations on piercms.com > > > > The url is > > > > http://selfish.org/ > > > > all the best, > > > > Norbert > > > > _______________________________________________ > > 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 From marianopeck at gmail.com Thu Jun 11 22:01:38 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Thu, 11 Jun 2009 19:01:38 -0100 Subject: Example pier installation In-Reply-To: <1244750150.25644.60.camel@cineflux> References: <1244748376.25644.53.camel@cineflux> <67628d690906111232s24ef0faeh3a1237579d8a8883@mail.gmail.com> <1244750150.25644.60.camel@cineflux> Message-ID: On Thu, Jun 11, 2009 at 6:55 PM, Norbert Hartl wrote: > On Thu, 2009-06-11 at 18:45 -0100, Mariano Martinez Peck wrote: > > Nice posts man. I think the information you put here: > > http://selfish.org/blog/pier+surgery > > +1?_s=r3JqSFaMqrtMjwIr&_k=t3w1QwhG&_n&35 > > > > should be put into the Pier website. > > > Thanks very much! I'm planning to do more of these. Added to my rss google reader :) > For me it > is kind of a documentation to bring this (http://whooka.com) > from my current approach to be based on pier. > Nice site although I didn't understand a single word hahahah > Great you like it, > > Norbert > > > > > On Thu, Jun 11, 2009 at 6:32 PM, Lukas Renggli > > wrote: > > Cool, thanks for letting us know. I added the site to the > > list. > > > > Cheers, > > Lukas > > > > > > On Thu, Jun 11, 2009 at 9:26 PM, Norbert > > Hartl wrote: > > > Hi, > > > > > > now I had some time to set up my pier installation. You > > > can add me to the example installations on piercms.com > > > > > > The url is > > > > > > http://selfish.org/ > > > > > > all the best, > > > > > > Norbert > > > > > > _______________________________________________ > > > 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Andreas.Leidig at gmx.net Fri Jun 12 01:16:43 2009 From: Andreas.Leidig at gmx.net (Andreas Leidig) Date: Fri, 12 Jun 2009 01:16:43 +0200 Subject: SpielverderberCrypto: loading problem Message-ID: <4A31905B.8090308@gmx.net> Dear list, I have a problem with Spielverderber. I tried to load SpielverderberCrypto-pmm.1 in Squeak 3.10.6 Pier (current) and I receive: This package depends on the following classes: ASN1Constants You must resolve these dependencies before you will be able to load these definitions: ASN1BitString ASN1BitString classSide>>fromAsnDer: [...] I cannot find matching sources. Can someone pls. give me a hint? Cheers, Andreas From Andreas.Leidig at gmx.net Fri Jun 12 01:16:50 2009 From: Andreas.Leidig at gmx.net (Andreas Leidig) Date: Fri, 12 Jun 2009 01:16:50 +0200 Subject: Spielverderber: loading problem Message-ID: <4A319062.9020608@gmx.net> Dear list, I have a problem with Spielverderber. I tried to load Spielverderber-pmm.53 in Squeak 3.10.6 Pier (current) and I receive: This package depends on the following classes: PRPierLibrary PRPierMain MADistribution You must resolve these dependencies before you will be able to load these definitions: SVDistribution SVDistribution classSi [...] I cannot find matching sources. Can someone pls. give me a hint? Cheers, Andreas From damien.cassou at gmail.com Fri Jun 12 09:03:48 2009 From: damien.cassou at gmail.com (Damien Cassou) Date: Fri, 12 Jun 2009 09:03:48 +0200 Subject: [Fix] [Blog] Issue 97: the root structure should have a link to the RSS feed if any Message-ID: <6ac749c10906120003l66f5cebcr329d2f12973173e@mail.gmail.com> http://code.google.com/p/pier/issues/detail?id=97 -- Damien Cassou http://damiencassou.seasidehosting.st "Lambdas are relegated to relative obscurity until Java makes them popular by not having them." James Iry From philippe.marschall at gmail.com Fri Jun 12 09:43:44 2009 From: philippe.marschall at gmail.com (Philippe Marschall) Date: Fri, 12 Jun 2009 09:43:44 +0200 Subject: SpielverderberCrypto: loading problem In-Reply-To: <4A31905B.8090308@gmx.net> References: <4A31905B.8090308@gmx.net> Message-ID: <66666f210906120043v6c07b565l62b1993cf1d80eed@mail.gmail.com> 2009/6/12 Andreas Leidig : > Dear list, > > I have a problem with Spielverderber. > > I tried to load > > ? ? ? ?SpielverderberCrypto-pmm.1 > in > > ? ? ? ?Squeak 3.10.6 > ? ? ? ?Pier (current) > > and I receive: > > ? ? ? ?This package depends on the following classes: > ? ? ? ? ?ASN1Constants > ? ? ? ?You must resolve these dependencies before you will be able to > ? ? ? ?load these definitions: > ? ? ? ? ?ASN1BitString > ? ? ? ? ?ASN1BitString classSide>>fromAsnDer: > ? ? ? ?[...] > > I cannot find matching sources. > > Can someone pls. give me a hint? You need to load the Cryptography package first. Spielverderber was written for an old version of Pier so you'll probably have to do some updating. Cheers Philippe From philippe.marschall at gmail.com Fri Jun 12 09:44:28 2009 From: philippe.marschall at gmail.com (Philippe Marschall) Date: Fri, 12 Jun 2009 09:44:28 +0200 Subject: Spielverderber: loading problem In-Reply-To: <4A319062.9020608@gmx.net> References: <4A319062.9020608@gmx.net> Message-ID: <66666f210906120044r349d9d4evc88a6268b33ef5b0@mail.gmail.com> 2009/6/12 Andreas Leidig : > Dear list, > > I have a problem with Spielverderber. > > I tried to load > > ? ? ? ?Spielverderber-pmm.53 > in > > ? ? ? ?Squeak 3.10.6 > ? ? ? ?Pier (current) > > and I receive: > > ? ? ? ?This package depends on the following classes: > ? ? ? ? ?PRPierLibrary > ? ? ? ? ?PRPierMain > ? ? ? ? ?MADistribution > ? ? ? ?You must resolve these dependencies before you will be able to ? ? ? ? ? ? ? ? ?load > these definitions: > ? ? ? ? ?SVDistribution > ? ? ? ? ?SVDistribution classSi > ? ? ? ?[...] > > I cannot find matching sources. > > Can someone pls. give me a hint? Spielverderber was written for an old version of Pier so the code needs to be ported. Cheers Philippe From Andreas.Leidig at gmx.net Fri Jun 12 13:53:13 2009 From: Andreas.Leidig at gmx.net (Andreas Leidig) Date: Fri, 12 Jun 2009 13:53:13 +0200 Subject: SpielverderberCrypto: loading problem In-Reply-To: <66666f210906120043v6c07b565l62b1993cf1d80eed@mail.gmail.com> References: <4A31905B.8090308@gmx.net> <66666f210906120043v6c07b565l62b1993cf1d80eed@mail.gmail.com> Message-ID: <4A3241A9.1010208@gmx.net> Dear Philippe, thank you for your quick answer. > You need to load the Cryptography package first. Spielverderber was > written for an old version of Pier so you'll probably have to do some > updating. This could explain it's complaints about missing classes. THX The cryptography package does not load correctly, because it is missing ASN1 definitions. I cannot find these either. Can you tell me s/th about the state of Spielverderber? Why did the development stop? Is there a (maybe commercial) successor or a more successful competitor? Pier's built-in access management is not the most intuitive I've seen so far. I do not think that it is adequate for the management of bigger user groups. Also, I am looking for some features I could not find there yet. What do you think? I have seen that there is an instance of Spielverderber running on the Spielwiese. Cheers, Andreas Philippe Marschall schrieb: > 2009/6/12 Andreas Leidig : >> Dear list, >> >> I have a problem with Spielverderber. >> >> I tried to load >> >> SpielverderberCrypto-pmm.1 >> in >> >> Squeak 3.10.6 >> Pier (current) >> >> and I receive: >> >> This package depends on the following classes: >> ASN1Constants >> You must resolve these dependencies before you will be able to >> load these definitions: >> ASN1BitString >> ASN1BitString classSide>>fromAsnDer: >> [...] >> >> I cannot find matching sources. >> >> Can someone pls. give me a hint? > > You need to load the Cryptography package first. Spielverderber was > written for an old version of Pier so you'll probably have to do some > updating. > > Cheers > Philippe > > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki From norbert at hartl.name Sat Jun 13 00:34:15 2009 From: norbert at hartl.name (Norbert Hartl) Date: Sat, 13 Jun 2009 00:34:15 +0200 Subject: How to link to a page from inside an embedded component Message-ID: <1244846055.18035.63.camel@cineflux> Hi, I have a component embedded on a page. Inside this component I want to create links to pages inside my pier kernel. If I do such a component what would be the best base class? (WAComponent?). How can I create a link to another page by specifying the path? Or something else? thanks, Norbert From renggli at gmail.com Sat Jun 13 07:48:24 2009 From: renggli at gmail.com (Lukas Renggli) Date: Sat, 13 Jun 2009 07:48:24 +0200 Subject: How to link to a page from inside an embedded component In-Reply-To: <1244846055.18035.63.camel@cineflux> References: <1244846055.18035.63.camel@cineflux> Message-ID: <67628d690906122248x32687e3bv7add16d8e2206191@mail.gmail.com> > How can I create a link to another page by specifying the > path? Or something else? If you use URLs you lose the current session and possibly state. The right way to do this, is to use objects, e.g. html anchor goto: newContext; with: 'A Pier Link' where 'newContext' is the description of where you want to go. Create this new context object from the current one like so: newContext := self context structure: aStructure where 'aStructure' is the page you want to go to and 'newContext' is a temporary variable. Instead of using #structure:, it is also possible to use #structure:command: or #structure:view: to specify a different command or view. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From norbert at hartl.name Sat Jun 13 11:25:00 2009 From: norbert at hartl.name (Norbert Hartl) Date: Sat, 13 Jun 2009 11:25:00 +0200 Subject: How to link to a page from inside an embedded component In-Reply-To: <67628d690906122248x32687e3bv7add16d8e2206191@mail.gmail.com> References: <1244846055.18035.63.camel@cineflux> <67628d690906122248x32687e3bv7add16d8e2206191@mail.gmail.com> Message-ID: <1244885100.18035.78.camel@cineflux> On Sat, 2009-06-13 at 07:48 +0200, Lukas Renggli wrote: > > How can I create a link to another page by specifying the > > path? Or something else? > > If you use URLs you lose the current session and possibly state. > > The right way to do this, is to use objects, e.g. > > html anchor > goto: newContext; > with: 'A Pier Link' > > where 'newContext' is the description of where you want to go. Create > this new context object from the current one like so: > > newContext := self context structure: aStructure > > where 'aStructure' is the page you want to go to and 'newContext' is a > temporary variable. Instead of using #structure:, it is also possible > to use #structure:command: or #structure:view: to specify a different > command or view. > Well, I should try to be more clear when asking :) I don't want to loose the session in between. I want to do it exactly like you wrote here. My question was towards looking up/finding the structures. It was meant as "What is the easiest way to find a structure when I now a path?". The idea (so far) is that I know some of the structure of the site. I want to do my own component and then I want to link /a/b/c. So I need a way to lookup /a/b/c as a structure to able to link to it. I imagine the answer could be PRPathLookup but are there other ways to do? thanks, Norbert From renggli at gmail.com Sat Jun 13 18:06:38 2009 From: renggli at gmail.com (Lukas Renggli) Date: Sat, 13 Jun 2009 18:06:38 +0200 Subject: How to link to a page from inside an embedded component In-Reply-To: <1244885100.18035.78.camel@cineflux> References: <1244846055.18035.63.camel@cineflux> <67628d690906122248x32687e3bv7add16d8e2206191@mail.gmail.com> <1244885100.18035.78.camel@cineflux> Message-ID: <67628d690906130906r17ecd429v32e9d9e4329cd29b@mail.gmail.com> There is #lookupPath: and friends defined in PRStructure. This allows you to lookup structures relative to the receiver. If the path starts with a slash it is always relative to the root. Internally these methods use PRPathLookup. Lukas On Saturday, June 13, 2009, Norbert Hartl wrote: > On Sat, 2009-06-13 at 07:48 +0200, Lukas Renggli wrote: >> > How can I create a link to another page by specifying the >> > path? Or something else? >> >> If you use URLs you lose the current session and possibly state. >> >> The right way to do this, is to use objects, e.g. >> >> ? ? ?html anchor >> ? ? ? ? ?goto: newContext; >> ? ? ? ? ?with: 'A Pier Link' >> >> where 'newContext' is the description of where you want to go. Create >> this new context object from the current one like so: >> >> ? ? ?newContext := self context structure: aStructure >> >> where 'aStructure' is the page you want to go to and 'newContext' is a >> temporary variable. Instead of using #structure:, it is also possible >> to use #structure:command: or #structure:view: to specify a different >> command or view. >> > Well, I should try to be more clear when asking :) I don't want to loose > the session in between. I want to do it exactly like you wrote here. My > question was towards looking up/finding the structures. It was meant as > "What is the easiest way to find a structure when I now a path?". The > idea (so far) is that I know some of the structure of the site. I want > to do my own component and then I want to link /a/b/c. So I need a way > to lookup /a/b/c as a structure to able to link to it. I imagine the > answer could be PRPathLookup but are there other ways to do? > > thanks, > > Norbert > > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -- Lukas Renggli http://www.lukas-renggli.ch From norbert at hartl.name Sat Jun 13 18:20:22 2009 From: norbert at hartl.name (Norbert Hartl) Date: Sat, 13 Jun 2009 18:20:22 +0200 Subject: How to link to a page from inside an embedded component In-Reply-To: <67628d690906130906r17ecd429v32e9d9e4329cd29b@mail.gmail.com> References: <1244846055.18035.63.camel@cineflux> <67628d690906122248x32687e3bv7add16d8e2206191@mail.gmail.com> <1244885100.18035.78.camel@cineflux> <67628d690906130906r17ecd429v32e9d9e4329cd29b@mail.gmail.com> Message-ID: <1244910022.18035.84.camel@cineflux> On Sat, 2009-06-13 at 18:06 +0200, Lukas Renggli wrote: > There is #lookupPath: and friends defined in PRStructure. This allows > you to lookup structures relative to the receiver. If the path starts > with a slash it is always relative to the root. Internally these > methods use PRPathLookup. > That sounds good. Is it better the just request PRCurrentContext or is it better the take a pier class as base class for my component? Norbert > Lukas > > On Saturday, June 13, 2009, Norbert Hartl wrote: > > On Sat, 2009-06-13 at 07:48 +0200, Lukas Renggli wrote: > >> > How can I create a link to another page by specifying the > >> > path? Or something else? > >> > >> If you use URLs you lose the current session and possibly state. > >> > >> The right way to do this, is to use objects, e.g. > >> > >> html anchor > >> goto: newContext; > >> with: 'A Pier Link' > >> > >> where 'newContext' is the description of where you want to go. Create > >> this new context object from the current one like so: > >> > >> newContext := self context structure: aStructure > >> > >> where 'aStructure' is the page you want to go to and 'newContext' is a > >> temporary variable. Instead of using #structure:, it is also possible > >> to use #structure:command: or #structure:view: to specify a different > >> command or view. > >> > > Well, I should try to be more clear when asking :) I don't want to loose > > the session in between. I want to do it exactly like you wrote here. My > > question was towards looking up/finding the structures. It was meant as > > "What is the easiest way to find a structure when I now a path?". The > > idea (so far) is that I know some of the structure of the site. I want > > to do my own component and then I want to link /a/b/c. So I need a way > > to lookup /a/b/c as a structure to able to link to it. I imagine the > > answer could be PRPathLookup but are there other ways to do? > > > > thanks, > > > > Norbert > > > > _______________________________________________ > > Magritte, Pier and Related Tools ... > > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > > > From renggli at gmail.com Sat Jun 13 19:59:35 2009 From: renggli at gmail.com (Lukas Renggli) Date: Sat, 13 Jun 2009 19:59:35 +0200 Subject: How to link to a page from inside an embedded component In-Reply-To: <1244910022.18035.84.camel@cineflux> References: <1244846055.18035.63.camel@cineflux> <67628d690906122248x32687e3bv7add16d8e2206191@mail.gmail.com> <1244885100.18035.78.camel@cineflux> <67628d690906130906r17ecd429v32e9d9e4329cd29b@mail.gmail.com> <1244910022.18035.84.camel@cineflux> Message-ID: <67628d690906131059l6642b9eei8023120f899adcd9@mail.gmail.com> >> There is #lookupPath: and friends defined in PRStructure. This allows >> you to lookup structures relative to the receiver. If the path starts >> with a slash it is always relative to the root. Internally these >> methods use PRPathLookup. >> > That sounds good. Is it better the just request PRCurrentContext or > is it better the take a pier class as base class for my component? That doesn't really matter, both will work WAComponent and PRWidget. For a Pier specific component PRWidget is probably more appropriate. Lukas -- Lukas Renggli http://www.lukas-renggli.ch From marianopeck at gmail.com Sat Jun 13 22:22:41 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Sat, 13 Jun 2009 17:22:41 -0300 Subject: Problem with Google Gadgets In-Reply-To: References: Message-ID: Now I tried to change PRGoogleGadget>>descriptionWidth and change descriptionWidth but the same.... Does someone know how can I resize a google gadget? Thanks for the help. Mariano On Wed, Jun 10, 2009 at 10:27 PM, Mariano Martinez Peck < marianopeck at gmail.com> wrote: > Hi folks: I am using a Google Gadget of weather. The problem is I cannot > configure the width. > > I did this: > > 1) First I change the width using settings command in the Google Gadget > component. The problem with this is that what is changed is the image inside > but now all the whole gadget. See the screenshots I attach. However, the > height does work. I mean, when I change the height the complete gadget is > changed. > > 2) I tried embed the image like this: > > > +/LugaresDestino/Provincia - Chubut/Puerto Madryn/Clima - Puerto Madryn > |width=100|height=500+ > > But this is completely ignored :( > > Please, can someone help me? > > Thanks a lot > > Mariano > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From marianopeck at gmail.com Sun Jun 14 01:06:56 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Sat, 13 Jun 2009 20:06:56 -0300 Subject: Google Maps for Pier? In-Reply-To: References: Message-ID: John McKeon: how difficult do you think could be to adapt your Google Maps addon to the James Foster work ? He did a very good work. Thanks, Mariano On Thu, Jun 11, 2009 at 1:13 AM, Mariano Martinez Peck < marianopeck at gmail.com> wrote: > James: sorry for cc'ing you, I don't know if you are in this mailing list. > > I need to integrate google maps in my webapp and I found VERY useful what > you did here: http://seaside.gemstone.com/ss/GoogleMaps > > A really excellent job. Actually what I need is exactly the example > "Interacting With the Map". > > Now, the question is, do you have in mind to do a Pier component for this ? > This would be greate! > > On the other hand, I saw the GoogleMaps addon for Pier but it is quite > limited for what I need. That addon is only for static maps. I need the > final user be able to zoom in, out, move, change to road to satellite, > etc... > > Thanks for the help! > > Mariano > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From p3anoman at gmail.com Sun Jun 14 06:47:09 2009 From: p3anoman at gmail.com (John McKeon) Date: Sun, 14 Jun 2009 00:47:09 -0400 Subject: Google Maps for Pier? In-Reply-To: References: Message-ID: <40f637ec0906132147h3453c707s4c545a8520754cf8@mail.gmail.com> Hi Mariano, That GoogleStaticMaps was a quick and dirty component to allow a Pier to have a "we are here" map on a page. Paltry at best and no comparison to the work of James Foster. That package *is* quite good, a full blown implementation of the Google maps *javascript* api. But I could not get them to work on a Pier page. So I threw together what I could get to work using the GoogleStaticMaps package from squeaksource. In theory, one should be able to add any Seaside component to a Pier page only requiring you to implement canBeRoot on the class to return true. It will then show up in the list of components that can be added to a page. I have done this with several components. I have not been able to get the GMComponent based maps to work.... Firebug gives me 1 error with google is not defined (in google.load("map", "2")) so it may be script loading sequence or something along those lines. John On Sat, Jun 13, 2009 at 7:06 PM, Mariano Martinez Peck < marianopeck at gmail.com> wrote: > John McKeon: how difficult do you think could be to adapt your Google Maps > addon to the James Foster work ? He did a very good work. Other than the above method, it would take some work. > > > Thanks, > > Mariano > > > > On Thu, Jun 11, 2009 at 1:13 AM, Mariano Martinez Peck < > marianopeck at gmail.com> wrote: > >> James: sorry for cc'ing you, I don't know if you are in this mailing list. >> >> I need to integrate google maps in my webapp and I found VERY useful what >> you did here: http://seaside.gemstone.com/ss/GoogleMaps >> >> A really excellent job. Actually what I need is exactly the example >> "Interacting With the Map". >> >> Now, the question is, do you have in mind to do a Pier component for this >> ? This would be greate! >> >> On the other hand, I saw the GoogleMaps addon for Pier but it is quite >> limited for what I need. That addon is only for static maps. I need the >> final user be able to zoom in, out, move, change to road to satellite, >> etc... >> >> Thanks for the help! >> >> Mariano >> >> >> >> > > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -- http://jmck.seasidehosting.st -------------- next part -------------- An HTML attachment was scrubbed... URL: From p3anoman at gmail.com Sun Jun 14 06:49:47 2009 From: p3anoman at gmail.com (John McKeon) Date: Sun, 14 Jun 2009 00:49:47 -0400 Subject: Problem with Google Gadgets In-Reply-To: References: Message-ID: <40f637ec0906132149y2ee10519kf94163087cee8196@mail.gmail.com> On Sat, Jun 13, 2009 at 4:22 PM, Mariano Martinez Peck < marianopeck at gmail.com> wrote: > Now I tried to change PRGoogleGadget>>descriptionWidth and change > descriptionWidth but the same.... > > Does someone know how can I resize a google gadget? > You can wrap the reference to the gadget in a div with a blueprint class like
+thegadget+
John > > Thanks for the help. > > Mariano > > On Wed, Jun 10, 2009 at 10:27 PM, Mariano Martinez Peck < > marianopeck at gmail.com> wrote: > >> Hi folks: I am using a Google Gadget of weather. The problem is I cannot >> configure the width. >> >> I did this: >> >> 1) First I change the width using settings command in the Google Gadget >> component. The problem with this is that what is changed is the image inside >> but now all the whole gadget. See the screenshots I attach. However, the >> height does work. I mean, when I change the height the complete gadget is >> changed. >> >> 2) I tried embed the image like this: >> >> >> +/LugaresDestino/Provincia - Chubut/Puerto Madryn/Clima - Puerto Madryn >> |width=100|height=500+ >> >> But this is completely ignored :( >> >> Please, can someone help me? >> >> Thanks a lot >> >> Mariano >> >> > > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -- http://jmck.seasidehosting.st -------------- next part -------------- An HTML attachment was scrubbed... URL: From renggli at gmail.com Sun Jun 14 10:12:29 2009 From: renggli at gmail.com (Lukas Renggli) Date: Sun, 14 Jun 2009 10:12:29 +0200 Subject: Problem with Google Gadgets In-Reply-To: References: Message-ID: <67628d690906140112x57fd58b8p21e6556cd84921f1@mail.gmail.com> On Sat, Jun 13, 2009 at 10:22 PM, Mariano Martinez Peck wrote: > Now I tried to change PRGoogleGadget>>descriptionWidth ? and change > descriptionWidth? but the same.... > > Does someone know how can I resize a google gadget? There is some interference with the blueprint CSS library. If you remove it, the gadget can be properly resized using the editor. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From philippe.marschall at gmail.com Sun Jun 14 14:17:44 2009 From: philippe.marschall at gmail.com (Philippe Marschall) Date: Sun, 14 Jun 2009 14:17:44 +0200 Subject: SpielverderberCrypto: loading problem In-Reply-To: <4A3241A9.1010208@gmx.net> References: <4A31905B.8090308@gmx.net> <66666f210906120043v6c07b565l62b1993cf1d80eed@mail.gmail.com> <4A3241A9.1010208@gmx.net> Message-ID: <66666f210906140517j111c7520k38be03b842f6da3b@mail.gmail.com> 2009/6/12 Andreas Leidig : > Dear Philippe, > > thank you for your quick answer. > >> You need to load the Cryptography package first. Spielverderber was >> written for an old version of Pier so you'll probably have to do some >> updating. > > This could explain it's complaints about missing classes. THX > > The cryptography package does not load correctly, because it is missing > ASN1 definitions. I cannot find these either. Could be that it's just a shared pool or global that the cryptography package creates. > Can you tell me s/th about the state of Spielverderber? Why did the > development stop? If was a project for a lecture. At one point the lecture ended. > Is there a (maybe commercial) successor or a more > successful competitor? Nope, the only thing supported any working is Pier Unix Security. > Pier's built-in access management is not the most intuitive I've seen so > far. I do not think that it is adequate for the management of bigger > user groups. Also, I am looking for some features I could not find there > yet. > > What do you think? Spielverderber has some UI and design deficiencies as well. I made some decisions that I would do differently today. > I have seen that there is an instance of Spielverderber running on the > Spielwiese. Yeah. Cheers Philippe From obi068 at gmail.com Mon Jun 15 19:36:01 2009 From: obi068 at gmail.com (Gerhard Obermann) Date: Mon, 15 Jun 2009 19:36:01 +0200 Subject: Second pier kernel Message-ID: <7b7d752d0906151036yada5bf2wd441852c65c1c0fd@mail.gmail.com> Hi! How do i get a second pier kernel with the same default style? I mean the style with the black menu at the top. If I execute PRKernel named: 'xyz' i get only Pier with the old styles. Gerhard -------------- next part -------------- An HTML attachment was scrubbed... URL: From renggli at gmail.com Mon Jun 15 19:55:00 2009 From: renggli at gmail.com (Lukas Renggli) Date: Mon, 15 Jun 2009 19:55:00 +0200 Subject: Second pier kernel In-Reply-To: <7b7d752d0906151036yada5bf2wd441852c65c1c0fd@mail.gmail.com> References: <7b7d752d0906151036yada5bf2wd441852c65c1c0fd@mail.gmail.com> Message-ID: <67628d690906151055s535bd20cx5464018c60016627@mail.gmail.com> > How do i get a second pier kernel with the same default style? PRDistribution new kernel Lukas -- Lukas Renggli http://www.lukas-renggli.ch From obi068 at gmail.com Tue Jun 16 15:33:29 2009 From: obi068 at gmail.com (Gerhard Obermann) Date: Tue, 16 Jun 2009 15:33:29 +0200 Subject: New pier site Message-ID: <7b7d752d0906160633o5a37adf1l2bbf05f5d9102405@mail.gmail.com> Hi, My new homepage http://obi.ath.cx/pier powered by Pier, Seaside and GemStone is up and running. Cheers Gerhard PS: You can add me to the example installations on piercms.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From renggli at gmail.com Tue Jun 16 15:44:43 2009 From: renggli at gmail.com (Lukas Renggli) Date: Tue, 16 Jun 2009 15:44:43 +0200 Subject: New pier site In-Reply-To: <7b7d752d0906160633o5a37adf1l2bbf05f5d9102405@mail.gmail.com> References: <7b7d752d0906160633o5a37adf1l2bbf05f5d9102405@mail.gmail.com> Message-ID: <67628d690906160644j5b73c365w5b67a17dd63130ca@mail.gmail.com> I added it. I like the math quiz. Lukas On Tue, Jun 16, 2009 at 3:33 PM, Gerhard Obermann wrote: > Hi, > > My new homepage http://obi.ath.cx/pier > powered by Pier, Seaside and GemStone > is up and running. > > > Cheers > Gerhard > > PS: > You can add me to the example installations on piercms.com > > > > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -- Lukas Renggli http://www.lukas-renggli.ch From dtrussardi at tiscali.it Tue Jun 16 17:26:00 2009 From: dtrussardi at tiscali.it (Dario Trussardi) Date: Tue, 16 Jun 2009 17:26:00 +0200 Subject: Magritte addCondition: Message-ID: <8A107F7164F0493E872FD75484990C64@istcamuno> Hi, when define a description i can into addCondition: block test one property of the description ? For example: descriptioAddressPrn ............ addCondition:[:value| ...... propertyAt: #sizeLink = value size] labelled: ' Error '; yourself Where the property is set when create the descriptionContainer description ^ self class descriptionContainer, self class descriptionAddressPrn beWritable; propertyAt: #sizeLink put:10; yourself Any pointers would be greatly appreciated! Thanks! Dario -------------- next part -------------- An HTML attachment was scrubbed... URL: From renggli at gmail.com Tue Jun 16 18:14:17 2009 From: renggli at gmail.com (Lukas Renggli) Date: Tue, 16 Jun 2009 18:14:17 +0200 Subject: Magritte addCondition: In-Reply-To: <8A107F7164F0493E872FD75484990C64@istcamuno> References: <8A107F7164F0493E872FD75484990C64@istcamuno> Message-ID: <67628d690906160914x687a42c2gf877cdc13c32aa0f@mail.gmail.com> What about ... descriptionFoo | desc | desc := MAStringDescription new. desc addCondition: [ :value | desc propertyAt: #sizeLink .... ]. ^ desc ? On Tue, Jun 16, 2009 at 5:26 PM, Dario Trussardi wrote: > Hi, > > ??? when define a description i can into addCondition: block > > ??? test?one ?property of the description ? > > ??? For example: > > ???descriptioAddressPrn > ??? ............ > ??? addCondition:[:value| ...... propertyAt: #sizeLink?= value size] > ??? labelled: ' Error '; > ??? yourself > > > > ??Where the property is set when create the descriptionContainer > > ??? ??? description > ??? ??? ??? ^ self class descriptionContainer, > ??? ??? ??? ??? self class descriptionAddressPrn beWritable; propertyAt: > #sizeLink put:10; yourself > > > > Any pointers would be greatly appreciated! > > Thanks! > > > ??? Dario > _______________________________________________ > Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -- Lukas Renggli http://www.lukas-renggli.ch From ducasse at iam.unibe.ch Tue Jun 16 18:30:28 2009 From: ducasse at iam.unibe.ch (=?ISO-8859-1?Q?st=E9phane_ducasse?=) Date: Tue, 16 Jun 2009 18:30:28 +0200 Subject: New pier site In-Reply-To: <67628d690906160644j5b73c365w5b67a17dd63130ca@mail.gmail.com> References: <7b7d752d0906160633o5a37adf1l2bbf05f5d9102405@mail.gmail.com> <67628d690906160644j5b73c365w5b67a17dd63130ca@mail.gmail.com> Message-ID: <42E5AE47-41BB-491F-8142-9590F512DA34@iam.unibe.ch> Yes. We need more of them. I played with the substract but I got problem to get it. Stef > I added it. I like the math quiz. > > Lukas > > On Tue, Jun 16, 2009 at 3:33 PM, Gerhard Obermann > wrote: >> Hi, >> >> My new homepage http://obi.ath.cx/pier >> powered by Pier, Seaside and GemStone >> is up and running. >> >> >> Cheers >> Gerhard >> >> PS: >> You can add me to the example installations on piercms.com >> >> >> >> _______________________________________________ >> 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 Andreas.Leidig at gmx.net Sun Jun 21 01:34:43 2009 From: Andreas.Leidig at gmx.net (Andreas Leidig) Date: Sun, 21 Jun 2009 01:34:43 +0200 Subject: pier.image: new package fileIn from universe disabled Message-ID: <4A3D7213.1050402@gmx.net> Dear List, I installed the actual pier runtime image. I want to load additional packages into that image, but the selection menu seems to be disabled in all uiverse browsers, the universe editor throws on "install". What is the shortes solution to this problem? Thank you for your help . Kind regards, Andreas From damien.cassou at gmail.com Sun Jun 21 08:48:21 2009 From: damien.cassou at gmail.com (Damien Cassou) Date: Sun, 21 Jun 2009 08:48:21 +0200 Subject: pier.image: new package fileIn from universe disabled In-Reply-To: <4A3D7213.1050402@gmx.net> References: <4A3D7213.1050402@gmx.net> Message-ID: <6ac749c10906202348y7092b0f5xd2e0ddf7d2385456@mail.gmail.com> Hi Andreas, On Sun, Jun 21, 2009 at 1:34 AM, Andreas Leidig wrote: > I installed the actual pier runtime image. please tell me exactly what image you tried. -- Damien Cassou http://damiencassou.seasidehosting.st "Lambdas are relegated to relative obscurity until Java makes them popular by not having them." James Iry From Andreas.Leidig at gmx.net Sun Jun 21 18:10:24 2009 From: Andreas.Leidig at gmx.net (Andreas Leidig) Date: Sun, 21 Jun 2009 18:10:24 +0200 Subject: pier.image: new package fileIn from universe disabled - looks like pharo image problem Message-ID: <4A3E5B70.4020103@gmx.net> Hi Damien, now I started Pharo pharo0.1-10342dev09.06.3.image pharo0.1-10324web09.06.1.image which both showed the same problem initially. Then I started "software update" on pharo0.1-10324web09.06.1.image; after the update it now seems to work all right, the context menus work. But I fear that my problem is not solved yet. My objective is to use pier with the design as provided by Pier-1-1-1.app as a development base. Software update on the Pier-1-1-1.app image throws shortly after the "use another VM for updating from the #10262 closure image" message, even with a VM from the current Pharo site. Do you know a way to obtain the same initial layout after installing pier onto a clean development image? Best regards, Andreas -------- Original-Nachricht -------- Betreff: [Fwd: Re: pier.image: new package fileIn from universe disabled] Datum: Sun, 21 Jun 2009 15:11:06 +0200 Von: Andreas Leidig An: damien.cassou at gmail.com Hi Damien, now I started Pharo pharo0.1-10324web09.06.1.image and I see the same problem. Now I suspect it could be a problem with Vista/Mouse or Pharo side settings and try to proove this. best reagrds, -------- Original-Nachricht -------- Betreff: Re: pier.image: new package fileIn from universe disabled Datum: Sun, 21 Jun 2009 13:56:18 +0200 Von: Andreas Leidig An: damien.cassou at gmail.com Referenzen: <4A3D7213.1050402 at gmx.net> <6ac749c10906202348y7092b0f5xd2e0ddf7d2385456 at mail.gmail.com> Hi Damien, thank you for your quick answer. The image is from Pier-1-1-1.app.zip pier.image which I loaded from http://code.google.com/p/pier/ a few days ago, running on vista (which surprisingly was as fine as possible with squeak up to now). Info says Pharo 0.1, update #10213. Somehow it looks like somone locked up the image by cutting manual update methods (maybe unintentional on distribution): Context menus do not show up in any controller pane different from world seemingly (I tried several controllers with text panes, OB Package browser), so I cannot update or evaluate code; I cannot select a package version in the universe browser; the universe editor allows selection, but throws on install. But package installation works in general. Is it possible to evaluate transcript code on VM startup? So I could maybe start an update on the demaged packages. Best regards, Andreas Damien Cassou schrieb: > Hi Andreas, > > On Sun, Jun 21, 2009 at 1:34 AM, Andreas Leidig wrote: >> I installed the actual pier runtime image. > > please tell me exactly what image you tried. > From ilya.ufo at gmail.com Wed Jun 24 00:02:44 2009 From: ilya.ufo at gmail.com (Ilya Tim) Date: Wed, 24 Jun 2009 02:02:44 +0400 Subject: problems with POPoll Message-ID: <4278cf2c0906231502h65ec3697ibebe1415467b10a1@mail.gmail.com> I need to make poll in my site. I loaded this package Poll-pmm.15.mcz, but when i tried to add such component on the page Error: "Subscript out of bound" raised and this node added in the tree. In stack trace something about MANamedBuilder was mentioned. When i opened this node another error about using obsolete functionality raised. How can i fix this problems and what other packages i need? Thanks in andvance. __ Ilya Timofeev From marianopeck at gmail.com Wed Jun 24 01:28:18 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Tue, 23 Jun 2009 20:28:18 -0300 Subject: problems with POPoll In-Reply-To: <4278cf2c0906231502h65ec3697ibebe1415467b10a1@mail.gmail.com> References: <4278cf2c0906231502h65ec3697ibebe1415467b10a1@mail.gmail.com> Message-ID: You must probably attach more info. I tried it and get this: Internal ErrorError: subscript is out of bounds: 6 MethodContext(Object)>>errorSubscriptBounds: MethodContext(ContextPart)>>at: MethodContext>>tempAt: MethodContext>>tempNamed: [] in [] in WAWalkback>>renderStackFrame:on: Array(SequenceableCollection)>>do: [] in WAWalkback>>renderStackFrame:on: BlockClosure>>renderOn: [] in WAGenericTag(WATagBrush)>>with: BlockClosure>>renderOn: WARenderCanvas(WACanvas)>>nest: WAGenericTag(WABrush)>>with: WAGenericTag(WATagBrush)>>with: WARenderCanvas(WAHtmlCanvas)>>definitionList: WAWalkback>>renderStackFrame:on: [] in [] in [] in WAWalkback>>renderStackOn: BlockClosure>>renderOn: [] in WAGenericTag(WATagBrush)>>with: BlockClosure>>renderOn: WARenderCanvas(WACanvas)>>nest: After debugging a while, the problem is: WAWalkback>>renderStackFrame: aContext on: html html definitionList: [ self renderObject: aContext labelled: 'thisContext' on: html. self renderObject: aContext receiver labelled: 'self' on: html. aContext tempNames do: [ :name | self aContext tempNamed: 'each' renderObject: (aContext tempNamed: name) labelled: name on: html ] ] In this case, aContext tempNames is an Array with #('anObject' 'selectors' 'container' 'description' 'result' 'each') However, if you try to do aContext tempNamed: 'each' you will get the subscript is out of bound. That's all I could figure out. Perhaps is a problem related with the new BlockClosure. Best, Mariano On Tue, Jun 23, 2009 at 7:02 PM, Ilya Tim wrote: > I need to make poll in my site. I loaded this package Poll-pmm.15.mcz, > but when i tried to add such component on the page Error: "Subscript > out of bound" raised and this node added in the tree. In stack trace > something about MANamedBuilder was mentioned. When i opened this node > another error about using obsolete functionality raised. How can i fix > this problems and what other packages i need? > Thanks in andvance. > > __ > Ilya Timofeev > _______________________________________________ > 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 Jun 24 09:07:58 2009 From: renggli at gmail.com (Lukas Renggli) Date: Wed, 24 Jun 2009 09:07:58 +0200 Subject: problems with POPoll In-Reply-To: References: <4278cf2c0906231502h65ec3697ibebe1415467b10a1@mail.gmail.com> Message-ID: <67628d690906240007v15fa4482r33b483d0e296a767@mail.gmail.com> Mhh, that seems to be an issue with closures in Seaside 2.8 and 2.9. I'll look into this. Lukas On Wed, Jun 24, 2009 at 1:28 AM, Mariano Martinez Peck wrote: > You must probably attach more info. I tried it and get this: > > Internal Error > > Error: subscript is out of bounds: 6 > > MethodContext(Object)>>errorSubscriptBounds: > MethodContext(ContextPart)>>at: > MethodContext>>tempAt: > MethodContext>>tempNamed: > [] in [] in WAWalkback>>renderStackFrame:on: > Array(SequenceableCollection)>>do: > [] in WAWalkback>>renderStackFrame:on: > BlockClosure>>renderOn: > [] in WAGenericTag(WATagBrush)>>with: > BlockClosure>>renderOn: > WARenderCanvas(WACanvas)>>nest: > WAGenericTag(WABrush)>>with: > WAGenericTag(WATagBrush)>>with: > WARenderCanvas(WAHtmlCanvas)>>definitionList: > WAWalkback>>renderStackFrame:on: > [] in [] in [] in WAWalkback>>renderStackOn: > BlockClosure>>renderOn: > [] in WAGenericTag(WATagBrush)>>with: > BlockClosure>>renderOn: > WARenderCanvas(WACanvas)>>nest: > > > After debugging a while, the problem is: > > WAWalkback>>renderStackFrame: aContext on: html > html definitionList: [ > ??? ??? self > ??? ??? ??? renderObject: aContext > ??? ??? ??? labelled: 'thisContext' on: html. > ??? ??? self > ??? ??? ??? renderObject: aContext receiver > ??? ??? ??? labelled: 'self' on: html. > ??? ??? aContext tempNames do: [ :name | > ??? ??? ??? self aContext tempNamed: 'each' > ??? ??? ??? ??? renderObject: (aContext tempNamed: name) > ??? ??? ??? ??? labelled: name on: html ] ] > > > In this case, aContext tempNames is an Array with #('anObject' 'selectors' > 'container' 'description' 'result' 'each') > > However, if you try to do aContext tempNamed: 'each'?? you will get the > subscript is out of bound. > > That's all I could figure out. Perhaps is a problem related with the new > BlockClosure. > > Best, > > Mariano > > > > On Tue, Jun 23, 2009 at 7:02 PM, Ilya Tim wrote: >> >> I need to make poll in my site. I loaded this package Poll-pmm.15.mcz, >> but when i tried to add such component on the page Error: "Subscript >> out of bound" raised and this node added in the tree. In stack trace >> something about MANamedBuilder was mentioned. When i opened this node >> another error about using obsolete functionality raised. How can i fix >> this problems and what other packages i need? >> Thanks in andvance. >> >> __ >> Ilya Timofeev >> _______________________________________________ >> 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 renggli at gmail.com Wed Jun 24 09:46:14 2009 From: renggli at gmail.com (Lukas Renggli) Date: Wed, 24 Jun 2009 09:46:14 +0200 Subject: problems with POPoll In-Reply-To: <67628d690906240007v15fa4482r33b483d0e296a767@mail.gmail.com> References: <4278cf2c0906231502h65ec3697ibebe1415467b10a1@mail.gmail.com> <67628d690906240007v15fa4482r33b483d0e296a767@mail.gmail.com> Message-ID: <67628d690906240046j55e05807q5efeac5bb33d9951@mail.gmail.com> Ok, the Seaside related bug with the stack trace is fixes: http://code.google.com/p/seaside/issues/detail?id=392 Now the bug in the poll code. That's a very old package that haven't been touched for a long time. Lukas On Wed, Jun 24, 2009 at 9:07 AM, Lukas Renggli wrote: > Mhh, that seems to be an issue with closures in Seaside 2.8 and 2.9. > I'll look into this. > > Lukas > > On Wed, Jun 24, 2009 at 1:28 AM, Mariano Martinez > Peck wrote: >> You must probably attach more info. I tried it and get this: >> >> Internal Error >> >> Error: subscript is out of bounds: 6 >> >> MethodContext(Object)>>errorSubscriptBounds: >> MethodContext(ContextPart)>>at: >> MethodContext>>tempAt: >> MethodContext>>tempNamed: >> [] in [] in WAWalkback>>renderStackFrame:on: >> Array(SequenceableCollection)>>do: >> [] in WAWalkback>>renderStackFrame:on: >> BlockClosure>>renderOn: >> [] in WAGenericTag(WATagBrush)>>with: >> BlockClosure>>renderOn: >> WARenderCanvas(WACanvas)>>nest: >> WAGenericTag(WABrush)>>with: >> WAGenericTag(WATagBrush)>>with: >> WARenderCanvas(WAHtmlCanvas)>>definitionList: >> WAWalkback>>renderStackFrame:on: >> [] in [] in [] in WAWalkback>>renderStackOn: >> BlockClosure>>renderOn: >> [] in WAGenericTag(WATagBrush)>>with: >> BlockClosure>>renderOn: >> WARenderCanvas(WACanvas)>>nest: >> >> >> After debugging a while, the problem is: >> >> WAWalkback>>renderStackFrame: aContext on: html >> html definitionList: [ >> ??? ??? self >> ??? ??? ??? renderObject: aContext >> ??? ??? ??? labelled: 'thisContext' on: html. >> ??? ??? self >> ??? ??? ??? renderObject: aContext receiver >> ??? ??? ??? labelled: 'self' on: html. >> ??? ??? aContext tempNames do: [ :name | >> ??? ??? ??? self aContext tempNamed: 'each' >> ??? ??? ??? ??? renderObject: (aContext tempNamed: name) >> ??? ??? ??? ??? labelled: name on: html ] ] >> >> >> In this case, aContext tempNames is an Array with #('anObject' 'selectors' >> 'container' 'description' 'result' 'each') >> >> However, if you try to do aContext tempNamed: 'each'?? you will get the >> subscript is out of bound. >> >> That's all I could figure out. Perhaps is a problem related with the new >> BlockClosure. >> >> Best, >> >> Mariano >> >> >> >> On Tue, Jun 23, 2009 at 7:02 PM, Ilya Tim wrote: >>> >>> I need to make poll in my site. I loaded this package Poll-pmm.15.mcz, >>> but when i tried to add such component on the page Error: "Subscript >>> out of bound" raised and this node added in the tree. In stack trace >>> something about MANamedBuilder was mentioned. When i opened this node >>> another error about using obsolete functionality raised. How can i fix >>> this problems and what other packages i need? >>> Thanks in andvance. >>> >>> __ >>> Ilya Timofeev >>> _______________________________________________ >>> 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 > -- Lukas Renggli http://www.lukas-renggli.ch From renggli at gmail.com Wed Jun 24 09:54:26 2009 From: renggli at gmail.com (Lukas Renggli) Date: Wed, 24 Jun 2009 09:54:26 +0200 Subject: problems with POPoll In-Reply-To: <67628d690906240046j55e05807q5efeac5bb33d9951@mail.gmail.com> References: <4278cf2c0906231502h65ec3697ibebe1415467b10a1@mail.gmail.com> <67628d690906240007v15fa4482r33b483d0e296a767@mail.gmail.com> <67628d690906240046j55e05807q5efeac5bb33d9951@mail.gmail.com> Message-ID: <67628d690906240054v7fa588c2q97f4c287abed2625@mail.gmail.com> I fixed the plugin so that it work in the latest Magritte and Pier. Name: Poll-lr.16 Author: lr Time: 24 June 2009, 9:53:04 am UUID: 59ed91f4-7102-4fbe-a439-e0b521b511b8 Ancestors: Poll-pmm.15 - some trivial changes to make it work in the latest pier However the result-graph requires some pie-chart morphs that are not part of Pharo anymore. So you need to get that from somewhere. Lukas On Wed, Jun 24, 2009 at 9:46 AM, Lukas Renggli wrote: > Ok, the Seaside related bug with the stack trace is fixes: > > ? ?http://code.google.com/p/seaside/issues/detail?id=392 > > Now the bug in the poll code. That's a very old package that haven't > been touched for a long time. > > Lukas > > On Wed, Jun 24, 2009 at 9:07 AM, Lukas Renggli wrote: >> Mhh, that seems to be an issue with closures in Seaside 2.8 and 2.9. >> I'll look into this. >> >> Lukas >> >> On Wed, Jun 24, 2009 at 1:28 AM, Mariano Martinez >> Peck wrote: >>> You must probably attach more info. I tried it and get this: >>> >>> Internal Error >>> >>> Error: subscript is out of bounds: 6 >>> >>> MethodContext(Object)>>errorSubscriptBounds: >>> MethodContext(ContextPart)>>at: >>> MethodContext>>tempAt: >>> MethodContext>>tempNamed: >>> [] in [] in WAWalkback>>renderStackFrame:on: >>> Array(SequenceableCollection)>>do: >>> [] in WAWalkback>>renderStackFrame:on: >>> BlockClosure>>renderOn: >>> [] in WAGenericTag(WATagBrush)>>with: >>> BlockClosure>>renderOn: >>> WARenderCanvas(WACanvas)>>nest: >>> WAGenericTag(WABrush)>>with: >>> WAGenericTag(WATagBrush)>>with: >>> WARenderCanvas(WAHtmlCanvas)>>definitionList: >>> WAWalkback>>renderStackFrame:on: >>> [] in [] in [] in WAWalkback>>renderStackOn: >>> BlockClosure>>renderOn: >>> [] in WAGenericTag(WATagBrush)>>with: >>> BlockClosure>>renderOn: >>> WARenderCanvas(WACanvas)>>nest: >>> >>> >>> After debugging a while, the problem is: >>> >>> WAWalkback>>renderStackFrame: aContext on: html >>> html definitionList: [ >>> ??? ??? self >>> ??? ??? ??? renderObject: aContext >>> ??? ??? ??? labelled: 'thisContext' on: html. >>> ??? ??? self >>> ??? ??? ??? renderObject: aContext receiver >>> ??? ??? ??? labelled: 'self' on: html. >>> ??? ??? aContext tempNames do: [ :name | >>> ??? ??? ??? self aContext tempNamed: 'each' >>> ??? ??? ??? ??? renderObject: (aContext tempNamed: name) >>> ??? ??? ??? ??? labelled: name on: html ] ] >>> >>> >>> In this case, aContext tempNames is an Array with #('anObject' 'selectors' >>> 'container' 'description' 'result' 'each') >>> >>> However, if you try to do aContext tempNamed: 'each'?? you will get the >>> subscript is out of bound. >>> >>> That's all I could figure out. Perhaps is a problem related with the new >>> BlockClosure. >>> >>> Best, >>> >>> Mariano >>> >>> >>> >>> On Tue, Jun 23, 2009 at 7:02 PM, Ilya Tim wrote: >>>> >>>> I need to make poll in my site. I loaded this package Poll-pmm.15.mcz, >>>> but when i tried to add such component on the page Error: "Subscript >>>> out of bound" raised and this node added in the tree. In stack trace >>>> something about MANamedBuilder was mentioned. When i opened this node >>>> another error about using obsolete functionality raised. How can i fix >>>> this problems and what other packages i need? >>>> Thanks in andvance. >>>> >>>> __ >>>> Ilya Timofeev >>>> _______________________________________________ >>>> 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 >> > > > > -- > Lukas Renggli > http://www.lukas-renggli.ch > -- Lukas Renggli http://www.lukas-renggli.ch From norbert at hartl.name Fri Jun 26 09:56:27 2009 From: norbert at hartl.name (Norbert Hartl) Date: Fri, 26 Jun 2009 09:56:27 +0200 Subject: MAPluggableAccessor and block equality Message-ID: <1246002987.6420.247.camel@cineflux> Hi, I'm toying around with MAPluggableAccessor. While I really like to introduce some kind of delegated descriptions it doesn't work that easy. I'm not really familiar with caching of the magritte descriptions. My problem is that I'm operating on a MAContainerComponent using childAt: . The children are detected by =. The MAPluggableAccessor implements equality based on the equality of the read and write accessors. But these are blocks and return false if compared. So I'm wondering what is the intended of the class. I can get it to work if I'm caching the accessor inside the component. But maybe it is supposed to work different. Norbert From renggli at gmail.com Fri Jun 26 11:27:30 2009 From: renggli at gmail.com (Lukas Renggli) Date: Fri, 26 Jun 2009 11:27:30 +0200 Subject: MAPluggableAccessor and block equality In-Reply-To: <1246002987.6420.247.camel@cineflux> References: <1246002987.6420.247.camel@cineflux> Message-ID: <67628d690906260227m73edf262l8cf3ea552c2588db@mail.gmail.com> > I'm toying around with MAPluggableAccessor. While I really like > to introduce some kind of delegated descriptions it doesn't > work that easy. I'm not really familiar with caching of the > magritte descriptions. My problem is that I'm operating on > a MAContainerComponent using childAt: . I don't have such a method. > The children are > detected by =. The MAPluggableAccessor implements equality based > on the equality of the read and write accessors. But these are > blocks and return false if compared. Indeed, identity of descriptions is currently established with the accessors. The whole identity thing is problematic and caused some lengthy discussion dating back to ESUG 2006 in Brussels. At the time I started with Magritte the accessor seemed to be a decent choice, however later it became clear that it does not work well for accessors like the MAPluggableAccessor or MANullAccessor. Today I think the identity should be established using a special object, by default it would just use the identity of the description. If the developer provided an UUID in the code it would use that instead. Although such an approach does not sound very OO, it is probably the only way to ensure object identity even if the description changes completely (including the accessor and the class) or when identity has to be preserved across multiple images. > So I'm wondering what is the intended of the class. I can get > it to work if I'm caching the accessor inside the component. > But maybe it is supposed to work different. I don't understand the above part. Lukas -- Lukas Renggli http://www.lukas-renggli.ch From norbert at hartl.name Fri Jun 26 12:06:22 2009 From: norbert at hartl.name (Norbert Hartl) Date: Fri, 26 Jun 2009 12:06:22 +0200 Subject: MAPluggableAccessor and block equality In-Reply-To: <67628d690906260227m73edf262l8cf3ea552c2588db@mail.gmail.com> References: <1246002987.6420.247.camel@cineflux> <67628d690906260227m73edf262l8cf3ea552c2588db@mail.gmail.com> Message-ID: <1246010782.6043.8.camel@cineflux> On Fri, 2009-06-26 at 11:27 +0200, Lukas Renggli wrote: > > I'm toying around with MAPluggableAccessor. While I really like > > to introduce some kind of delegated descriptions it doesn't > > work that easy. I'm not really familiar with caching of the > > magritte descriptions. My problem is that I'm operating on > > a MAContainerComponent using childAt: . > > I don't have such a method. > Really? If this since ages and it seems to be your code :) MAContainerComponent>>childAt: aDescription ^ children at: aDescription ifAbsent: [ nil ] I'm using gemstone but I had this method in my old squeak installation as well. > > The children are > > detected by =. The MAPluggableAccessor implements equality based > > on the equality of the read and write accessors. But these are > > blocks and return false if compared. > > Indeed, identity of descriptions is currently established with the accessors. > > The whole identity thing is problematic and caused some lengthy > discussion dating back to ESUG 2006 in Brussels. At the time I started > with Magritte the accessor seemed to be a decent choice, however later > it became clear that it does not work well for accessors like the > MAPluggableAccessor or MANullAccessor. > > Today I think the identity should be established using a special > object, by default it would just use the identity of the description. > If the developer provided an UUID in the code it would use that > instead. Although such an approach does not sound very OO, it is > probably the only way to ensure object identity even if the > description changes completely (including the accessor and the class) > or when identity has to be preserved across multiple images. > > > So I'm wondering what is the intended of the class. I can get > > it to work if I'm caching the accessor inside the component. > > But maybe it is supposed to work different. > > I don't understand the above part. > I was just wondering if I try to use the MAPluggableAccessor the wrong way and hence facing problems. I can do accessor ^ accessor ifNil: [ accessor := (MAPluggableAccessor read: [:model|] write: [:model :object| ]) ] and then descriptionThings ^ MAToManyRelationDescription accessor: self accessor label: 'Things' priority: 10 This way I get it running but I don't like it much. I don't know exactly what MANamedBuilder is caching. I just thought it might solve the problem by caching the instances. Norbert From renggli at gmail.com Fri Jun 26 12:52:10 2009 From: renggli at gmail.com (Lukas Renggli) Date: Fri, 26 Jun 2009 12:52:10 +0200 Subject: MAPluggableAccessor and block equality In-Reply-To: <1246010782.6043.8.camel@cineflux> References: <1246002987.6420.247.camel@cineflux> <67628d690906260227m73edf262l8cf3ea552c2588db@mail.gmail.com> <1246010782.6043.8.camel@cineflux> Message-ID: <67628d690906260352y56070d5bh6defcf6434ce3253@mail.gmail.com> >> > I'm toying around with MAPluggableAccessor. While I really like >> > to introduce some kind of delegated descriptions it doesn't >> > work that easy. I'm not really familiar with caching of the >> > magritte descriptions. My problem is that I'm operating on >> > a MAContainerComponent using childAt: . >> >> I don't have such a method. >> > Really? If this since ages and it seems to be your code :) > > MAContainerComponent>>childAt: aDescription > ? ^ children at: aDescription ifAbsent: [ nil ] Ahh, I thought you refereed to MAContainerDescription. I have #childAt: in MAContainerComponent too. What you could try is to replace the Dictionary with an IdentityDictionary in #buildChildren of MAContainerComponent. I am not quite sure about all the consequences, but I guess it should solve your problem. >> I don't understand the above part. >> > I was just wondering if I try to use the MAPluggableAccessor the > wrong way and hence facing problems. I can do > > accessor > ? ^ accessor ifNil: [ > ? ? ?accessor := (MAPluggableAccessor > ? ? ? ? read: [:model|] > ? ? ? ? write: [:model :object| ]) ] > > and then > > descriptionThings > ? ^ MAToManyRelationDescription > ? ? ?accessor: self accessor > ? ? ?label: 'Things' > ? ? ?priority: 10 > > This way I get it running but I don't like it much. I don't know exactly > what MANamedBuilder is caching. I just thought it might solve the > problem by caching the instances. Why don't quite understand what you are trying to do? If you don't use the accessor just don't assign one. Lukas -- Lukas Renggli http://www.lukas-renggli.ch From norbert at hartl.name Fri Jun 26 14:16:38 2009 From: norbert at hartl.name (Norbert Hartl) Date: Fri, 26 Jun 2009 14:16:38 +0200 Subject: MAPluggableAccessor and block equality In-Reply-To: <67628d690906260352y56070d5bh6defcf6434ce3253@mail.gmail.com> References: <1246002987.6420.247.camel@cineflux> <67628d690906260227m73edf262l8cf3ea552c2588db@mail.gmail.com> <1246010782.6043.8.camel@cineflux> <67628d690906260352y56070d5bh6defcf6434ce3253@mail.gmail.com> Message-ID: <1246018598.6043.27.camel@cineflux> On Fri, 2009-06-26 at 12:52 +0200, Lukas Renggli wrote: > >> > I'm toying around with MAPluggableAccessor. While I really like > >> > to introduce some kind of delegated descriptions it doesn't > >> > work that easy. I'm not really familiar with caching of the > >> > magritte descriptions. My problem is that I'm operating on > >> > a MAContainerComponent using childAt: . > >> > >> I don't have such a method. > >> > > Really? If this since ages and it seems to be your code :) > > > > MAContainerComponent>>childAt: aDescription > > ^ children at: aDescription ifAbsent: [ nil ] > > Ahh, I thought you refereed to MAContainerDescription. I have > #childAt: in MAContainerComponent too. > > What you could try is to replace the Dictionary with an > IdentityDictionary in #buildChildren of MAContainerComponent. I am not > quite sure about all the consequences, but I guess it should solve > your problem. > Ok, I test it at least. > >> I don't understand the above part. > >> > > I was just wondering if I try to use the MAPluggableAccessor the > > wrong way and hence facing problems. I can do > > > > accessor > > ^ accessor ifNil: [ > > accessor := (MAPluggableAccessor > > read: [:model|] > > write: [:model :object| ]) ] > > > > and then > > > > descriptionThings > > ^ MAToManyRelationDescription > > accessor: self accessor > > label: 'Things' > > priority: 10 > > > > This way I get it running but I don't like it much. I don't know exactly > > what MANamedBuilder is caching. I just thought it might solve the > > problem by caching the instances. > > Why don't quite understand what you are trying to do? If you don't use > the accessor just don't assign one. > I must be more careful about how to do example code :) At the end the blocks are of course not empty. Storing the accessor in an instance variable gives me the identical accessor object with identical blocks. This way the childAt: call succeeds. The whole problem deals with tags. Until now I had several objects that should be taggable. But as the code grew there were other things those objects could have: comments, scores, etc. Trying to solve this by inheritance is not possible for me. My idea now is to treat tags more as meta data: The objects don't contain the data anymore. At the moment I have any taggable object WHChallenge to that I add WHChallenge class>>descriptionTags ^ WHTag tagsDescription WHTag class>>tagsDescription ^ (MAToManyRelationDescription accessor: (MAPluggableAccessor read: [:model|self tagsFor: model] write: [:model :tags| self storeTags: tags for: model]) label: 'Tags' priority: 40 ) classes: {WHTag}; reference: WHTag description; componentClass: WHTagSelectComponent; yourself The WHTag classes holds all the tag instances. If this approach works out I would try to solve this even more generic so that I can have a common code base for this meta-data/annotation kind of things. All other cases for comments, scores etc. should then be fairly easy Norbert From johnmci at smalltalkconsulting.com Sat Jun 27 04:52:12 2009 From: johnmci at smalltalkconsulting.com (John M McIntosh) Date: Fri, 26 Jun 2009 19:52:12 -0700 Subject: save, apply, cancel - but what does apply versus save do? Message-ID: <1F4DE95F-A9CA-424F-A780-667E9265538C@smalltalkconsulting.com> I'm wondering about PRChangeCommand>>buttonSpecification ^ Array with: self saveButton with: self applyButton with: self cancelButton That puts save, apply, cancel on the design, edit, and settings panels. But I'm wondering why save, versus apply. What's the thought behind 'Apply" versus just having the save, cancel. -- = = = ======================================================================== John M. McIntosh Twitter: squeaker68882 Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com = = = ======================================================================== From renggli at gmail.com Sat Jun 27 11:21:09 2009 From: renggli at gmail.com (Lukas Renggli) Date: Sat, 27 Jun 2009 11:21:09 +0200 Subject: save, apply, cancel - but what does apply versus save do? In-Reply-To: <1F4DE95F-A9CA-424F-A780-667E9265538C@smalltalkconsulting.com> References: <1F4DE95F-A9CA-424F-A780-667E9265538C@smalltalkconsulting.com> Message-ID: <67628d690906270221o781ea9ape69620c33bf38ac7@mail.gmail.com> > But I'm wondering why save, versus apply. ?What's the thought behind 'Apply" > versus just having the > save, cancel. Apply performs the current edit operation, but does not close the edit command. This is useful if you want to save your writings from time to time without closing the dialog, of if you edit the design and want to observe the changes. Lukas -- Lukas Renggli http://www.lukas-renggli.ch From johnmci at smalltalkconsulting.com Sat Jun 27 21:01:56 2009 From: johnmci at smalltalkconsulting.com (John M McIntosh) Date: Sat, 27 Jun 2009 12:01:56 -0700 Subject: save, apply, cancel - but what does apply versus save do? In-Reply-To: <67628d690906270221o781ea9ape69620c33bf38ac7@mail.gmail.com> References: <1F4DE95F-A9CA-424F-A780-667E9265538C@smalltalkconsulting.com> <67628d690906270221o781ea9ape69620c33bf38ac7@mail.gmail.com> Message-ID: Ah, well the interesting side effect. is with wikiserver if you tap apply then tap save we end up marking the PRPage as being dirty then our auto-save feature kicks in at some point. However the save occasionally fails because there is an outstanding WAAnswerHandler instance that is servicing the other apply or save that is in progress. I guess I''ll change things so that we only allow the save/cancel because I've had folks think they have to do apply then save, or confused why there is apply & save. On 27-Jun-09, at 2:21 AM, Lukas Renggli wrote: >> But I'm wondering why save, versus apply. What's the thought >> behind 'Apply" >> versus just having the >> save, cancel. > > Apply performs the current edit operation, but does not close the edit > command. This is useful if you want to save your writings from time to > time without closing the dialog, of if you edit the design and want to > observe the changes. > > Lukas > > -- > Lukas Renggli > http://www.lukas-renggli.ch -- = = = ======================================================================== John M. McIntosh Twitter: squeaker68882 Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com = = = ======================================================================== From chaetal at gmail.com Sun Jun 28 15:55:44 2009 From: chaetal at gmail.com (Dennis Schetinin) Date: Sun, 28 Jun 2009 17:55:44 +0400 Subject: Image Persistency problem Message-ID: <84f77e270906280655p1dfa40c0xb163d9b1adcc515c@mail.gmail.com> I've got a very strange behaviour of my image... It's all ok with Image Persistency on locally on my windows PC. But when I switch to it at hosting (it's webfactional.com with ubuntu) our site stops to answer (after saving the image, if I understand correctly). When I click on "snapshot" in "System Management" I get the following walkback in browser: Internal ErrorError: subscript is out of bounds: 2 MethodContext(Object)>>errorSubscriptBounds: MethodContext(ContextPart)>>at: MethodContext>>tempAt: [] in [] in WAWalkback>>renderStackFrame:on: Array(SequenceableCollection)>>withIndexDo: [] in WAWalkback>>renderStackFrame:on: BlockClosure>>renderOn: [] in WAGenericTag(WATagBrush)>>with: BlockClosure>>renderOn: WARenderCanvas(WACanvas)>>nest: WAGenericTag(WABrush)>>with: WAGenericTag(WATagBrush)>>with: WARenderCanvas(WAHtmlCanvas)>>definitionList: WAWalkback>>renderStackFrame:on: [] in [] in [] in WAWalkback>>renderStackOn: BlockClosure>>renderOn: [] in WAGenericTag(WATagBrush)>>with: BlockClosure>>renderOn: WARenderCanvas(WACanvas)>>nest: WAGenericTag(WABrush)>>with: Without any buttons, nor anything visible in Pharo (using VNC). But "Process Browser" shows no process for Seaside... How can I find the cause of the problem and/or fix it? -- Dennis Schetinin -------------- next part -------------- An HTML attachment was scrubbed... URL: From chaetal at gmail.com Sun Jun 28 16:06:52 2009 From: chaetal at gmail.com (Dennis Schetinin) Date: Sun, 28 Jun 2009 18:06:52 +0400 Subject: Image Persistency problem In-Reply-To: <84f77e270906280655p1dfa40c0xb163d9b1adcc515c@mail.gmail.com> References: <84f77e270906280655p1dfa40c0xb163d9b1adcc515c@mail.gmail.com> Message-ID: <84f77e270906280706h44327f6asdac21e2cb668ffeb@mail.gmail.com> 2009/6/28 Dennis Schetinin > I've got a very strange behaviour of my image... > > It's all ok with Image Persistency on locally on my windows PC. But when I > switch to it at hosting (it's webfactional.com with ubuntu) our site stops > to answer (after saving the image, if I understand correctly). When I click > on "snapshot" in "System Management" I get the following walkback in > browser: > May be it can be the cause: we start WAComEncoded on port 2530 ...and we do it using "port 2530" in command line. -- Dennis Schetinin -------------- next part -------------- An HTML attachment was scrubbed... URL: From renggli at gmail.com Sun Jun 28 19:37:11 2009 From: renggli at gmail.com (Lukas Renggli) Date: Sun, 28 Jun 2009 19:37:11 +0200 Subject: Image Persistency problem In-Reply-To: <84f77e270906280706h44327f6asdac21e2cb668ffeb@mail.gmail.com> References: <84f77e270906280655p1dfa40c0xb163d9b1adcc515c@mail.gmail.com> <84f77e270906280706h44327f6asdac21e2cb668ffeb@mail.gmail.com> Message-ID: <67628d690906281037p2d250b6avf5fc68b603f647f5@mail.gmail.com> It looks like you are using a recent Pharo image and Seaside2.8a1-lr.590. In this combination sometimes printing a walkback causes another error. This is the stack trace you are seeing. Please update to Seaside2.8a1-lr.591 to see the real cause of the problem. Lukas On Sun, Jun 28, 2009 at 4:06 PM, Dennis Schetinin wrote: > > > 2009/6/28 Dennis Schetinin >> >> I've got a very strange behaviour of my image... >> >> It's all ok with Image Persistency on locally on my windows PC. But when I >> switch to it at hosting (it's webfactional.com with ubuntu) our site stops >> to answer (after saving the image, if I understand correctly). When I click >> on "snapshot" in "System Management" I get the following walkback in >> browser: > > May be it can be the cause: we start WAComEncoded on port 2530 ...and we do > it using "port 2530" in command line. > > -- > Dennis Schetinin > > _______________________________________________ > 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 Sun Jun 28 20:08:13 2009 From: chaetal at gmail.com (Dennis Schetinin) Date: Sun, 28 Jun 2009 22:08:13 +0400 Subject: Image Persistency problem In-Reply-To: <67628d690906281037p2d250b6avf5fc68b603f647f5@mail.gmail.com> References: <84f77e270906280655p1dfa40c0xb163d9b1adcc515c@mail.gmail.com> <84f77e270906280706h44327f6asdac21e2cb668ffeb@mail.gmail.com> <67628d690906281037p2d250b6avf5fc68b603f647f5@mail.gmail.com> Message-ID: <84f77e270906281108n78e542f7o5db1551f455d0e75@mail.gmail.com> > > It looks like you are using a recent Pharo image and > Seaside2.8a1-lr.590. In this combination sometimes printing a walkback > causes another error. This is the stack trace you are seeing. Please > update to Seaside2.8a1-lr.591 to see the real cause of the problem. > Are there instruction for update? And I have some news about the situation. ...Still strange but after some work I have 'a service is already running on port ' exception during snapshot. But manually starting WAKomEncoded on that port is ok... And clicking "proceeding" also works. Seems like port is still "busy" during or just after snapshot, but becomes "free" few moments later. Isn't it some kind of synchronization problem? -- Dennis Schetinin -------------- next part -------------- An HTML attachment was scrubbed... URL: From renggli at gmail.com Sun Jun 28 20:15:02 2009 From: renggli at gmail.com (Lukas Renggli) Date: Sun, 28 Jun 2009 20:15:02 +0200 Subject: Image Persistency problem In-Reply-To: <84f77e270906281108n78e542f7o5db1551f455d0e75@mail.gmail.com> References: <84f77e270906280655p1dfa40c0xb163d9b1adcc515c@mail.gmail.com> <84f77e270906280706h44327f6asdac21e2cb668ffeb@mail.gmail.com> <67628d690906281037p2d250b6avf5fc68b603f647f5@mail.gmail.com> <84f77e270906281108n78e542f7o5db1551f455d0e75@mail.gmail.com> Message-ID: <67628d690906281115w4e6511fan8e52c7d8b155f217@mail.gmail.com> On Sun, Jun 28, 2009 at 8:08 PM, Dennis Schetinin wrote: >> It looks like you are using a recent Pharo image and >> Seaside2.8a1-lr.590. In this combination sometimes printing a walkback >> causes another error. This is the stack trace you are seeing. Please >> update to Seaside2.8a1-lr.591 to see the real cause of the problem. > > Are there instruction for update? You just load the latest version through Monticello from the Seaside repository. > Seems like port is still "busy" during or just after snapshot, but becomes > "free" few moments later. Isn't it some kind of synchronization problem? All sockets are closed during a snapshot, thus the web server has to be restarted. I think I heard before that people run into problems when setting the port environment variable and saving their images. I don't remember the solution though. Lukas -- Lukas Renggli http://www.lukas-renggli.ch From chaetal at gmail.com Sun Jun 28 20:41:39 2009 From: chaetal at gmail.com (Dennis Schetinin) Date: Sun, 28 Jun 2009 22:41:39 +0400 Subject: Image Persistency problem In-Reply-To: <67628d690906281115w4e6511fan8e52c7d8b155f217@mail.gmail.com> References: <84f77e270906280655p1dfa40c0xb163d9b1adcc515c@mail.gmail.com> <84f77e270906280706h44327f6asdac21e2cb668ffeb@mail.gmail.com> <67628d690906281037p2d250b6avf5fc68b603f647f5@mail.gmail.com> <84f77e270906281108n78e542f7o5db1551f455d0e75@mail.gmail.com> <67628d690906281115w4e6511fan8e52c7d8b155f217@mail.gmail.com> Message-ID: <84f77e270906281141p3c6c5514h33012bb6fcdd415@mail.gmail.com> > > >> It looks like you are using a recent Pharo image and > >> Seaside2.8a1-lr.590. In this combination sometimes printing a walkback > >> causes another error. This is the stack trace you are seeing. Please > >> update to Seaside2.8a1-lr.591 to see the real cause of the problem. > > > > Are there instruction for update? > > You just load the latest version through Monticello from the Seaside > repository. > > > Seems like port is still "busy" during or just after snapshot, but > becomes > > "free" few moments later. Isn't it some kind of synchronization problem? > > All sockets are closed during a snapshot, thus the web server has to > be restarted. I think I heard before that people run into problems > when setting the port environment variable and saving their images. I > don't remember the solution though. > Ok, thank you! -- Dennis Schetinin -------------- next part -------------- An HTML attachment was scrubbed... URL: From chaetal at gmail.com Sun Jun 28 20:53:18 2009 From: chaetal at gmail.com (Dennis Schetinin) Date: Sun, 28 Jun 2009 22:53:18 +0400 Subject: Image Persistency problem In-Reply-To: <84f77e270906281141p3c6c5514h33012bb6fcdd415@mail.gmail.com> References: <84f77e270906280655p1dfa40c0xb163d9b1adcc515c@mail.gmail.com> <84f77e270906280706h44327f6asdac21e2cb668ffeb@mail.gmail.com> <67628d690906281037p2d250b6avf5fc68b603f647f5@mail.gmail.com> <84f77e270906281108n78e542f7o5db1551f455d0e75@mail.gmail.com> <67628d690906281115w4e6511fan8e52c7d8b155f217@mail.gmail.com> <84f77e270906281141p3c6c5514h33012bb6fcdd415@mail.gmail.com> Message-ID: <84f77e270906281153m17bf11c2qbaab025f445d5ee5@mail.gmail.com> Btw, seems like unassigning before assigning helps :) TcpService >> start self verifyOkToStart ifFalse: [^self]. self unassignPort. "This line is new!" self assignPort. [super start] on: Error do: [ :ex | self unassignPort. ex pass] Though I'm not sure it will not have some bad consequences in some other place... -- Dennis Schetinin -------------- next part -------------- An HTML attachment was scrubbed... URL: From marianopeck at gmail.com Thu Jun 11 03:27:03 2009 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Thu, 11 Jun 2009 01:27:03 -0000 Subject: Problem with Google Gadgets Message-ID: Hi folks: I am using a Google Gadget of weather. The problem is I cannot configure the width. I did this: 1) First I change the width using settings command in the Google Gadget component. The problem with this is that what is changed is the image inside but now all the whole gadget. See the screenshots I attach. However, the height does work. I mean, when I change the height the complete gadget is changed. 2) I tried embed the image like this: +/LugaresDestino/Provincia - Chubut/Puerto Madryn/Clima - Puerto Madryn |width=100|height=500+ But this is completely ignored :( Please, can someone help me? Thanks a lot Mariano -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: bug1.png Type: image/png Size: 260651 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: bug2.png Type: image/png Size: 242533 bytes Desc: not available URL: