From koubo2006 at yengawa.jpn.org Thu Mar 1 15:45:02 2007 From: koubo2006 at yengawa.jpn.org (Koji Yokokawa) Date: Thu, 01 Mar 2007 23:45:02 +0900 Subject: RSS view Message-ID: <20070301231351.FD9F.KOUBO2006@yengawa.jpn.org> Hi, I made RSS view for Pier. It adds an rss link for every page, that rss feeds the changes of the page and the all children. Detailes: http://yengawa.homedns.org:8888/YengawaWiki/54 Demo site: http://yengawapier.webhop.org/ guest account: anonymous/anonymous Please take a look! -- ! Koji Yokokawa http://www.yengawa.com/ ^self new! From philippe.marschall at gmail.com Thu Mar 1 15:54:49 2007 From: philippe.marschall at gmail.com (Philippe Marschall) Date: Thu, 1 Mar 2007 15:54:49 +0100 Subject: RSS view In-Reply-To: <20070301231351.FD9F.KOUBO2006@yengawa.jpn.org> References: <20070301231351.FD9F.KOUBO2006@yengawa.jpn.org> Message-ID: <66666f210703010654m6222b91fk92ece7ec69b290d8@mail.gmail.com> The links don't work :( Philippe 2007/3/1, Koji Yokokawa : > Hi, > I made RSS view for Pier. It adds an rss link for every page, that > rss feeds the changes of the page and the all children. > > Detailes: http://yengawa.homedns.org:8888/YengawaWiki/54 > > Demo site: http://yengawapier.webhop.org/ > guest account: anonymous/anonymous > > Please take a look! > -- ! > Koji Yokokawa > http://www.yengawa.com/ > ^self new! > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > From ian at inextenso.com Thu Mar 1 16:10:34 2007 From: ian at inextenso.com (Ian Prince) Date: Thu, 1 Mar 2007 16:10:34 +0100 Subject: RSS view In-Reply-To: <66666f210703010654m6222b91fk92ece7ec69b290d8@mail.gmail.com> References: <20070301231351.FD9F.KOUBO2006@yengawa.jpn.org> <66666f210703010654m6222b91fk92ece7ec69b290d8@mail.gmail.com> Message-ID: <3786C66B-CF12-411A-A1AD-51B59D4DF128@inextenso.com> the links work for me :-) ian. On 1 Mar 2007, at 15:54, Philippe Marschall wrote: > The links don't work :( > > Philippe > > 2007/3/1, Koji Yokokawa : >> Hi, >> I made RSS view for Pier. It adds an rss link for every page, that >> rss feeds the changes of the page and the all children. >> >> Detailes: http://yengawa.homedns.org:8888/YengawaWiki/54 >> >> Demo site: http://yengawapier.webhop.org/ >> guest account: anonymous/anonymous >> >> Please take a look! >> -- ! >> Koji Yokokawa >> http://www.yengawa.com/ >> ^self new! >> >> >> _______________________________________________ >> SmallWiki, Magritte, Pier and Related Tools ... >> https://www.iam.unibe.ch/mailman/listinfo/smallwiki >> > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki From koubo2006 at yengawa.jpn.org Thu Mar 1 16:33:26 2007 From: koubo2006 at yengawa.jpn.org (Koji Yokokawa) Date: Fri, 02 Mar 2007 00:33:26 +0900 Subject: RSS view In-Reply-To: <3786C66B-CF12-411A-A1AD-51B59D4DF128@inextenso.com> References: <66666f210703010654m6222b91fk92ece7ec69b290d8@mail.gmail.com> <3786C66B-CF12-411A-A1AD-51B59D4DF128@inextenso.com> Message-ID: <20070302002006.FDA2.KOUBO2006@yengawa.jpn.org> SORRY... My dynamic DNS account was removed. I renewed the account but it takes hours to spread the new IP. You can access by 219.17.116.62 temporary. so that, Detailes: http://219.17.116.62:8888/YengawaWiki/54 Demo site: http://219.17.116.62:8080/seaside/ypier/ guest account: anonymous/anonymous On Thu, 1 Mar 2007 16:10:34 +0100 Ian Prince wrote: > the links work for me :-) > > ian. > > On 1 Mar 2007, at 15:54, Philippe Marschall wrote: > > > The links don't work :( > > > > Philippe > > > > 2007/3/1, Koji Yokokawa : > >> Hi, > >> I made RSS view for Pier. It adds an rss link for every page, that > >> rss feeds the changes of the page and the all children. > >> > >> Detailes: http://yengawa.homedns.org:8888/YengawaWiki/54 > >> > >> Demo site: http://yengawapier.webhop.org/ > >> guest account: anonymous/anonymous > >> > >> Please take a look! > >> -- ! > >> Koji Yokokawa > >> http://www.yengawa.com/ > >> ^self new! -- ! Koji Yokokawa http://www.yengawa.com/ ^self new! From robkearns at gmail.com Fri Mar 2 17:19:59 2007 From: robkearns at gmail.com (Robert Kearns) Date: Fri, 2 Mar 2007 16:19:59 +0000 Subject: Magritte password descriptor Message-ID: <235a8bc60703020819h7a98da54y91aaffc4ee0f6769@mail.gmail.com> Hi, I have setup a password descriptor as follows: desc := (MAPasswordDescription auto: #password label: 'Password' priority: 100) beRequired; yourself. desc requiredErrorMessage: 'must be specified.'. desc addCondition: [:value | value size > 6] labelled: ' too short'. If I enter a password of 'abc' it fails validation as expected. The password field is not cleared when it is redisplayed so I can add 'def' to the end of the field. In the condition this time instead of getting 'abcdef', I get '***def' as the value. Is there a way round this or should I just clear the value. If clearing the value is the answer then how do I do it from within the condition or should I use a custom condition. Thanks Rob -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20070302/554f5918/attachment.html From renggli at iam.unibe.ch Fri Mar 2 17:54:18 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Fri, 2 Mar 2007 17:54:18 +0100 Subject: Magritte password descriptor In-Reply-To: <235a8bc60703020819h7a98da54y91aaffc4ee0f6769@mail.gmail.com> References: <235a8bc60703020819h7a98da54y91aaffc4ee0f6769@mail.gmail.com> Message-ID: > If I enter a password of 'abc' it fails validation as expected. The > password field is not cleared when it is redisplayed so I can add > 'def' to the end of the field. In the condition this time instead > of getting 'abcdef', I get '***def' as the value. The reason for this is that I usually don't want to send back the password in clear-text. This behavior is implemented in MATextPasswordComponent by overriding #string and #string:. It is actually a GUI thing and not part of the description. You can of course create your own password component and, as an example, always return an empty String from #string. To select your new component use #componentClass: at the place where you define the password description. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From robkearns at gmail.com Fri Mar 2 18:27:21 2007 From: robkearns at gmail.com (Robert Kearns) Date: Fri, 2 Mar 2007 17:27:21 +0000 Subject: Magritte password descriptor In-Reply-To: References: <235a8bc60703020819h7a98da54y91aaffc4ee0f6769@mail.gmail.com> Message-ID: <235a8bc60703020927g6600ef28wf60fd67bb94b5178@mail.gmail.com> Thanks, I'll create my own to blank it out then On 3/2/07, Lukas Renggli wrote: > > > If I enter a password of 'abc' it fails validation as expected. The > > password field is not cleared when it is redisplayed so I can add > > 'def' to the end of the field. In the condition this time instead > > of getting 'abcdef', I get '***def' as the value. > > The reason for this is that I usually don't want to send back the > password in clear-text. This behavior is implemented in > MATextPasswordComponent by overriding #string and #string:. It is > actually a GUI thing and not part of the description. > > You can of course create your own password component and, as an > example, always return an empty String from #string. To select your > new component use #componentClass: at the place where you define the > password description. > > Cheers, > Lukas > > -- > Lukas Renggli > http://www.lukas-renggli.ch > > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20070302/b8856449/attachment-0001.html From damien.cassou at gmail.com Sat Mar 3 15:46:40 2007 From: damien.cassou at gmail.com (Damien Cassou) Date: Sat, 3 Mar 2007 15:46:40 +0100 Subject: Pier-blog image Message-ID: <6ac749c10703030646l1c6917b1uc5e550f7aa10af48@mail.gmail.com> Hi, I created a pier-blog image based on squeak-dev-83: http://damien.cassou.free.fr/squeak-web/ Bye -- Damien Cassou From mathieu.cassonnet at laposte.net Sun Mar 4 16:40:38 2007 From: mathieu.cassonnet at laposte.net (Mathieu Cassonnet) Date: Sun, 04 Mar 2007 16:40:38 +0100 Subject: Pier-blog image In-Reply-To: <6ac749c10703030646l1c6917b1uc5e550f7aa10af48@mail.gmail.com> References: <6ac749c10703030646l1c6917b1uc5e550f7aa10af48@mail.gmail.com> Message-ID: <45EAE876.3060504@laposte.net> Hi, File uploading doesn't seem to work on this image. I don't know why, I am not good enough to fix this bug :-[ Bye PS : Should I write SUnit? :-) Damien Cassou a ?crit : > Hi, > > I created a pier-blog image based on squeak-dev-83: > > http://damien.cassou.free.fr/squeak-web/ > > Bye > > From renggli at iam.unibe.ch Sun Mar 4 18:27:30 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Sun, 4 Mar 2007 18:27:30 +0100 Subject: Pier-blog image In-Reply-To: <45EAE876.3060504@laposte.net> References: <6ac749c10703030646l1c6917b1uc5e550f7aa10af48@mail.gmail.com> <45EAE876.3060504@laposte.net> Message-ID: <2A1C7419-9F08-43EB-A5A4-5D2F44F0E164@iam.unibe.ch> > File uploading doesn't seem to work on this image. > I don't know why, I am not good enough to fix this bug :-[ Please check out this mail: > It appears that MAExternalFileModel uses a dictionary to maintain the > directory location > > classPool: a Dictionary(#BaseDirectory->UnixFileDirectory on > '/my/path/to/files' #BaseUrl->nil) This is part of the file-model of Magritte. Some time ago I changed this model to allow storing files externally as opposed to enforce the use of a ByteArray within the image. The class MAExternalFileModel has a two class variables (this is not really a dictionary) that allow to configure these external files further. There are accessors on the class-side that you can use to configure these settings: MAExternalFileModel class>>baseDirectory: aStringOrDirectory "Defines the base-directory where the files are stored. This defaults to a subdirectory of the current image-location." MAExternalFileModel class>>baseUrl: aString "Defines the base-URL where the files are served from, when using an external web server. This setting is left to nil by default, causing the files to be served trough the image." > my questions are does anyone know if there are other gotchas about > moving the image? How should I change this? Is there a global way of > changing the location for access? I have a feeling that there will be > more walkbacks because I moved the pier image from one server to another. No, I don't think so. Copy the base-directory to your new server and update the setting if necessary. Cheers, Lukas > > Bye > > PS : Should I write SUnit? :-) > > Damien Cassou a ?crit : >> Hi, >> >> I created a pier-blog image based on squeak-dev-83: >> >> http://damien.cassou.free.fr/squeak-web/ >> >> Bye >> >> > > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -- Lukas Renggli http://www.lukas-renggli.ch From brad at sonaural.com Sun Mar 4 21:51:35 2007 From: brad at sonaural.com (Brad Fuller) Date: Sun, 04 Mar 2007 12:51:35 -0800 Subject: Pier-blog image In-Reply-To: <2A1C7419-9F08-43EB-A5A4-5D2F44F0E164@iam.unibe.ch> References: <6ac749c10703030646l1c6917b1uc5e550f7aa10af48@mail.gmail.com> <45EAE876.3060504@laposte.net> <2A1C7419-9F08-43EB-A5A4-5D2F44F0E164@iam.unibe.ch> Message-ID: <45EB3157.8020006@sonaural.com> Lukas Renggli wrote: >> File uploading doesn't seem to work on this image. >> I don't know why, I am not good enough to fix this bug :-[ > > Please check out this mail: > > > It appears that MAExternalFileModel uses a dictionary to maintain the > > directory location > > > > classPool: a Dictionary(#BaseDirectory->UnixFileDirectory on > > '/my/path/to/files' #BaseUrl->nil) > > This is part of the file-model of Magritte. Some time ago I changed > this model to allow storing files externally as opposed to enforce the > use of a ByteArray within the image. The class MAExternalFileModel has > a two class variables (this is not really a dictionary) that allow to > configure these external files further. There are accessors on the > class-side that you can use to configure these settings: > > MAExternalFileModel class>>baseDirectory: aStringOrDirectory > "Defines the base-directory where the files are stored. This > defaults > to a subdirectory of the current image-location." > > MAExternalFileModel class>>baseUrl: aString > "Defines the base-URL where the files are served from, when > using an > external web server. This setting is left to nil by default, causing > the files to be served trough the image." > > > my questions are does anyone know if there are other gotchas about > > moving the image? How should I change this? Is there a global way of > > changing the location for access? I have a feeling that there will be > > more walkbacks because I moved the pier image from one server to > another. > > No, I don't think so. Copy the base-directory to your new server and > update the setting if necessary. I assume that this has nothing to do with WAFileLibrary? Now, with using ProxyPass and ProxyPassReverse that I'm only using in apache (no rewrite rules) I have no idea where WAKom is looking for my css files. No matter what pointer I place in the method styleCss, it doesn't seem to find them (I have an exact location off of the directory the image is located). In fact, i don't even think styleCss is being accessed. Yes, I did add selectorsToInclude method in my own FileLibrary. Also, bypassing apache (http://my.domain.com:9999/seaside/pier) finds no css files either. Can others post their apache settings and also where they place their css files on your server? That might help. Or, what do you do for accessing css files? Obviously, I'm confused once again. This just seems a bit too complicated. From renggli at iam.unibe.ch Mon Mar 5 07:03:06 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Mon, 5 Mar 2007 07:03:06 +0100 Subject: Pier-blog image In-Reply-To: <45EB3157.8020006@sonaural.com> References: <6ac749c10703030646l1c6917b1uc5e550f7aa10af48@mail.gmail.com> <45EAE876.3060504@laposte.net> <2A1C7419-9F08-43EB-A5A4-5D2F44F0E164@iam.unibe.ch> <45EB3157.8020006@sonaural.com> Message-ID: <1AA5F4D3-DB33-4E75-BEC7-FA4974B497C6@iam.unibe.ch> >> No, I don't think so. Copy the base-directory to your new server and >> update the setting if necessary. > I assume that this has nothing to do with WAFileLibrary? No, this has nothing to do with WAFileLibrary. This is Magritte- Seaside and how it serves large binary files (like files you uploaded trough Pier). > Now, with using ProxyPass and ProxyPassReverse that I'm only using in > apache (no rewrite rules) I have no idea where WAKom is looking for my > css files. No matter what pointer I place in the method styleCss, it > doesn't seem to find them (I have an exact location off of the > directory > the image is located). In fact, i don't even think styleCss is being > accessed. Yes, I did add selectorsToInclude method in my own > FileLibrary. I can't help you with ProxyPass and ProxyPassReverse, I never used that. I don't use FileLibrary since I use Apache. Of course it is possible to use both, but I don't see the point. For my Web site I also created and added a file-library, but I only use it to conveniently add the static style-sheets to the HTML head: -------------- next part -------------- A non-text attachment was scrubbed... Name: stylelibrary.png Type: application/applefile Size: 76 bytes Desc: not available Url : http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20070305/a5ed4a1e/stylelibrary-0001.bin -------------- next part -------------- A non-text attachment was scrubbed... Name: stylelibrary.png Type: image/png Size: 15498 bytes Desc: not available Url : http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20070305/a5ed4a1e/stylelibrary-0001.png -------------- next part -------------- > Also, bypassing apache (http://my.domain.com:9999/seaside/pier) > finds no > css files either. > > Can others post their apache settings and also where they place their > css files on your server? That might help. Or, what do you do for > accessing css files? Obviously, I'm confused once again. This just > seems > a bit too complicated. The out-of-the box image (the one you get when installing Pier from SqueakMap) just works. If you start to change settings and/or use Apache then the complexity is in your own hands. My Apache configuration looks like this: ServerName www.lukas-renggli.ch DocumentRoot /home/apache/www.lukas-renggli.ch Order deny,allow Allow from all ProxyPreserveHost On RewriteEngine On RewriteCond /home/apache/www.lukas-renggli.ch/% {REQUEST_FILENAME} !-f RewriteRule ^/(.*)$ http://localhost:9002/seaside/pier/$1 [proxy,last] The rewrite rules basically says: If there is no static file on the filesystem home/apache/www.lukas-renggli.ch matching the request the pass it on to the Pier image running on port 9002. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From brad at sonaural.com Mon Mar 5 16:10:14 2007 From: brad at sonaural.com (Brad Fuller) Date: Mon, 05 Mar 2007 07:10:14 -0800 Subject: Pier-blog image In-Reply-To: <1AA5F4D3-DB33-4E75-BEC7-FA4974B497C6@iam.unibe.ch> References: <6ac749c10703030646l1c6917b1uc5e550f7aa10af48@mail.gmail.com> <45EAE876.3060504@laposte.net> <2A1C7419-9F08-43EB-A5A4-5D2F44F0E164@iam.unibe.ch> <45EB3157.8020006@sonaural.com> <1AA5F4D3-DB33-4E75-BEC7-FA4974B497C6@iam.unibe.ch> Message-ID: <45EC32D6.20204@sonaural.com> Thanks Lukas. That's pretty much my old rewrite rules. The problem I had was on the WAKom side - I was not able to remove the /seaside/ trailing after the URL. That's why I went to ProxyPass. Sure, I think it works right out of the box, but you have to work at getting it to eliminate the trailing application path (e.g. /seaside/pier.) I have a Seaside 2.6 site with rewrite rules and with changing the Base URL and entry point it finds the css files fine (not a pier site). This one is just giving me a headache! I appreciate your clear instructions, you've provided me with some more ideas. brad From sebjulliand at gmail.com Mon Mar 5 22:13:36 2007 From: sebjulliand at gmail.com (=?ISO-8859-1?Q?S=E9bastien_Julliand?=) Date: Mon, 5 Mar 2007 22:13:36 +0100 Subject: MaCheckbox Message-ID: <4f6c865a0703051313v64f90984yeaa6e7f1ffd9e67e@mail.gmail.com> Hi, I don't understand why but I can't add checkboxes to my MAReport. I try to use something like: report addColumn: (MACheckboxColumn new). But it keeps telling: MessageNotUnderstood: WARenderCanvas>>anchorWithAction:do: I think I missed something but it doesn't sound trivial to me. Any ideas? Thanks in advance, cheers! -- S?bastien JULLIAND -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20070305/06f67e01/attachment.html From brad at sonaural.com Tue Mar 6 00:03:03 2007 From: brad at sonaural.com (Brad Fuller) Date: Mon, 05 Mar 2007 15:03:03 -0800 Subject: Pier setup blues - Next Topic: expiration Message-ID: <45ECA1A7.80205@sonaural.com> > I don't use FileLibrary since I use Apache. Of course it is possible > to use both, but I don't see the point. For my Web site I also created > and added a file-library, but I only use it to conveniently add the > static style-sheets to the HTML head: Hmm... so you store everything, including js files in the apache path. How is this a "file-library"? I guess I'm still hung up on the meaning of "file" and "library" Now, one thing that keeps bugging me is that when a session expires, I get an error like: Error: "/seaside/pier/seaside/pier/ References: <4f6c865a0703051313v64f90984yeaa6e7f1ffd9e67e@mail.gmail.com> Message-ID: <66666f210703051514s25d59d78ma4005bc16938d933@mail.gmail.com> 2007/3/5, S?bastien Julliand : > Hi, > > I don't understand why but I can't add checkboxes to my MAReport. > I try to use something like: > > report addColumn: (MACheckboxColumn new). > > But it keeps telling: > > MessageNotUnderstood: WARenderCanvas>>anchorWithAction:do: > > I think I missed something but it doesn't sound trivial to me. Any ideas? > Thanks in advance, cheers! The MAActionColumn uses the old renderer that was deprecated in Seaside 2.7 and removed in Seaside 2.8. A short term fix is to add rendererClass ^WAHtmlRenderer to MAActionColumn Philippe > -- > S?bastien JULLIAND > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > From philippe.marschall at gmail.com Tue Mar 6 08:15:31 2007 From: philippe.marschall at gmail.com (Philippe Marschall) Date: Tue, 6 Mar 2007 08:15:31 +0100 Subject: Pier setup blues - Next Topic: expiration In-Reply-To: <45ECA1A7.80205@sonaural.com> References: <45ECA1A7.80205@sonaural.com> Message-ID: <66666f210703052315u3442fa7ka1771fa8f68088d5@mail.gmail.com> 2007/3/6, Brad Fuller : > > > I don't use FileLibrary since I use Apache. Of course it is possible > > to use both, but I don't see the point. For my Web site I also created > > and added a file-library, but I only use it to conveniently add the > > static style-sheets to the HTML head: > > Hmm... so you store everything, including js files in the apache path. > How is this a "file-library"? I guess I'm still hung up on the meaning > of "file" and "library" His file library is just one line of CSS that tells the browser to load everything from somewhere else (Apache2). > Now, one thing that keeps bugging me is that when a session expires, I > get an error like: > > Error: "/seaside/pier/seaside/pier/ > Why? > > My older seaside 2.6 site doesn't do this. The user just has to click > again to go to the link. Is this another setting? No, this looks like a Seaside + Pier combination. It might be that a newer version of one of them is required. Lukas should know more. > I'll search the archives once again for expiry and expire, but I didn't > find any definitive explanation. > > BTW: I'm collecting all of these "setup" tidbits to create a FAQ. I hope > it can be handy for others. Very good. Philippe > -- > brad fuller > http://www.Sonaural.com/ > +1 (408) 799-6124 > > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > From sebjulliand at gmail.com Tue Mar 6 10:51:40 2007 From: sebjulliand at gmail.com (=?ISO-8859-1?Q?S=E9bastien_Julliand?=) Date: Tue, 6 Mar 2007 10:51:40 +0100 Subject: MaCheckbox In-Reply-To: <66666f210703051514s25d59d78ma4005bc16938d933@mail.gmail.com> References: <4f6c865a0703051313v64f90984yeaa6e7f1ffd9e67e@mail.gmail.com> <66666f210703051514s25d59d78ma4005bc16938d933@mail.gmail.com> Message-ID: <4f6c865a0703060151n1ac7433fjff5711d80ed2ea7a@mail.gmail.com> 2007/3/6, Philippe Marschall : > > 2007/3/5, S?bastien Julliand : > > Hi, > > > > I don't understand why but I can't add checkboxes to my MAReport. > > I try to use something like: > > > > report addColumn: (MACheckboxColumn new). > > > > But it keeps telling: > > > > MessageNotUnderstood: WARenderCanvas>>anchorWithAction:do: > > > > I think I missed something but it doesn't sound trivial to me. Any > ideas? > > Thanks in advance, cheers! > > The MAActionColumn uses the old renderer that was deprecated in > Seaside 2.7 and removed in Seaside 2.8. A short term fix is to add > > rendererClass > ^WAHtmlRenderer > > to MAActionColumn > > Philippe > > > -- > > S?bastien JULLIAND > > > > _______________________________________________ > > SmallWiki, Magritte, Pier and Related Tools ... > > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > > > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki Thanks Philippe, but that didn't fix my problem. But I found another solution: I replaced: html checkboxWithValue: (self isSelected: anObject) callback: [ :value | self select: anObject value: value ] By: html checkbox value: (self isSelected: anObject); callback:[ :value | self select: anObject value: value ] In MACheckBoxColumn>>renderCellFormContent:on:, and now it works properly. -- S?bastien JULLIAND -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20070306/bd530bd8/attachment.html From brad at sonaural.com Wed Mar 7 00:11:04 2007 From: brad at sonaural.com (Brad Fuller) Date: Tue, 06 Mar 2007 15:11:04 -0800 Subject: no halos on pier Message-ID: <45EDF508.1050704@sonaural.com> What does it mean if I don't have any halos? I toggle halos, and I do get the R S P, but there are no halos. Other applications do not suffer from this problem - they have halos. -- brad fuller http://www.Sonaural.com/ +1 (408) 799-6124 From philippe.marschall at gmail.com Wed Mar 7 09:52:21 2007 From: philippe.marschall at gmail.com (Philippe Marschall) Date: Wed, 7 Mar 2007 09:52:21 +0100 Subject: no halos on pier In-Reply-To: <45EDF508.1050704@sonaural.com> References: <45EDF508.1050704@sonaural.com> Message-ID: <66666f210703070052m48fc67aayac83e9753cbb72ce@mail.gmail.com> 2007/3/7, Brad Fuller : > What does it mean if I don't have any halos? I toggle halos, and I do > get the R S P, but there are no halos. Other applications do not suffer > from this problem - they have halos. Can you provide more information? Screenshots? urls of halos? What do the urls of halos return, for pier, for other applications? Philippe > -- > brad fuller > http://www.Sonaural.com/ > +1 (408) 799-6124 > > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > From Martial.Boniou at ifrance.com Wed Mar 7 14:18:36 2007 From: Martial.Boniou at ifrance.com (Martial Boniou) Date: Wed, 7 Mar 2007 14:18:36 +0100 Subject: AnObsoleteMAPriorityContainer In-Reply-To: References: <235a8bc60703020819h7a98da54y91aaffc4ee0f6769@mail.gmail.com> Message-ID: <20070307131836.GA1046@cendre> Hi, I upgraded Magritte/Pier to do to the lastest version on MC running a 3.9 image today. I got an error when I go in a PREditCommand: MessageNotUnderstood: AnObsoleteMAPriorityContainer>>label: I upgraded the same package in two other images and it works fine. I believe it's not a bug related to magritte but a mistake I made. I don't really know what I missed. I change the PRKernel, reset all instances, etc... but it doesn't change so I flush all subInstances of MANamedBuilder but it didn't repair my pier. Have you got an idea how to detach this unreferenced instance ? Thanks, -- Martial From robkearns at gmail.com Wed Mar 7 16:52:14 2007 From: robkearns at gmail.com (Robert Kearns) Date: Wed, 7 Mar 2007 15:52:14 +0000 Subject: Magritte field formatting Message-ID: <235a8bc60703070752yd09384s17ece387ce784378@mail.gmail.com> Hi Can someone please give me some pointers on how to do the following things with Magritte: - Display validation errors next to the appropriate fields. - Display extra text along with a field. e.g. 'minimum 6 chars' after a password field. - Using the tutorial model, if I have a person with two phone numbers. Is it possible to display the phone number fields directly rather than in a table with headings and buttons? Thanks Rob -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20070307/73f9abc1/attachment.html From norbert at hartl.name Wed Mar 7 17:47:40 2007 From: norbert at hartl.name (Norbert Hartl) Date: Wed, 07 Mar 2007 17:47:40 +0100 Subject: Input is conflicting with concurrent modification Message-ID: <1173286060.6236.47.camel@localhost> Hi, I have a problem when using magritte generated forms. Sometimes if I edit a form which has a reference to another class (e.g. MAToOneRelationDescription) I cannot submit the form. I always get Input is conflicting with concurrent modification as en error. How can I prevent this? Thanks, Norbert From sebjulliand at gmail.com Wed Mar 7 18:30:00 2007 From: sebjulliand at gmail.com (=?ISO-8859-1?Q?S=E9bastien_Julliand?=) Date: Wed, 7 Mar 2007 18:30:00 +0100 Subject: Using existing descriptions and their values Message-ID: <4f6c865a0703070930u19b04608kb885795f05a2a44a@mail.gmail.com> Hi, I have a model (PRPageModel) that contains some descriptions (like how many links contains a page, how many files, ...). These informations are taken from a visitor that walks over pier pages. I use magritte reports to display these informations (as they are all described using magritte), but i would like to display these descriptions AND PRPage descriptions (name, title, parent...). Is it possible to do so or do I have to include a copy of these descriptions in PRPageModel? (you might call that a "description concatenation" :) Cheers -- S?bastien JULLIAND -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20070307/65112ecf/attachment.html From renggli at iam.unibe.ch Wed Mar 7 22:06:29 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Wed, 7 Mar 2007 22:06:29 +0100 Subject: no halos on pier In-Reply-To: <66666f210703070052m48fc67aayac83e9753cbb72ce@mail.gmail.com> References: <45EDF508.1050704@sonaural.com> <66666f210703070052m48fc67aayac83e9753cbb72ce@mail.gmail.com> Message-ID: <103843B9-B081-4C26-8D23-919610FBD2D9@iam.unibe.ch> >> What does it mean if I don't have any halos? I toggle halos, and I do >> get the R S P, but there are no halos. Other applications do not >> suffer >> from this problem - they have halos. > > Can you provide more information? Screenshots? urls of halos? What do > the urls of halos return, for pier, for other applications? Depending on the CSS that is applied to your application the halos might be turned unusable. This is an unfortunate problem of the Seaside halos and CSS in general. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From renggli at iam.unibe.ch Wed Mar 7 22:07:57 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Wed, 7 Mar 2007 22:07:57 +0100 Subject: AnObsoleteMAPriorityContainer In-Reply-To: <20070307131836.GA1046@cendre> References: <235a8bc60703020819h7a98da54y91aaffc4ee0f6769@mail.gmail.com> <20070307131836.GA1046@cendre> Message-ID: <5229E480-A453-4556-93DD-EBB62AC1BA65@iam.unibe.ch> > I upgraded Magritte/Pier to do to the lastest version on MC running > a 3.9 > image today. I got an error when I go in a PREditCommand: > > MessageNotUnderstood: > AnObsoleteMAPriorityContainer>>label: Where is this code called from? Can you provide a full stack trace? Maybe you need to recompile the packages from the Monticello Browser (context menu). Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From renggli at iam.unibe.ch Wed Mar 7 22:12:18 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Wed, 7 Mar 2007 22:12:18 +0100 Subject: Magritte field formatting In-Reply-To: <235a8bc60703070752yd09384s17ece387ce784378@mail.gmail.com> References: <235a8bc60703070752yd09384s17ece387ce784378@mail.gmail.com> Message-ID: <3DC68A5C-8FAD-4A7F-A550-6B9E32C4EE14@iam.unibe.ch> > - Display validation errors next to the appropriate fields. > - Display extra text along with a field. e.g. 'minimum 6 chars' > after a password field. > - Using the tutorial model, if I have a person with two phone > numbers. Is it possible to display the phone number fields directly > rather than in a table with headings and buttons? Have a look at my slides at http://www.lukas-renggli.ch/smalltalk/ magritte/tutorial.pdf. There are several ways described to customize the output. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From renggli at iam.unibe.ch Wed Mar 7 22:17:04 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Wed, 7 Mar 2007 22:17:04 +0100 Subject: Pier setup blues - Next Topic: expiration In-Reply-To: <66666f210703052315u3442fa7ka1771fa8f68088d5@mail.gmail.com> References: <45ECA1A7.80205@sonaural.com> <66666f210703052315u3442fa7ka1771fa8f68088d5@mail.gmail.com> Message-ID: <8CEBF9D2-BD23-4C3B-9788-1BC481F397BF@iam.unibe.ch> >> Now, one thing that keeps bugging me is that when a session >> expires, I get an error like: >> >> Error: "/seaside/pier/seaside/pier/> >> Why? >> >> My older seaside 2.6 site doesn't do this. The user just has to click >> again to go to the link. Is this another setting? > > No, this looks like a Seaside + Pier combination. It might be that a > newer version of one of them is required. Lukas should know more. You need a rewrite rule that catches this problem and redirects to the right entry point. This can be easily fixed in Seaside, unfortunately it has some major side-effects to other applications and therefor never made it into the distribution. See the Seaside mailing list for a discussion about that. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From philippe.marschall at gmail.com Wed Mar 7 23:29:38 2007 From: philippe.marschall at gmail.com (Philippe Marschall) Date: Wed, 7 Mar 2007 23:29:38 +0100 Subject: Input is conflicting with concurrent modification In-Reply-To: <1173286060.6236.47.camel@localhost> References: <1173286060.6236.47.camel@localhost> Message-ID: <66666f210703071429v2e2a5e3ci83705b34e6aab8d4@mail.gmail.com> 2007/3/7, Norbert Hartl : > Hi, > > I have a problem when using magritte generated forms. > Sometimes if I edit a form which has a reference to > another class (e.g. MAToOneRelationDescription) I cannot > submit the form. I always get > > Input is conflicting with concurrent modification > > as en error. How can I prevent this? This is often a problem with object identity. Can you provide more information? Do you have accessor that generate new instances or collections everyt time they are called? Philippe > Thanks, > > Norbert > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > From norbert at hartl.name Thu Mar 8 00:40:00 2007 From: norbert at hartl.name (Norbert Hartl) Date: Thu, 08 Mar 2007 00:40:00 +0100 Subject: Input is conflicting with concurrent modification In-Reply-To: <66666f210703071429v2e2a5e3ci83705b34e6aab8d4@mail.gmail.com> References: <1173286060.6236.47.camel@localhost> <66666f210703071429v2e2a5e3ci83705b34e6aab8d4@mail.gmail.com> Message-ID: <1173310800.6236.54.camel@localhost> On Wed, 2007-03-07 at 23:29 +0100, Philippe Marschall wrote: > 2007/3/7, Norbert Hartl : > > Hi, > > > > I have a problem when using magritte generated forms. > > Sometimes if I edit a form which has a reference to > > another class (e.g. MAToOneRelationDescription) I cannot > > submit the form. I always get > > > > Input is conflicting with concurrent modification > > > > as en error. How can I prevent this? > > This is often a problem with object identity. > Can you provide more information? Do you have accessor that generate > new instances or collections everyt time they are called? > Thanks for the hint. I'm using Glorp and this introduces this particular error. Getting an object from the database gives the object whichyou can edit. But the instances variables are only Proxies. And this disturbed Magritte. I don't know exactly why but a wild guess would be the difference between classes: and the class of the Proxy. thanks again, Norbert From ramon.leon at allresnet.com Thu Mar 8 03:46:19 2007 From: ramon.leon at allresnet.com (Ramon Leon) Date: Wed, 7 Mar 2007 19:46:19 -0700 Subject: Input is conflicting with concurrent modification In-Reply-To: <1173310800.6236.54.camel@localhost> References: <1173286060.6236.47.camel@localhost><66666f210703071429v2e2a5e3ci83705b34e6aab8d4@mail.gmail.com> <1173310800.6236.54.camel@localhost> Message-ID: <034201c7612b$f377a120$9700a8c0@hq.allresnet.com> > Thanks for the hint. I'm using Glorp and this introduces this > particular error. Getting an object from the database gives > the object whichyou can edit. But the instances variables > are only Proxies. And this disturbed Magritte. I don't know > exactly why but a wild guess would be the difference between classes: > and the class of the Proxy. > > thanks again, > > Norbert You could probably fix it by implementing = anObject ^self == anObject yourself Forcing the proxy to resolve. This is basically what I had to do in the MagritteGlorp ActiveRecord package to avoid the same error. Ramon Leon http://onsmalltalk.com From renggli at iam.unibe.ch Thu Mar 8 08:24:38 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Thu, 8 Mar 2007 08:24:38 +0100 Subject: Input is conflicting with concurrent modification In-Reply-To: <034201c7612b$f377a120$9700a8c0@hq.allresnet.com> References: <1173286060.6236.47.camel@localhost><66666f210703071429v2e2a5e3ci83705b34e6aab8d4@mail.gmail.com> <1173310800.6236.54.camel@localhost> <034201c7612b$f377a120$9700a8c0@hq.allresnet.com> Message-ID: <1577D28A-384A-453B-BFA9-25624DB4EDF5@iam.unibe.ch> >> Thanks for the hint. I'm using Glorp and this introduces this >> particular error. Getting an object from the database gives >> the object whichyou can edit. But the instances variables >> are only Proxies. And this disturbed Magritte. I don't know >> exactly why but a wild guess would be the difference between classes: >> and the class of the Proxy. >> >> thanks again, >> >> Norbert > > You could probably fix it by implementing > > = anObject > ^self == anObject yourself > > Forcing the proxy to resolve. This is basically what I had to do > in the > MagritteGlorp ActiveRecord package to avoid the same error. Or change the way objects are cached, see the subclasses MAMemento. We once used OmniBase together with Magritte and there we introduced a special subclass of MAMemento resolving proxies and validating changes with respect to the database (conflicts, concurrent modifications, etc). I guess something like that could help in your context as well. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From norbert at hartl.name Thu Mar 8 08:36:19 2007 From: norbert at hartl.name (Norbert Hartl) Date: Thu, 08 Mar 2007 08:36:19 +0100 Subject: Input is conflicting with concurrent modification In-Reply-To: <034201c7612b$f377a120$9700a8c0@hq.allresnet.com> References: <1173286060.6236.47.camel@localhost> <66666f210703071429v2e2a5e3ci83705b34e6aab8d4@mail.gmail.com> <1173310800.6236.54.camel@localhost> <034201c7612b$f377a120$9700a8c0@hq.allresnet.com> Message-ID: <1173339379.6236.68.camel@localhost> On Wed, 2007-03-07 at 19:46 -0700, Ramon Leon wrote: > > Thanks for the hint. I'm using Glorp and this introduces this > > particular error. Getting an object from the database gives > > the object whichyou can edit. But the instances variables > > are only Proxies. And this disturbed Magritte. I don't know > > exactly why but a wild guess would be the difference between classes: > > and the class of the Proxy. > > > > thanks again, > > > > Norbert > > You could probably fix it by implementing > > = anObject > ^self == anObject yourself > I added it to my getter method. Actually I used yourSelf instead of yourself which seems coming from Glorp. Is there any difference? Do you think to change = is sufficient? The operator in Memento is ~= to check conflicts. Or do you I misunderstand something? Norbert From norbert at hartl.name Thu Mar 8 08:38:00 2007 From: norbert at hartl.name (Norbert Hartl) Date: Thu, 08 Mar 2007 08:38:00 +0100 Subject: Input is conflicting with concurrent modification In-Reply-To: <1577D28A-384A-453B-BFA9-25624DB4EDF5@iam.unibe.ch> References: <1173286060.6236.47.camel@localhost> <66666f210703071429v2e2a5e3ci83705b34e6aab8d4@mail.gmail.com> <1173310800.6236.54.camel@localhost> <034201c7612b$f377a120$9700a8c0@hq.allresnet.com> <1577D28A-384A-453B-BFA9-25624DB4EDF5@iam.unibe.ch> Message-ID: <1173339480.6236.70.camel@localhost> On Thu, 2007-03-08 at 08:24 +0100, Lukas Renggli wrote: > >> Thanks for the hint. I'm using Glorp and this introduces this > >> particular error. Getting an object from the database gives > >> the object whichyou can edit. But the instances variables > >> are only Proxies. And this disturbed Magritte. I don't know > >> exactly why but a wild guess would be the difference between classes: > >> and the class of the Proxy. > >> > >> thanks again, > >> > >> Norbert > > > > You could probably fix it by implementing > > > > = anObject > > ^self == anObject yourself > > > > Forcing the proxy to resolve. This is basically what I had to do > > in the > > MagritteGlorp ActiveRecord package to avoid the same error. > > Or change the way objects are cached, see the subclasses MAMemento. > We once used OmniBase together with Magritte and there we introduced > a special subclass of MAMemento resolving proxies and validating > changes with respect to the database (conflicts, concurrent > modifications, etc). I guess something like that could help in your > context as well. > That sounds good, too. To enable it I have to change Object>>mementoClass I guess. Is there any other way to select a specific mement class? Norbert From renggli at iam.unibe.ch Thu Mar 8 09:38:39 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Thu, 8 Mar 2007 09:38:39 +0100 Subject: Input is conflicting with concurrent modification In-Reply-To: <1173339379.6236.68.camel@localhost> References: <1173286060.6236.47.camel@localhost> <66666f210703071429v2e2a5e3ci83705b34e6aab8d4@mail.gmail.com> <1173310800.6236.54.camel@localhost> <034201c7612b$f377a120$9700a8c0@hq.allresnet.com> <1173339379.6236.68.camel@localhost> Message-ID: > I added it to my getter method. Actually I used yourSelf > instead of yourself which seems coming from Glorp. Is > there any difference? For efficiency #yourself is usually not really sent, therefor most object databases have their own implementation that uses a slightly different selector. This is the same for example in OmniBase. > Do you think to change = is sufficient? The operator in > Memento is ~= to check conflicts. Or do you I misunderstand > something? Yes, if this is a problem we could also implement it using self original = self pullRaw) not Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From renggli at iam.unibe.ch Thu Mar 8 09:45:27 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Thu, 8 Mar 2007 09:45:27 +0100 Subject: Input is conflicting with concurrent modification In-Reply-To: <1173339480.6236.70.camel@localhost> References: <1173286060.6236.47.camel@localhost> <66666f210703071429v2e2a5e3ci83705b34e6aab8d4@mail.gmail.com> <1173310800.6236.54.camel@localhost> <034201c7612b$f377a120$9700a8c0@hq.allresnet.com> <1577D28A-384A-453B-BFA9-25624DB4EDF5@iam.unibe.ch> <1173339480.6236.70.camel@localhost> Message-ID: >> Or change the way objects are cached, see the subclasses MAMemento. >> We once used OmniBase together with Magritte and there we introduced >> a special subclass of MAMemento resolving proxies and validating >> changes with respect to the database (conflicts, concurrent >> modifications, etc). I guess something like that could help in your >> context as well. >> > That sounds good, too. To enable it I have to change > Object>>mementoClass I guess. Is there any other way to select a > specific mement class? Yes, there is no other easy way right now. In fact, speaking about our OmniBase project again, we used a custom subclass of Object where we overrode #mementoClass and where we all our model classes inherited from. As an attachement you find our custom memento class. Since this is from a very old version of Magritte it won't work with current versions (e.g. at that time the memento hierarchy was called wrapper). Maybe you can still get some ideas from its implementation? -------------- next part -------------- A non-text attachment was scrubbed... Name: MAOmniWrapper.st Type: application/octet-stream Size: 1001 bytes Desc: not available Url : http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20070308/bd7e1fd3/MAOmniWrapper.obj -------------- next part -------------- Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From brad at sonaural.com Thu Mar 8 17:19:10 2007 From: brad at sonaural.com (Brad Fuller) Date: Thu, 08 Mar 2007 08:19:10 -0800 Subject: no halos on pier In-Reply-To: <103843B9-B081-4C26-8D23-919610FBD2D9@iam.unibe.ch> References: <45EDF508.1050704@sonaural.com> <66666f210703070052m48fc67aayac83e9753cbb72ce@mail.gmail.com> <103843B9-B081-4C26-8D23-919610FBD2D9@iam.unibe.ch> Message-ID: <45F0377E.1000800@sonaural.com> Lukas Renggli wrote: >>> What does it mean if I don't have any halos? I toggle halos, and I do >>> get the R S P, but there are no halos. Other applications do not >>> suffer >>> from this problem - they have halos. >> Can you provide more information? Screenshots? urls of halos? What do >> the urls of halos return, for pier, for other applications? > > Depending on the CSS that is applied to your application the halos > might be turned unusable. This is an unfortunate problem of the > Seaside halos and CSS in general. It's the standard Pier css files retrieved thru apache. I'll send a screenshot and more info later (at a conference right now) Thanks! -- brad fuller http://www.Sonaural.com/ +1 (408) 799-6124 From brad at sonaural.com Thu Mar 8 17:21:29 2007 From: brad at sonaural.com (Brad Fuller) Date: Thu, 08 Mar 2007 08:21:29 -0800 Subject: Pier setup blues - Next Topic: expiration In-Reply-To: <8CEBF9D2-BD23-4C3B-9788-1BC481F397BF@iam.unibe.ch> References: <45ECA1A7.80205@sonaural.com> <66666f210703052315u3442fa7ka1771fa8f68088d5@mail.gmail.com> <8CEBF9D2-BD23-4C3B-9788-1BC481F397BF@iam.unibe.ch> Message-ID: <45F03809.20603@sonaural.com> Lukas Renggli wrote: >>> Now, one thing that keeps bugging me is that when a session >>> expires, I get an error like: >>> >>> Error: "/seaside/pier/seaside/pier/>> >>> Why? >>> >>> My older seaside 2.6 site doesn't do this. The user just has to click >>> again to go to the link. Is this another setting? >> No, this looks like a Seaside + Pier combination. It might be that a >> newer version of one of them is required. Lukas should know more. > > You need a rewrite rule that catches this problem and redirects to > the right entry point. This can be easily fixed in Seaside, > unfortunately it has some major side-effects to other applications > and therefor never made it into the distribution. See the Seaside > mailing list for a discussion about that. thanks Lukas, I'll search again (I searched on expire/expiry and didn't get any good hits. I'll dig deeper. Thanks) -- brad fuller http://www.Sonaural.com/ +1 (408) 799-6124 From renggli at iam.unibe.ch Thu Mar 8 18:18:16 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Thu, 8 Mar 2007 18:18:16 +0100 Subject: AnObsoleteMAPriorityContainer In-Reply-To: <20070308112010.GA604@cendre> References: <235a8bc60703020819h7a98da54y91aaffc4ee0f6769@mail.gmail.com> <20070307131836.GA1046@cendre> <5229E480-A453-4556-93DD-EBB62AC1BA65@iam.unibe.ch> <20070308112010.GA604@cendre> Message-ID: Hi Martial, > I am replying in private not to saturate the mailing list. I attached > the full stark trace. I reinstalled every packages and it works well, > but I don't understand what happened. try to recompile the method #descriptionContainer in Class. I think that should fix the problem. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From brad at sonaural.com Thu Mar 8 19:42:01 2007 From: brad at sonaural.com (Brad Fuller) Date: Thu, 08 Mar 2007 10:42:01 -0800 Subject: no halos on pier In-Reply-To: <45F0377E.1000800@sonaural.com> References: <45EDF508.1050704@sonaural.com> <66666f210703070052m48fc67aayac83e9753cbb72ce@mail.gmail.com> <103843B9-B081-4C26-8D23-919610FBD2D9@iam.unibe.ch> <45F0377E.1000800@sonaural.com> Message-ID: <45F058F9.1080807@sonaural.com> Brad Fuller wrote: > Lukas Renggli wrote: >>>> What does it mean if I don't have any halos? I toggle halos, and I do >>>> get the R S P, but there are no halos. Other applications do not >>>> suffer >>>> from this problem - they have halos. >>> Can you provide more information? Screenshots? urls of halos? What do >>> the urls of halos return, for pier, for other applications? >> Depending on the CSS that is applied to your application the halos >> might be turned unusable. This is an unfortunate problem of the >> Seaside halos and CSS in general. > > It's the standard Pier css files retrieved thru apache. (update before I have to do "real work"): Hmm... I copied the image locally and started it up. halos appeared. So did the standard Pier css styles (which would be coming from the internal stylesheets, I presume.) The stylesheets on the remote website are found perfectly fine using the rewrite rules. And, they are just Lukas's unmodified Pier css files. From Martial.Boniou at ifrance.com Thu Mar 8 22:09:30 2007 From: Martial.Boniou at ifrance.com (Martial Boniou) Date: Thu, 8 Mar 2007 22:09:30 +0100 Subject: AnObsoleteMAPriorityContainer In-Reply-To: References: <235a8bc60703020819h7a98da54y91aaffc4ee0f6769@mail.gmail.com> <20070307131836.GA1046@cendre> <5229E480-A453-4556-93DD-EBB62AC1BA65@iam.unibe.ch> <20070308112010.GA604@cendre> Message-ID: <20070308210930.GA491@cendre> Hi, Perfect! It vorks now. It's a good thing to know for the next I play with the MC merge as a dumb. Bye, -- Martial Lukas Renggli a ?crit : | Hi Martial, | | > I am replying in private not to saturate the mailing list. I attached | > the full stark trace. I reinstalled every packages and it works well, | > but I don't understand what happened. | | try to recompile the method #descriptionContainer in Class. I think | that should fix the problem. | | Cheers, | Lukas | | -- | Lukas Renggli | http://www.lukas-renggli.ch | | | | _______________________________________________ | SmallWiki, Magritte, Pier and Related Tools ... | https://www.iam.unibe.ch/mailman/listinfo/smallwiki From sebjulliand at gmail.com Mon Mar 12 17:29:10 2007 From: sebjulliand at gmail.com (=?ISO-8859-1?Q?S=E9bastien_Julliand?=) Date: Mon, 12 Mar 2007 17:29:10 +0100 Subject: Using existing descriptions and their values In-Reply-To: <4f6c865a0703070930u19b04608kb885795f05a2a44a@mail.gmail.com> References: <4f6c865a0703070930u19b04608kb885795f05a2a44a@mail.gmail.com> Message-ID: <4f6c865a0703120929x14b5b386p1289f5546de1f8e@mail.gmail.com> 2007/3/7, S?bastien Julliand : > > Hi, > > I have a model (PRPageModel) that contains some descriptions (like how > many links contains a page, how many files, ...). These informations are > taken from a visitor that walks over pier pages. > I use magritte reports to display these informations (as they are all > described using magritte), but i would like to display these descriptions > AND PRPage descriptions (name, title, parent...). Is it possible to do so or > do I have to include a copy of these descriptions in PRPageModel? (you might > call that a "description concatenation" :) > > Cheers > -- > S?bastien JULLIAND Hi again, So, is there an elegant solution to this problem or should I simply heritate from PRPage to retrieve its description and add new ones? That may possibly works but it doesn't sound clean to me. Is there something else that I can do then? Cheers, -- S?bastien JULLIAND -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20070312/04379a35/attachment.html From renggli at iam.unibe.ch Mon Mar 12 18:03:41 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Mon, 12 Mar 2007 18:03:41 +0100 Subject: Using existing descriptions and their values In-Reply-To: <4f6c865a0703120929x14b5b386p1289f5546de1f8e@mail.gmail.com> References: <4f6c865a0703070930u19b04608kb885795f05a2a44a@mail.gmail.com> <4f6c865a0703120929x14b5b386p1289f5546de1f8e@mail.gmail.com> Message-ID: <083C3ED9-C7FA-4793-8F48-BC0B87B0633D@iam.unibe.ch> > So, is there an elegant solution to this problem or should I simply > heritate from PRPage to retrieve its description and add new ones? > That may possibly works but it doesn't sound clean to me. Is there > something else that I can do then? Class extensions. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From mathieu.cassonnet at laposte.net Tue Mar 13 00:16:07 2007 From: mathieu.cassonnet at laposte.net (Mathieu Cassonnet) Date: Tue, 13 Mar 2007 00:16:07 +0100 Subject: Render PRInternalLink Message-ID: <45F5DF37.2020607@laposte.net> Hi, I create a visitor that collect broken link and add them to a collection but I don't know how can I render those links. A pic is attach to show you how I proceed actually but I should forgot something! :-\ I use the same visitor to collect files and I have the same problem! Regards Mat -------------- next part -------------- A non-text attachment was scrubbed... Name: BadCollection.png Type: image/png Size: 31052 bytes Desc: not available Url : http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20070313/7b789510/BadCollection-0001.png From renggli at iam.unibe.ch Tue Mar 13 07:15:07 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Tue, 13 Mar 2007 07:15:07 +0100 Subject: Render PRInternalLink In-Reply-To: <45F5DF37.2020607@laposte.net> References: <45F5DF37.2020607@laposte.net> Message-ID: Hi Mathieu, > I create a visitor that collect broken link and add them to a > collection but I don't know how can I render those links. I think you already managed the hardest part of this task by writing the visitor ;-) What you do to display something in Pier is usually just to write your own small Seaside application/component. Create a subclass of WAComponent, override #canBeRoot and #renderContentOn: and add it to your page as I once showed in a screen-cast: http://www.lukas-renggli.ch/smalltalk/pier/videos/sushi.mov > A pic is attach to show you how I proceed actually but I should > forgot something! :-\ > I use the same visitor to collect files and I have the same problem! To make your life easy have a look at the subclasses of PRStructuresWidget. These components basically all display a list of structures, mostly somehow collected using a visitor. As you see for example in PRReferencesWidget the only thing you need to override is #unfilteredItems to return a collection of structures. HTH, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From glpunzi at zyoconsulting.com Tue Mar 13 17:45:41 2007 From: glpunzi at zyoconsulting.com (Giuseppe Luigi Punzi) Date: Tue, 13 Mar 2007 17:45:41 +0100 Subject: Problem with Pier Blog Message-ID: <45F6D535.6080604@zyoconsulting.com> Hi, I got it a 3.9 and installed pier from squeakmap. Then, from monticello, I installed Pier plugin. I created a new bog, and when I try to open it, I get the next error: MessageNotUnderstood: WARenderedHtmlRoot>>rss * WARenderedHtmlRoot(Object)>>doesNotUnderstand: #rss self a WARenderedHtmlRoot *temps* aMessage rss *inst vars* docType ' title 'Pier: Giuseppe' htmlAttrs a WAHtmlAttributes headAttrs a WAHtmlAttributes bodyAttrs a WAHtmlAttributes headElements an OrderedCollection(a WAMetaElement a WALinkElement a WALinkElement a WALinkElement a WAScriptEleme...etc... scripts an OrderedCollection() styles an OrderedCollection('#toolbar { position: fixed; bottom: 0; left: 0; right: 0; margin-top: 40px; pa...etc... resourceBaseUrl nil context a WARenderingContext * PBBlogHtmlView(PBHtmlView)>>updateRoot: self a PBBlogHtmlView *temps* aHtmlRoot a WARenderedHtmlRoot *inst vars* decoration a WAStateHolder(a WAAnswerHandler) context a PRContext stucture: 'Giuseppe' command: 'View' blog a PBBlog name: 'Giuseppe' posts #() batcher a WABatchedList tag nil * [] in WARender>>buildDocRoot {[:each | each updateRoot: docRoot]} self a WARender *temps* docRoot a WARenderedHtmlRoot each a PBBlogHtmlView *inst vars* root a WAToolFrame context a WARenderingContext request nil url a WAUrl * PBBlogHtmlView(WAPresenter)>>withNextPresentersDo: self a PBBlogHtmlView *temps* aBlock [] in WARender>>buildDocRoot {[:each | each updateRoot: docRoot]} ea nil *inst vars* decoration a WAStateHolder(a WAAnswerHandler) context a PRContext stucture: 'Giuseppe' command: 'View' blog a PBBlog name: 'Giuseppe' posts #() batcher a WABatchedList tag nil * [] in WAAnswerHandler(WAPresenter)>>withNextPresentersDo: {[:ea | ea withNextPresentersDo: aBlock]} self a WAAnswerHandler *temps* aBlock [] in WARender>>buildDocRoot {[:each | each updateRoot: docRoot]} ea a PBBlogHtmlView *inst vars* next a WAStateHolder(a PBBlogHtmlView) block [] in PRContentsWidget>>buildComponent: {[:value | self onAnswerCommand: value]} Thanks in advance. -- Giuseppe Luigi Punzi :: ZYO :: Solutions everywhere email: glpunzi at zyoconsulting.com tlfno: +34 675 145 912 web: http://www.zyoconsulting.com From renggli at iam.unibe.ch Tue Mar 13 17:51:12 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Tue, 13 Mar 2007 17:51:12 +0100 Subject: Problem with Pier Blog In-Reply-To: <45F6D535.6080604@zyoconsulting.com> References: <45F6D535.6080604@zyoconsulting.com> Message-ID: <52CCC8B9-4A98-4D70-8165-81433B1B8EA6@iam.unibe.ch> > I get the next error: > > > MessageNotUnderstood: WARenderedHtmlRoot>>rss The Pier blog requires the package RSRSS from http:// www.squeaksource.com/rsrss as a prerequisite. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From glpunzi at zyoconsulting.com Tue Mar 13 18:00:18 2007 From: glpunzi at zyoconsulting.com (Giuseppe Luigi Punzi) Date: Tue, 13 Mar 2007 18:00:18 +0100 Subject: Problem with Pier Blog In-Reply-To: <52CCC8B9-4A98-4D70-8165-81433B1B8EA6@iam.unibe.ch> References: <45F6D535.6080604@zyoconsulting.com> <52CCC8B9-4A98-4D70-8165-81433B1B8EA6@iam.unibe.ch> Message-ID: <45F6D8A2.9080109@zyoconsulting.com> Now works. Thanks. Lukas Renggli escribi?: >> I get the next error: >> >> >> MessageNotUnderstood: WARenderedHtmlRoot>>rss > > The Pier blog requires the package RSRSS from http:// > www.squeaksource.com/rsrss as a prerequisite. > > Cheers, > Lukas > -- Giuseppe Luigi Punzi :: ZYO :: Solutions everywhere email: glpunzi at zyoconsulting.com tlfno: +34 675 145 912 web: http://www.zyoconsulting.com From mathieu.cassonnet at laposte.net Tue Mar 13 18:04:25 2007 From: mathieu.cassonnet at laposte.net (Mathieu Cassonnet) Date: Tue, 13 Mar 2007 18:04:25 +0100 Subject: Render PRInternalLink In-Reply-To: References: <45F5DF37.2020607@laposte.net> Message-ID: <45F6D999.80601@laposte.net> >> A pic is attach to show you how I proceed actually but I should >> forgot something! :-\ >> I use the same visitor to collect files and I have the same problem! >> > > To make your life easy have a look at the subclasses of > PRStructuresWidget. These components basically all display a list of > structures, mostly somehow collected using a visitor. As you see for > example in PRReferencesWidget the only thing you need to override is > #unfilteredItems to return a collection of structures. > > HTH, > Lukas > > Yep this help, I found that I use callback: instead of goto: ! Now it's work, thank once again! :-) Mathieu From glpunzi at zyoconsulting.com Tue Mar 13 18:04:00 2007 From: glpunzi at zyoconsulting.com (Giuseppe Luigi Punzi) Date: Tue, 13 Mar 2007 18:04:00 +0100 Subject: Themes on Pier Message-ID: <45F6D980.2070909@zyoconsulting.com> Hi, I would like to know where can I find information about personalize Pier web. I talk about using something like themes like in other CMS. How can I create new themes? Cheers. -- Giuseppe Luigi Punzi :: ZYO :: Solutions everywhere email: glpunzi at zyoconsulting.com tlfno: +34 675 145 912 web: http://www.zyoconsulting.com From renggli at iam.unibe.ch Tue Mar 13 18:33:27 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Tue, 13 Mar 2007 18:33:27 +0100 Subject: Themes on Pier In-Reply-To: <45F6D980.2070909@zyoconsulting.com> References: <45F6D980.2070909@zyoconsulting.com> Message-ID: Hi, > I would like to know where can I find information about personalize > Pier > web. I talk about using something like themes like in other CMS. How > can I create new themes? the first step is usually to create your custom environment as seen in http://www.lukas-renggli.ch/smalltalk/pier/videos/environment.mov. Next you need to provide a custom stylesheet, this is done the simplest by creating your own WAFileLibrary and uploading the images and styles. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From brad at sonaural.com Tue Mar 13 21:02:37 2007 From: brad at sonaural.com (Brad Fuller) Date: Tue, 13 Mar 2007 13:02:37 -0700 Subject: Javascript in pier page Message-ID: <45F7035D.6010206@sonaural.com> Is it possible to place javascript in a pier page? -- brad fuller http://www.Sonaural.com/ +1 (408) 799-6124 From renggli at iam.unibe.ch Tue Mar 13 21:15:37 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Tue, 13 Mar 2007 21:15:37 +0100 Subject: Javascript in pier page In-Reply-To: <45F7035D.6010206@sonaural.com> References: <45F7035D.6010206@sonaural.com> Message-ID: > Is it possible to place javascript in a pier page? Certainly, you can put any HTML into a page:
Click Me
For example this wiki-line should shake the text when you click it (you need to have the Scriptaculous libraries loaded). Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From philippe.marschall at gmail.com Tue Mar 13 21:23:07 2007 From: philippe.marschall at gmail.com (Philippe Marschall) Date: Tue, 13 Mar 2007 21:23:07 +0100 Subject: Javascript in pier page In-Reply-To: <45F7035D.6010206@sonaural.com> References: <45F7035D.6010206@sonaural.com> Message-ID: <66666f210703131323j3d3e4b3ai1c382d6588b8d04b@mail.gmail.com> Have a look at: http://spielverderber.seasidehosting.st/spielwiese that embeds several JavaScripts components into a page Philippe 2007/3/13, Brad Fuller : > Is it possible to place javascript in a pier page? > > -- > brad fuller > http://www.Sonaural.com/ > +1 (408) 799-6124 > > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > From brad at sonaural.com Tue Mar 13 21:34:24 2007 From: brad at sonaural.com (Brad Fuller) Date: Tue, 13 Mar 2007 13:34:24 -0700 Subject: Javascript in pier page In-Reply-To: References: <45F7035D.6010206@sonaural.com> Message-ID: <45F70AD0.10904@sonaural.com> Lukas Renggli wrote: >> Is it possible to place javascript in a pier page? > > Certainly, you can put any HTML into a page: > >
Click Me
> > For example this wiki-line should shake the text when you click it > (you need to have the Scriptaculous libraries loaded). I have the Scriptaculous library loaded, but this does nothing in a Pier page. I wonder if this is the same issue I had with search: if I load the scriptaculous library the search component does not work. If I unload it, it does work. Ideas where to look? -- brad fuller http://www.Sonaural.com/ +1 (408) 799-6124 From brad at sonaural.com Tue Mar 13 22:01:38 2007 From: brad at sonaural.com (Brad Fuller) Date: Tue, 13 Mar 2007 14:01:38 -0700 Subject: Javascript in pier page In-Reply-To: <45F70AD0.10904@sonaural.com> References: <45F7035D.6010206@sonaural.com> <45F70AD0.10904@sonaural.com> Message-ID: <45F71132.8030202@sonaural.com> Brad Fuller wrote: > Lukas Renggli wrote: >>> Is it possible to place javascript in a pier page? >> Certainly, you can put any HTML into a page: >> >>
Click Me
>> >> For example this wiki-line should shake the text when you click it >> (you need to have the Scriptaculous libraries loaded). > > I have the Scriptaculous library loaded, but this does nothing in a Pier > page. I wonder if this is the same issue I had with search: if I load > the scriptaculous library the search component does not work. If I > unload it, it does work. > > Ideas where to look? > BTW: The scriptaculous tests all work from the dispatcher. So, I would think it's something to do with Pier and javascript. -- brad fuller http://www.Sonaural.com/ +1 (408) 799-6124 From renggli at iam.unibe.ch Tue Mar 13 22:47:37 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Tue, 13 Mar 2007 22:47:37 +0100 Subject: Javascript in pier page In-Reply-To: <45F70AD0.10904@sonaural.com> References: <45F7035D.6010206@sonaural.com> <45F70AD0.10904@sonaural.com> Message-ID: <72174665-0BA4-4976-BC74-3E216E9B4D5D@iam.unibe.ch> >>> Is it possible to place javascript in a pier page? >> >> Certainly, you can put any HTML into a page: >> >>
Click Me
>> >> For example this wiki-line should shake the text when you click it >> (you need to have the Scriptaculous libraries loaded). > > I have the Scriptaculous library loaded, but this does nothing in a > Pier > page. I wonder if this is the same issue I had with search: if I load > the scriptaculous library the search component does not work. If I > unload it, it does work. > > Ideas where to look? FireBug is the only answer I know to any problem related to JavaScript: http://www.getfirebug.com/ What does it say? Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From brad at sonaural.com Tue Mar 13 23:02:56 2007 From: brad at sonaural.com (Brad Fuller) Date: Tue, 13 Mar 2007 15:02:56 -0700 Subject: Javascript in pier page In-Reply-To: <72174665-0BA4-4976-BC74-3E216E9B4D5D@iam.unibe.ch> References: <45F7035D.6010206@sonaural.com> <45F70AD0.10904@sonaural.com> <72174665-0BA4-4976-BC74-3E216E9B4D5D@iam.unibe.ch> Message-ID: <45F71F90.9020005@sonaural.com> Lukas Renggli wrote: >>>> Is it possible to place javascript in a pier page? >>> Certainly, you can put any HTML into a page: >>> >>>
Click Me
>>> >>> For example this wiki-line should shake the text when you click it >>> (you need to have the Scriptaculous libraries loaded). >> I have the Scriptaculous library loaded, but this does nothing in a >> Pier >> page. I wonder if this is the same issue I had with search: if I load >> the scriptaculous library the search component does not work. If I >> unload it, it does work. >> >> Ideas where to look? > > FireBug is the only answer I know to any problem related to JavaScript: > > http://www.getfirebug.com/ Man, that's handy! In the Script tab it says:

Error: "/seaside/mmiki/seaside/files/WAStandardFiles/externalAnchors.js" not found.

I don't quite know what this means. Why would it be looking in this path? (mmiki is the name of the pier kernel) From renggli at iam.unibe.ch Tue Mar 13 23:09:50 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Tue, 13 Mar 2007 23:09:50 +0100 Subject: Javascript in pier page In-Reply-To: <45F71F90.9020005@sonaural.com> References: <45F7035D.6010206@sonaural.com> <45F70AD0.10904@sonaural.com> <72174665-0BA4-4976-BC74-3E216E9B4D5D@iam.unibe.ch> <45F71F90.9020005@sonaural.com> Message-ID: >>> Ideas where to look? >> >> FireBug is the only answer I know to any problem related to >> JavaScript: >> >> http://www.getfirebug.com/ > > Man, that's handy! In the Script tab it says: > >

Error: > "/seaside/mmiki/seaside/files/WAStandardFiles/externalAnchors.js" not > found.

> > I don't quite know what this means. Why would it be looking in this > path? (mmiki is the name of the pier kernel) That's odd. Are you using Apache? Rewrite rules? Proxies? Obviously it cannot find the JavaScript files. Locally they should be reachable at http://localhost:8080/seaside/files/WAStandardFiles/ externalAnchors.js. Does that work? Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From brad at sonaural.com Tue Mar 13 23:29:16 2007 From: brad at sonaural.com (Brad Fuller) Date: Tue, 13 Mar 2007 15:29:16 -0700 Subject: Javascript in pier page In-Reply-To: References: <45F7035D.6010206@sonaural.com> <45F70AD0.10904@sonaural.com> <72174665-0BA4-4976-BC74-3E216E9B4D5D@iam.unibe.ch> <45F71F90.9020005@sonaural.com> Message-ID: <45F725BC.1070304@sonaural.com> Lukas Renggli wrote: >>>> Ideas where to look? >>> FireBug is the only answer I know to any problem related to >>> JavaScript: >>> >>> http://www.getfirebug.com/ >> Man, that's handy! In the Script tab it says: >> >>

Error: >> "/seaside/mmiki/seaside/files/WAStandardFiles/externalAnchors.js" not >> found.

>> >> I don't quite know what this means. Why would it be looking in this >> path? (mmiki is the name of the pier kernel) > > That's odd. Are you using Apache? Rewrite rules? Proxies? > > Obviously it cannot find the JavaScript files. Locally they should be > reachable at http://localhost:8080/seaside/files/WAStandardFiles/ > externalAnchors.js. Does that work? Yep, it works locally - well not locally but direct and not thru apache (I had to clear '/' in Server Path in config to be able to navigate locally. Also, if I bypass apache and have '/' in the Server Path, icons don't show up.). I don't think my rewrite rules are anything special. This is my test setup but I just checked on the other site and it operates the same with the exact same error. Here are my rewrite rules: ProxyPreserveHost On RewriteEngine ON RewriteCond /home/web/mmiki/%{REQUEST_FILENAME} !-f RewriteRule ^/(.*)$ http://localhost:9999/seaside/mmiki/$1 [proxy,last] I think this is the same problem that I have when seaside times out. I the path duplicated like: /seaside/miki/seaside/mmiki Obviously, I've done something wrong with the image (unless you see something wrong in the rewrite rules) From koubo2006 at yengawa.jpn.org Wed Mar 14 02:20:48 2007 From: koubo2006 at yengawa.jpn.org (Koji Yokokawa) Date: Wed, 14 Mar 2007 10:20:48 +0900 Subject: Breadcrumbs List Message-ID: <20070314100702.FDD5.KOUBO2006@yengawa.jpn.org> Hi all, I made a breadcrumbs list for Pier. It displays the trail of the user in the Pier site. Detailes: http://yengawa-wiki.webhop.org/YengawaWiki/55 Demo site: http://yengawapier.webhop.org/ Have fun! -- ! Koji Yokokawa http://www.yengawa.com/ ^self new! From brad at sonaural.com Wed Mar 14 03:58:05 2007 From: brad at sonaural.com (Brad Fuller) Date: Tue, 13 Mar 2007 19:58:05 -0700 Subject: Javascript in pier page In-Reply-To: <45F725BC.1070304@sonaural.com> References: <45F7035D.6010206@sonaural.com> <45F70AD0.10904@sonaural.com> <72174665-0BA4-4976-BC74-3E216E9B4D5D@iam.unibe.ch> <45F71F90.9020005@sonaural.com> <45F725BC.1070304@sonaural.com> Message-ID: <45F764BD.3090100@sonaural.com> Brad Fuller wrote: > Lukas Renggli wrote: >>>>> Ideas where to look? >>>> FireBug is the only answer I know to any problem related to >>>> JavaScript: >>>> >>>> http://www.getfirebug.com/ >>> Man, that's handy! In the Script tab it says: >>> >>>

Error: >>> "/seaside/mmiki/seaside/files/WAStandardFiles/externalAnchors.js" not >>> found.

>>> >>> I don't quite know what this means. Why would it be looking in this >>> path? (mmiki is the name of the pier kernel) >> That's odd. Are you using Apache? Rewrite rules? Proxies? >> >> Obviously it cannot find the JavaScript files. Locally they should be >> reachable at http://localhost:8080/seaside/files/WAStandardFiles/ >> externalAnchors.js. Does that work? > > Yep, it works locally - well not locally but direct and not thru apache > (I had to clear '/' in Server Path in config to be able to navigate > locally. Also, if I bypass apache and have '/' in the Server Path, icons > don't show up.). > > I don't think my rewrite rules are anything special. This is my test > setup but I just checked on the other site and it operates the same with > the exact same error. > > Here are my rewrite rules: > > ProxyPreserveHost On > RewriteEngine ON > RewriteCond /home/web/mmiki/%{REQUEST_FILENAME} !-f > RewriteRule ^/(.*)$ http://localhost:9999/seaside/mmiki/$1 [proxy,last] > > I think this is the same problem that I have when seaside times out. I > the path duplicated like: /seaside/miki/seaside/mmiki > > Obviously, I've done something wrong with the image (unless you see > something wrong in the rewrite rules) I think the rewrite rules are ok. I'm seeing this in the apache access log: "GET /seaside/files/SULibrary/prototype.js HTTP/1.1" 404 82 I don't know why SULibrary is looking externally for the files. I didn't tell it to do so. Is this the default? From brad at sonaural.com Wed Mar 14 04:13:39 2007 From: brad at sonaural.com (Brad Fuller) Date: Tue, 13 Mar 2007 20:13:39 -0700 Subject: Javascript in pier page In-Reply-To: <66666f210703131323j3d3e4b3ai1c382d6588b8d04b@mail.gmail.com> References: <45F7035D.6010206@sonaural.com> <66666f210703131323j3d3e4b3ai1c382d6588b8d04b@mail.gmail.com> Message-ID: <45F76863.4080609@sonaural.com> Philippe Marschall wrote: > Have a look at: > http://spielverderber.seasidehosting.st/spielwiese > that embeds several JavaScripts components into a page simply cool... I gotta figure out how to create javascript modules! From ducasse at iam.unibe.ch Wed Mar 14 18:44:42 2007 From: ducasse at iam.unibe.ch (=?ISO-8859-1?Q?st=E9phane_ducasse?=) Date: Wed, 14 Mar 2007 18:44:42 +0100 Subject: Problem with Pier Blog In-Reply-To: <52CCC8B9-4A98-4D70-8165-81433B1B8EA6@iam.unibe.ch> References: <45F6D535.6080604@zyoconsulting.com> <52CCC8B9-4A98-4D70-8165-81433B1B8EA6@iam.unibe.ch> Message-ID: so maybe you should have an installer. I have the impression that as soon as a package get a public usage it should have an installer. or we will be killed by dependencies. Stef On 13 mars 07, at 17:51, Lukas Renggli wrote: >> I get the next error: >> >> >> MessageNotUnderstood: WARenderedHtmlRoot>>rss > > The Pier blog requires the package RSRSS from http:// > www.squeaksource.com/rsrss as a prerequisite. > > Cheers, > Lukas > > -- > Lukas Renggli > http://www.lukas-renggli.ch > > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki From brad at sonaural.com Thu Mar 15 04:13:27 2007 From: brad at sonaural.com (Brad Fuller) Date: Wed, 14 Mar 2007 20:13:27 -0700 Subject: Javascript in pier page In-Reply-To: <45F764BD.3090100@sonaural.com> References: <45F7035D.6010206@sonaural.com> <45F70AD0.10904@sonaural.com> <72174665-0BA4-4976-BC74-3E216E9B4D5D@iam.unibe.ch> <45F71F90.9020005@sonaural.com> <45F725BC.1070304@sonaural.com> <45F764BD.3090100@sonaural.com> Message-ID: <45F8B9D7.50106@sonaural.com> Brad Fuller wrote: > Brad Fuller wrote: >> Lukas Renggli wrote: >>>>>> Ideas where to look? >>>>> FireBug is the only answer I know to any problem related to >>>>> JavaScript: >>>>> >>>>> http://www.getfirebug.com/ >>>> Man, that's handy! In the Script tab it says: >>>> >>>>

Error: >>>> "/seaside/mmiki/seaside/files/WAStandardFiles/externalAnchors.js" not >>>> found.

>>>> >>>> I don't quite know what this means. Why would it be looking in this >>>> path? (mmiki is the name of the pier kernel) >>> That's odd. Are you using Apache? Rewrite rules? Proxies? >>> >>> Obviously it cannot find the JavaScript files. Locally they should be >>> reachable at http://localhost:8080/seaside/files/WAStandardFiles/ >>> externalAnchors.js. Does that work? >> Yep, it works locally - well not locally but direct and not thru apache >> (I had to clear '/' in Server Path in config to be able to navigate >> locally. Also, if I bypass apache and have '/' in the Server Path, icons >> don't show up.). >> >> I don't think my rewrite rules are anything special. This is my test >> setup but I just checked on the other site and it operates the same with >> the exact same error. >> >> Here are my rewrite rules: >> >> ProxyPreserveHost On >> RewriteEngine ON >> RewriteCond /home/web/mmiki/%{REQUEST_FILENAME} !-f >> RewriteRule ^/(.*)$ http://localhost:9999/seaside/mmiki/$1 [proxy,last] >> >> I think this is the same problem that I have when seaside times out. I >> the path duplicated like: /seaside/miki/seaside/mmiki >> >> Obviously, I've done something wrong with the image (unless you see >> something wrong in the rewrite rules) > > I think the rewrite rules are ok. I'm seeing this in the apache access log: > "GET /seaside/files/SULibrary/prototype.js HTTP/1.1" 404 82 > > I don't know why SULibrary is looking externally for the files. I didn't > tell it to do so. Is this the default? Ok, so I don't get it. Why would apache look for these files? These javascripts are in the image. In fact, all I have is css in my own library. Is this something about the back and forth of rewrite rules that I don't understand? Someone know? -- brad fuller http://www.Sonaural.com/ +1 (408) 799-6124 From renggli at iam.unibe.ch Thu Mar 15 08:03:29 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Thu, 15 Mar 2007 08:03:29 +0100 Subject: Javascript in pier page In-Reply-To: <45F8B9D7.50106@sonaural.com> References: <45F7035D.6010206@sonaural.com> <45F70AD0.10904@sonaural.com> <72174665-0BA4-4976-BC74-3E216E9B4D5D@iam.unibe.ch> <45F71F90.9020005@sonaural.com> <45F725BC.1070304@sonaural.com> <45F764BD.3090100@sonaural.com> <45F8B9D7.50106@sonaural.com> Message-ID: >>> >>> Here are my rewrite rules: >>> >>> ProxyPreserveHost On >>> RewriteEngine ON >>> RewriteCond /home/web/mmiki/%{REQUEST_FILENAME} !-f >>> RewriteRule ^/(.*)$ http://localhost:9999/seaside/mmiki/$1 >>> [proxy,last] >>> >>> I think this is the same problem that I have when seaside times >>> out. I >>> the path duplicated like: /seaside/miki/seaside/mmiki >>> >>> Obviously, I've done something wrong with the image (unless you see >>> something wrong in the rewrite rules) >> >> I think the rewrite rules are ok. I'm seeing this in the apache >> access log: >> "GET /seaside/files/SULibrary/prototype.js HTTP/1.1" 404 82 >> >> I don't know why SULibrary is looking externally for the files. I >> didn't >> tell it to do so. Is this the default? > > Ok, so I don't get it. Why would apache look for these files? These > javascripts are in the image. In fact, all I have is css in my own > library. Is this something about the back and forth of rewrite rules > that I don't understand? > > Someone know? Yes it looks to me as if the files do not get rewritten correctly. Try adding the following line to your rewrite rules: RewriteRule ^/seaside/files/(.*)$ http://localhost:9999/seaside/ files/$1 [proxy,last] Make sure it is the first rule to be applied, so that it looks somehow like: ProxyPreserveHost On RewriteEngine On RewriteRule ^/seaside/files/(.*)$ http://localhost:9999/seaside/ files/$1 [proxy,last] RewriteCond /home/web/mmiki/%{REQUEST_FILENAME} !-f RewriteRule ^/(.*)$ http://localhost:9999/seaside/mmiki/$1 [proxy,last] Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From renggli at iam.unibe.ch Thu Mar 15 08:07:53 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Thu, 15 Mar 2007 08:07:53 +0100 Subject: Problem with Pier Blog In-Reply-To: References: <45F6D535.6080604@zyoconsulting.com> <52CCC8B9-4A98-4D70-8165-81433B1B8EA6@iam.unibe.ch> Message-ID: > so maybe you should have an installer. > I have the impression that as soon as a package get a public usage it > should have an installer. > or we will be killed by dependencies. It starts to be complicated. I already have sort of a simple installer framework. Magritte -> loads seaside, kom, magritte Pier -> loads magritte, pier Pier Unix Security -> loads pier, unix security But then Pier Blog -> loads pier, rsrss, pier blog What about the package 'Pier Unix Security'? Should that be loaded as well? No, because there are other security frameworks around that might be used instead. The dependenceis of 'Pier Unix Security' and 'Pier Blog' could depend on different versions of Pier. What a mess. Lukas > > Stef > > On 13 mars 07, at 17:51, Lukas Renggli wrote: > >>> I get the next error: >>> >>> >>> MessageNotUnderstood: WARenderedHtmlRoot>>rss >> >> The Pier blog requires the package RSRSS from http:// >> www.squeaksource.com/rsrss as a prerequisite. >> >> Cheers, >> Lukas >> >> -- >> Lukas Renggli >> http://www.lukas-renggli.ch >> >> >> >> _______________________________________________ >> SmallWiki, Magritte, Pier and Related Tools ... >> https://www.iam.unibe.ch/mailman/listinfo/smallwiki > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki -- Lukas Renggli http://www.lukas-renggli.ch From azreal1977 at hotmail.com Thu Mar 15 13:32:33 2007 From: azreal1977 at hotmail.com (J J) Date: Thu, 15 Mar 2007 12:32:33 +0000 Subject: Problem with Pier Blog In-Reply-To: Message-ID: Better (imo) would be some kind of package (e.g. universe). I don't think installer scripts in squeak map are a good long term solution. >From: stéphane ducasse >Reply-To: "Magritte, Pier and Related Tools ..." >To: "Magritte, Pier and Related Tools ..." >Subject: Re: Problem with Pier Blog >Date: Wed, 14 Mar 2007 18:44:42 +0100 > >so maybe you should have an installer. >I have the impression that as soon as a package get a public usage it >should have an installer. >or we will be killed by dependencies. > >Stef > >On 13 mars 07, at 17:51, Lukas Renggli wrote: > > >> I get the next error: > >> > >> > >> MessageNotUnderstood: WARenderedHtmlRoot>>rss > > > > The Pier blog requires the package RSRSS from http:// > > www.squeaksource.com/rsrss as a prerequisite. > > > > Cheers, > > Lukas > > > > -- > > Lukas Renggli > > http://www.lukas-renggli.ch > > > > > > > > _______________________________________________ > > SmallWiki, Magritte, Pier and Related Tools ... > > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > > >_______________________________________________ >SmallWiki, Magritte, Pier and Related Tools ... >https://www.iam.unibe.ch/mailman/listinfo/smallwiki _________________________________________________________________ With tax season right around the corner, make sure to follow these few simple tips. http://articles.moneycentral.msn.com/Taxes/PreparationTips/PreparationTips.aspx?icid=HMFebtagline From diegof79 at gmail.com Thu Mar 15 16:11:45 2007 From: diegof79 at gmail.com (Diego Fernandez) Date: Thu, 15 Mar 2007 12:11:45 -0300 Subject: Newbie question about Pier Message-ID: <8328b1510703150811l4bfded47t71ec74c883e79fd3@mail.gmail.com> Hi! I want to use Pier as a wiki at work, so I'm evaluating if it meets my needs. (side note: It's very complicated to get information about Pier from the main Squeak site, the Pier wiki or the Seaside site. I don't known how the Ruby guys get the resources to make their web sites... but we -I mean the squeak community- need to learn a lot from them in this area) After running the image provided by Keith, I've tried to use Magma and I got the same error about "objects" file mentioned early in the list :(. So before digging more into the problem, I have a couple of questions: - What is the recommended mechanism for persistence: plain files, Magma, image? - If I want to change the persistence method, how hard is to do the migration? (I think that I should execute a script that loads all the wiki in the image using the source persistence method, then write all those objects using the target persistence method... there is an easy way to do that?) - How can I make Pier components? (I'm new to Seaside too) - It's possible to use LDAP for Pier authentication? If not, how hard is to use another authentication method? (I have experience developing LDAP authentication libraries for gemstone... so I can help in this area) - I want to change the stylesheet how I can do that? - I want to change the view component, so certain options like editing or configuring the environment are invisible if the user is not logged in... any clue on how to start? - It's possible so show or hide a component according to the user role? I want to show the tree component only if the user is the administrator of the wiki That are a lot of questions for a single mail! So many thanks in advance! Diego.- -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20070315/cec09033/attachment.html From ducasse at iam.unibe.ch Thu Mar 15 16:38:40 2007 From: ducasse at iam.unibe.ch (=?ISO-8859-1?Q?st=E9phane_ducasse?=) Date: Thu, 15 Mar 2007 16:38:40 +0100 Subject: Problem with Pier Blog In-Reply-To: References: <45F6D535.6080604@zyoconsulting.com> <52CCC8B9-4A98-4D70-8165-81433B1B8EA6@iam.unibe.ch> Message-ID: True This is an excellent example that could be used to propose a good solution to deal with dependencies. On 15 mars 07, at 08:07, Lukas Renggli wrote: >> so maybe you should have an installer. >> I have the impression that as soon as a package get a public usage it >> should have an installer. >> or we will be killed by dependencies. > > It starts to be complicated. I already have sort of a simple > installer framework. > > Magritte -> loads seaside, kom, magritte > Pier -> loads magritte, pier > Pier Unix Security -> loads pier, unix security > > But then > > Pier Blog -> loads pier, rsrss, pier blog > > What about the package 'Pier Unix Security'? Should that be loaded as > well? No, because there are other security frameworks around that > might be used instead. The dependenceis of 'Pier Unix Security' and > 'Pier Blog' could depend on different versions of Pier. What a mess. > > Lukas > > > > > >> >> Stef >> >> On 13 mars 07, at 17:51, Lukas Renggli wrote: >> >>>> I get the next error: >>>> >>>> >>>> MessageNotUnderstood: WARenderedHtmlRoot>>rss >>> >>> The Pier blog requires the package RSRSS from http:// >>> www.squeaksource.com/rsrss as a prerequisite. >>> >>> Cheers, >>> Lukas >>> >>> -- >>> Lukas Renggli >>> http://www.lukas-renggli.ch >>> >>> >>> >>> _______________________________________________ >>> SmallWiki, Magritte, Pier and Related Tools ... >>> https://www.iam.unibe.ch/mailman/listinfo/smallwiki >> >> >> _______________________________________________ >> SmallWiki, Magritte, Pier and Related Tools ... >> https://www.iam.unibe.ch/mailman/listinfo/smallwiki > > -- > Lukas Renggli > http://www.lukas-renggli.ch > > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki From brad at sonaural.com Thu Mar 15 16:52:56 2007 From: brad at sonaural.com (Brad Fuller) Date: Thu, 15 Mar 2007 08:52:56 -0700 Subject: Javascript in pier page In-Reply-To: References: <45F7035D.6010206@sonaural.com> <45F70AD0.10904@sonaural.com> <72174665-0BA4-4976-BC74-3E216E9B4D5D@iam.unibe.ch> <45F71F90.9020005@sonaural.com> <45F725BC.1070304@sonaural.com> <45F764BD.3090100@sonaural.com> <45F8B9D7.50106@sonaural.com> Message-ID: <45F96BD8.5040002@sonaural.com> Lukas Renggli wrote: >>>> Here are my rewrite rules: >>>> >>>> ProxyPreserveHost On >>>> RewriteEngine ON >>>> RewriteCond /home/web/mmiki/%{REQUEST_FILENAME} !-f >>>> RewriteRule ^/(.*)$ http://localhost:9999/seaside/mmiki/$1 >>>> [proxy,last] >>>> >>>> I think this is the same problem that I have when seaside times >>>> out. I >>>> the path duplicated like: /seaside/miki/seaside/mmiki >>>> >>>> Obviously, I've done something wrong with the image (unless you see >>>> something wrong in the rewrite rules) >>> I think the rewrite rules are ok. I'm seeing this in the apache >>> access log: >>> "GET /seaside/files/SULibrary/prototype.js HTTP/1.1" 404 82 >>> >>> I don't know why SULibrary is looking externally for the files. I >>> didn't >>> tell it to do so. Is this the default? >> Ok, so I don't get it. Why would apache look for these files? These >> javascripts are in the image. In fact, all I have is css in my own >> library. Is this something about the back and forth of rewrite rules >> that I don't understand? >> >> Someone know? > > Yes it looks to me as if the files do not get rewritten correctly. > Try adding the following line to your rewrite rules: > > RewriteRule ^/seaside/files/(.*)$ http://localhost:9999/seaside/ > files/$1 [proxy,last] > > Make sure it is the first rule to be applied, so that it looks > somehow like: > > ProxyPreserveHost On > RewriteEngine On > RewriteRule ^/seaside/files/(.*)$ http://localhost:9999/seaside/ > files/$1 [proxy,last] > RewriteCond /home/web/mmiki/%{REQUEST_FILENAME} !-f > RewriteRule ^/(.*)$ http://localhost:9999/seaside/mmiki/$1 > [proxy,last] Thanks Lukas. I'm learning more about rewrite rules than I ever wanted to! That almost works. It now doesn't accommodate css files served from apache. Why it worked before, I don't know, but I'll find out. I'm investigating it now and I'll post my results. Hopefully, others might find it useful. -- brad fuller http://www.Sonaural.com/ +1 (408) 799-6124 From philippe.marschall at gmail.com Thu Mar 15 18:24:16 2007 From: philippe.marschall at gmail.com (Philippe Marschall) Date: Thu, 15 Mar 2007 18:24:16 +0100 Subject: Newbie question about Pier In-Reply-To: <8328b1510703150811l4bfded47t71ec74c883e79fd3@mail.gmail.com> References: <8328b1510703150811l4bfded47t71ec74c883e79fd3@mail.gmail.com> Message-ID: <66666f210703151024s337b0539lcd51df0177491a50@mail.gmail.com> 2007/3/15, Diego Fernandez : > Hi! > I want to use Pier as a wiki at work, so I'm evaluating if it meets my > needs. > > (side note: It's very complicated to get information about Pier from the > main Squeak site, the Pier wiki or the Seaside site. I don't known how the > Ruby guys get the resources to make their web sites... but we -I mean the > squeak community- need to learn a lot from them in this area) > > After running the image provided by Keith, I've tried to use Magma and I got > the same error about "objects" file mentioned early in the list :(. So > before digging more into the problem, I have a couple of questions: > - What is the recommended mechanism for persistence: plain files, Magma, > image? I would say this depends on your requirements. > - If I want to change the persistence method, how hard is to do the > migration? (I think that I should execute a script that loads all the wiki > in the image using the source persistence method, then write all those > objects using the target persistence method... there is an easy way to do > that?) > - How can I make Pier components? (I'm new to Seaside too) There are two options: - any kind of Seaside component (subclass of WAComponent or WATask) will do - make subclasses of PRStructure that are described with Margitte and implement the related commands have a look at: http://mc.lukas-renggli.ch/pieraddons.html or the blog plugin to get some ideas > - It's possible to use LDAP for Pier authentication? It's not implemented. > If not, how hard is to > use another authentication method? (I have experience developing LDAP > authentication libraries for gemstone... so I can help in this area) Once you have a Squeak LDAP client running, it should be fairly easy. > - I want to change the stylesheet how I can do that? remove PRPierLibrary from the pier application (via the Seaside config application) and add your own > - I want to change the view component, so certain options like editing or > configuring the environment are invisible if the user is not logged in... > any clue on how to start? To always display the environment remove the PRHider decoration (the simplest way is with the object explorer). Then you can set the view permission on the environment. > - It's possible so show or hide a component according to the user role? I > want to show the tree component only if the user is the administrator of the > wiki Change the view permission of the component. Cheers Philippe > That are a lot of questions for a single mail! > So many thanks in advance! > Diego.- > > > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > From renggli at iam.unibe.ch Thu Mar 15 21:42:31 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Thu, 15 Mar 2007 21:42:31 +0100 Subject: Newbie question about Pier In-Reply-To: <66666f210703151024s337b0539lcd51df0177491a50@mail.gmail.com> References: <8328b1510703150811l4bfded47t71ec74c883e79fd3@mail.gmail.com> <66666f210703151024s337b0539lcd51df0177491a50@mail.gmail.com> Message-ID: Hi Diego, nice to hear from you. >> (side note: It's very complicated to get information about Pier >> from the >> main Squeak site, the Pier wiki or the Seaside site. I don't known >> how the >> Ruby guys get the resources to make their web sites... but we -I >> mean the >> squeak community- need to learn a lot from them in this area) The source where all the documentation is linked from here: http://www.lukas-renggli.ch/smalltalk/pier >> After running the image provided by Keith, I've tried to use Magma >> and I got >> the same error about "objects" file mentioned early in the list : >> (. So >> before digging more into the problem, I have a couple of questions: >> - What is the recommended mechanism for persistence: plain files, >> Magma, >> image? > > I would say this depends on your requirements. I just save the image. Works fine for me. Image segments created in a forked copy of the image would be a nice and quick solution as well, I just didn't had the time to implement that yet. >> - If I want to change the persistence method, how hard is to do the >> migration? (I think that I should execute a script that loads all >> the wiki >> in the image using the source persistence method, then write all >> those >> objects using the target persistence method... there is an easy >> way to do >> that?) I just heard from a guy that never really touched Squeak before (he is an experiences Smalltalker though) that he easily migrated the whole object graph of a Pier Site from one image to another one using SIXX. >> - How can I make Pier components? (I'm new to Seaside too) > > There are two options: > - any kind of Seaside component (subclass of WAComponent or WATask) > will do Yes. Any component that could be its own application (e.g. #canBeRoot returns true) can be added and used within Pier. If you want to have a bit more of convenience have a look at PRWidget and subclasses. These are basically all the components used to get the default look and feel. > - make subclasses of PRStructure that are described with Margitte and > implement the related commands That's something else. PRStructure and its subclasses form the pages of the Pier CMS. It can declare though what view to use (yet another Seaside component, a subclass of PRView in fact). >> - It's possible to use LDAP for Pier authentication? > > It's not implemented. > >> If not, how hard is to >> use another authentication method? (I have experience developing LDAP >> authentication libraries for gemstone... so I can help in this area) > > Once you have a Squeak LDAP client running, it should be fairly easy. Should be easy to do though. You could take one of the existing security frameworks and create the users/groups dynamically from an LDAP query. >> - I want to change the view component, so certain options like >> editing or >> configuring the environment are invisible if the user is not >> logged in... >> any clue on how to start? You need to load a security plugin. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From brad at sonaural.com Fri Mar 16 04:42:24 2007 From: brad at sonaural.com (Brad Fuller) Date: Thu, 15 Mar 2007 20:42:24 -0700 Subject: Javascript in pier page In-Reply-To: <45F96BD8.5040002@sonaural.com> References: <45F7035D.6010206@sonaural.com> <45F70AD0.10904@sonaural.com> <72174665-0BA4-4976-BC74-3E216E9B4D5D@iam.unibe.ch> <45F71F90.9020005@sonaural.com> <45F725BC.1070304@sonaural.com> <45F764BD.3090100@sonaural.com> <45F8B9D7.50106@sonaural.com> <45F96BD8.5040002@sonaural.com> Message-ID: <45FA1220.3040905@sonaural.com> Brad Fuller wrote: >> Yes it looks to me as if the files do not get rewritten correctly. >> Try adding the following line to your rewrite rules: >> >> RewriteRule ^/seaside/files/(.*)$ http://localhost:9999/seaside/ >> files/$1 [proxy,last] >> >> Make sure it is the first rule to be applied, so that it looks >> somehow like: >> >> ProxyPreserveHost On >> RewriteEngine On >> RewriteRule ^/seaside/files/(.*)$ http://localhost:9999/seaside/ >> files/$1 [proxy,last] >> RewriteCond /home/web/mmiki/%{REQUEST_FILENAME} !-f >> RewriteRule ^/(.*)$ http://localhost:9999/seaside/mmiki/$1 >> [proxy,last] > > Thanks Lukas. I'm learning more about rewrite rules than I ever wanted > to! That almost works. It now doesn't accommodate css files served from > apache. Why it worked before, I don't know, but I'll find out. I'm > investigating it now and I'll post my results. Hopefully, others might > find it useful. Believe it or not, I worked on this all day. The rewrite rules you have are correct and work for me... at the end of the day. I do not know why they didn't work right off the bat. When I tried them and they didn't work, I tried various other tricks and studied the rewrite rules and conditions on the apache page and elsewhere. Nothing really worked well. Then, the seaside image started hanging by the end of the day (don't know why, I didn't touch it much) and I finally had to just kill it. At that point I was actually back to where I started but I didn't know I had re-written the rules back to Lukas's original suggestion! After I restarted seaside, it just worked. Go figur.... What a day. (hey, I know more about rewrite rules...) Now... my next problem is the timeout problem. When the page time's out, I get an error. At least I think that's the reason. I'll create another thread for that discussion. Everyone, thanks for your help! brad From brad at sonaural.com Fri Mar 16 04:43:49 2007 From: brad at sonaural.com (Brad Fuller) Date: Thu, 15 Mar 2007 20:43:49 -0700 Subject: path error on link-click after a while in Pier Message-ID: <45FA1275.2000603@sonaural.com> I get error's like this sometimes when I click a link in pier: Error: "/seaside/mmiki/seaside/mmiki/A-Page" not found. Notice the path is duplicated. I figure that this is an error that occurs after the page time's out. yes? How can I fix this? Why does this happen? Lukas mentioned a thread to search for but I can't find that message (sorry!) and I haven't found a good explanation. Can anyone point me in the right direction? thanks, brad -- brad fuller http://www.Sonaural.com/ +1 (408) 799-6124 From renggli at iam.unibe.ch Fri Mar 16 07:52:25 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Fri, 16 Mar 2007 07:52:25 +0100 Subject: path error on link-click after a while in Pier In-Reply-To: <45FA1275.2000603@sonaural.com> References: <45FA1275.2000603@sonaural.com> Message-ID: <35FDB0D8-E7F0-43FC-9997-C0928F25C105@iam.unibe.ch> > I get error's like this sometimes when I click a link in pier: > > Error: "/seaside/mmiki/seaside/mmiki/A-Page" not found. > > Notice the path is duplicated. I figure that this is an error that > occurs after the page time's out. yes? > > How can I fix this? Why does this happen? Lukas mentioned a thread to > search for but I can't find that message (sorry!) and I haven't > found a > good explanation. > > Can anyone point me in the right direction? Again this can be solved with a RewrtieRule that you put before RewriteCond in your Apache config: RewriteRule $/seaside/mmiki/(.*)^ http://localhost:9999/$1 [proxy,last] The reason you need this is a problem of Seaside redirecting to the wrong URL when a session has a timeout. Unfortunately this is not that easy to fix. I did several attempts during the development of 2.7, but could not figure out a way that did not break a lot of other applications altogether. Anyway, for now the above RewriteRule does the trick. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From brad at sonaural.com Fri Mar 16 15:35:25 2007 From: brad at sonaural.com (Brad Fuller) Date: Fri, 16 Mar 2007 07:35:25 -0700 Subject: path error on link-click after a while in Pier In-Reply-To: <35FDB0D8-E7F0-43FC-9997-C0928F25C105@iam.unibe.ch> References: <45FA1275.2000603@sonaural.com> <35FDB0D8-E7F0-43FC-9997-C0928F25C105@iam.unibe.ch> Message-ID: <45FAAB2D.5090507@sonaural.com> Lukas Renggli wrote: >> I get error's like this sometimes when I click a link in pier: >> >> Error: "/seaside/mmiki/seaside/mmiki/A-Page" not found. >> >> Notice the path is duplicated. I figure that this is an error that >> occurs after the page time's out. yes? >> >> How can I fix this? Why does this happen? Lukas mentioned a thread to >> search for but I can't find that message (sorry!) and I haven't >> found a >> good explanation. >> >> Can anyone point me in the right direction? > > Again this can be solved with a RewrtieRule that you put before > RewriteCond in your Apache config: > > RewriteRule $/seaside/mmiki/(.*)^ http://localhost:9999/$1 > [proxy,last] > > The reason you need this is a problem of Seaside redirecting to the > wrong URL when a session has a timeout. Unfortunately this is not > that easy to fix. I did several attempts during the development of > 2.7, but could not figure out a way that did not break a lot of other > applications altogether. Anyway, for now the above RewriteRule does > the trick. Bummer... I thought that there was something in the image so I wouldn't have to write another rule, but now I remember you saying you investigated this. BTW: just to be clear the rule above has the "^" and "$" flipped around. Shouldn't it be: RewriteRule ^/seaside/mmiki/(.*)$ http://localhost:9999/$1 [proxy,last] -- brad fuller http://www.Sonaural.com/ +1 (408) 799-6124 From renggli at iam.unibe.ch Fri Mar 16 15:41:35 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Fri, 16 Mar 2007 15:41:35 +0100 Subject: path error on link-click after a while in Pier In-Reply-To: <45FAAB2D.5090507@sonaural.com> References: <45FA1275.2000603@sonaural.com> <35FDB0D8-E7F0-43FC-9997-C0928F25C105@iam.unibe.ch> <45FAAB2D.5090507@sonaural.com> Message-ID: <02CF7CEE-AA1C-4837-A780-2BC367525FF9@iam.unibe.ch> > BTW: just to be clear the rule above has the "^" and "$" flipped > around. > Shouldn't it be: > > RewriteRule ^/seaside/mmiki/(.*)$ http://localhost:9999/$1 > [proxy,last] Yes, exactly. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From diegof79 at gmail.com Sat Mar 17 19:33:51 2007 From: diegof79 at gmail.com (Diego Fernandez) Date: Sat, 17 Mar 2007 15:33:51 -0300 Subject: Newbie question about Pier In-Reply-To: References: <8328b1510703150811l4bfded47t71ec74c883e79fd3@mail.gmail.com> <66666f210703151024s337b0539lcd51df0177491a50@mail.gmail.com> Message-ID: <8328b1510703171133p6423ae8fo4878a977defbe55d@mail.gmail.com> Many thanks to everyone for the answers :) I need to setup a wiki fast.. so I'm going to start with the old ComSwiki until I learn more about Seaside and Pier... so you will hear more questions from me about Pier :) (BTW Lukas your work on Pier is amassing, thanks!) On 3/15/07, Lukas Renggli wrote: > > Hi Diego, > > nice to hear from you. > > >> (side note: It's very complicated to get information about Pier > >> from the > >> main Squeak site, the Pier wiki or the Seaside site. I don't known > >> how the > >> Ruby guys get the resources to make their web sites... but we -I > >> mean the > >> squeak community- need to learn a lot from them in this area) > > The source where all the documentation is linked from here: > > http://www.lukas-renggli.ch/smalltalk/pier > > >> After running the image provided by Keith, I've tried to use Magma > >> and I got > >> the same error about "objects" file mentioned early in the list : > >> (. So > >> before digging more into the problem, I have a couple of questions: > >> - What is the recommended mechanism for persistence: plain files, > >> Magma, > >> image? > > > > I would say this depends on your requirements. > > I just save the image. Works fine for me. Image segments created in a > forked copy of the image would be a nice and quick solution as well, > I just didn't had the time to implement that yet. > > >> - If I want to change the persistence method, how hard is to do the > >> migration? (I think that I should execute a script that loads all > >> the wiki > >> in the image using the source persistence method, then write all > >> those > >> objects using the target persistence method... there is an easy > >> way to do > >> that?) > > I just heard from a guy that never really touched Squeak before (he > is an experiences Smalltalker though) that he easily migrated the > whole object graph of a Pier Site from one image to another one using > SIXX. > > >> - How can I make Pier components? (I'm new to Seaside too) > > > > There are two options: > > - any kind of Seaside component (subclass of WAComponent or WATask) > > will do > > Yes. Any component that could be its own application (e.g. #canBeRoot > returns true) can be added and used within Pier. If you want to have > a bit more of convenience have a look at PRWidget and subclasses. > These are basically all the components used to get the default look > and feel. > > > - make subclasses of PRStructure that are described with Margitte and > > implement the related commands > > That's something else. PRStructure and its subclasses form the pages > of the Pier CMS. It can declare though what view to use (yet another > Seaside component, a subclass of PRView in fact). > > >> - It's possible to use LDAP for Pier authentication? > > > > It's not implemented. > > > >> If not, how hard is to > >> use another authentication method? (I have experience developing LDAP > >> authentication libraries for gemstone... so I can help in this area) > > > > Once you have a Squeak LDAP client running, it should be fairly easy. > > Should be easy to do though. You could take one of the existing > security frameworks and create the users/groups dynamically from an > LDAP query. > > >> - I want to change the view component, so certain options like > >> editing or > >> configuring the environment are invisible if the user is not > >> logged in... > >> any clue on how to start? > > You need to load a security plugin. > > Cheers, > Lukas > > -- > Lukas Renggli > http://www.lukas-renggli.ch > > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20070317/23c70901/attachment.html From ssastre at seaswork.com Mon Mar 19 15:16:49 2007 From: ssastre at seaswork.com (Sebastian Sastre) Date: Mon, 19 Mar 2007 11:16:49 -0300 Subject: User's role based observation of the model Message-ID: Hi there, I was reading the Lukas thesis about Magritte. By the way... congratulations for that nice document Lukas. I have questions about Magritte beign useful for generating views of the model. Note I said views and not view of the model because I think is interesting to generate more than one unique view for it. I have several examples in wich this feature is desirable. Most are user based. With user based I mean the user's role should determinate the observation. An organization's anOperator should see something of aDocumentModel but aManager should see diferent and probably more details of the same aDocumentModel and aDirector should see just metrics about that (aDocumentModel). I see that one could manipulate the design to "force" aDocumentModel to be of different species for each observer but the cost is undesirable complication, reality-virtuality mismatch and identity mess (made worst with and RDBMS mapping in the middle). I don't like the dark side. I think is possible a better approach but until now I was unable to see a clear way on how Magritte could help with multiple description request. The descriptions for the objects are deducted from class side #descriptionXX of the objects wich collaborates with MADescriptionBuilder but it's cache seems to be designed to store only one description per object. Do you think that to extend Magritte to support several descriptions per object should be the best approach to this problem? thanks, Sebastian Sastre -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20070319/6043210c/attachment.html From renggli at iam.unibe.ch Mon Mar 19 15:32:23 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Mon, 19 Mar 2007 15:32:23 +0100 Subject: User's role based observation of the model In-Reply-To: References: Message-ID: <0D07232D-3A33-4B2D-ACF3-AF178C245AF1@iam.unibe.ch> > I think is possible a better approach but until now I was > unable to see a clear way on how Magritte could help with multiple > description request. The descriptions for the objects are deducted > from class side #descriptionXX of the objects wich collaborates > with MADescriptionBuilder but it's cache seems to be designed to > store only one description per object. That's the default and what is required most of the time. However there is nothing that prevents you from having multiple descriptions for a single object (or class). Descriptions are just objects that can be composed and stored in instance-variables like anything else. I know of quite a lot of projects that have been doing exactly that. > Do you think that to extend Magritte to support several > descriptions per object should be the best approach to this problem? For example you could dispatch the request for a description trough your user model: SomeModel>>descriptionFor: aUser ^ aUser descriptionOf: self UserModel>>descriptionOf: anObject ^ MACachedBuilderWithUser for: anObject class user: self Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From ssastre at seaswork.com Mon Mar 19 17:31:32 2007 From: ssastre at seaswork.com (Sebastian Sastre) Date: Mon, 19 Mar 2007 13:31:32 -0300 Subject: User's role based observation of the model In-Reply-To: <0D07232D-3A33-4B2D-ACF3-AF178C245AF1@iam.unibe.ch> Message-ID: Very good! I think Magritte won a new friend ;) cheers, Sebastian Sastre > -----Mensaje original----- > De: smallwiki-bounces at iam.unibe.ch > [mailto:smallwiki-bounces at iam.unibe.ch] En nombre de Lukas Renggli > Enviado el: Lunes, 19 de Marzo de 2007 11:32 > Para: Magritte, Pier and Related Tools ... > Asunto: Re: User's role based observation of the model > > > I think is possible a better approach but until now I > was unable > > to see a clear way on how Magritte could help with multiple > > description request. The descriptions for the objects are deducted > > from class side #descriptionXX of the objects wich > collaborates with > > MADescriptionBuilder but it's cache seems to be designed to > store only > > one description per object. > > That's the default and what is required most of the time. > However there is nothing that prevents you from having > multiple descriptions for a single object (or class). > Descriptions are just objects that can be composed and stored > in instance-variables like anything else. > I know of quite a lot of projects that have been doing exactly that. > > > Do you think that to extend Magritte to support several > > descriptions per object should be the best approach to this problem? > > For example you could dispatch the request for a description > trough your user model: > > SomeModel>>descriptionFor: aUser > ^ aUser descriptionOf: self > > UserModel>>descriptionOf: anObject > ^ MACachedBuilderWithUser for: anObject class user: self > > > > Cheers, > Lukas > > -- > Lukas Renggli > http://www.lukas-renggli.ch > > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki From sebjulliand at gmail.com Mon Mar 19 19:21:51 2007 From: sebjulliand at gmail.com (=?ISO-8859-1?Q?S=E9bastien_Julliand?=) Date: Mon, 19 Mar 2007 19:21:51 +0100 Subject: Commands on multiple structures / Timestamps Message-ID: <4f6c865a0703191121k3b63323eyad91fe9dab74f6da@mail.gmail.com> According to how commands work in Pier, is it possible to apply a command on more than a single structure? Another question: is there something in Pier to retrieve the date and time of creation/modification of each page (or do I need to add some descriptions to PRStructure?) Cheers, -- S?bastien JULLIAND -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20070319/eea97029/attachment-0001.html From renggli at iam.unibe.ch Mon Mar 19 21:02:21 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Mon, 19 Mar 2007 21:02:21 +0100 Subject: Commands on multiple structures / Timestamps In-Reply-To: <4f6c865a0703191121k3b63323eyad91fe9dab74f6da@mail.gmail.com> References: <4f6c865a0703191121k3b63323eyad91fe9dab74f6da@mail.gmail.com> Message-ID: > According to how commands work in Pier, is it possible to apply a > command on more than a single structure? Yes, however this is not the way they have been designed to be used. It is better to create a copy for every execution. To make a command to a different structure you need a new context anyway as contexts are immutable. > Another question: is there something in Pier to retrieve the date > and time of creation/modification of each page (or do I need to add > some descriptions to PRStructure?) Retrieving creating/modification time only works with a persistency scheme attached logs all the command executions. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From ducasse at iam.unibe.ch Mon Mar 19 21:15:02 2007 From: ducasse at iam.unibe.ch (=?ISO-8859-1?Q?st=E9phane_ducasse?=) Date: Mon, 19 Mar 2007 21:15:02 +0100 Subject: Commands on multiple structures / Timestamps In-Reply-To: <4f6c865a0703191121k3b63323eyad91fe9dab74f6da@mail.gmail.com> References: <4f6c865a0703191121k3b63323eyad91fe9dab74f6da@mail.gmail.com> Message-ID: On 19 mars 07, at 19:21, S?bastien Julliand wrote: > According to how commands work in Pier, is it possible to apply a > command on more than a single structure? seb and me want to know whether we could apply a command to all the elements of a list of page for example. > Another question: is there something in Pier to retrieve the date > and time of creation/modification of each page (or do I need to add > some descriptions to PRStructure?) > > Cheers, > -- > S?bastien JULLIAND > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki From renggli at iam.unibe.ch Mon Mar 19 21:21:30 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Mon, 19 Mar 2007 21:21:30 +0100 Subject: Commands on multiple structures / Timestamps In-Reply-To: References: <4f6c865a0703191121k3b63323eyad91fe9dab74f6da@mail.gmail.com> Message-ID: <86572145-D1CB-495A-A957-ED7E28989A41@iam.unibe.ch> >> According to how commands work in Pier, is it possible to apply a >> command on more than a single structure? > > seb and me want to know whether we could apply a command to all the > elements of a list of page for example. Sure that's possible. Something like that should work: self root enumerator with all hidden do: [ :structure | (self context structure: each command: aCommand copy) command execute ] Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From brad at sonaural.com Mon Mar 19 21:47:40 2007 From: brad at sonaural.com (Brad Fuller) Date: Mon, 19 Mar 2007 13:47:40 -0700 Subject: path error on link-click after a while in Pier In-Reply-To: <35FDB0D8-E7F0-43FC-9997-C0928F25C105@iam.unibe.ch> References: <45FA1275.2000603@sonaural.com> <35FDB0D8-E7F0-43FC-9997-C0928F25C105@iam.unibe.ch> Message-ID: <45FEF6EC.4020500@sonaural.com> Lukas Renggli wrote: >> I get error's like this sometimes when I click a link in pier: >> >> Error: "/seaside/mmiki/seaside/mmiki/A-Page" not found. >> >> Notice the path is duplicated. I figure that this is an error that >> occurs after the page time's out. yes? >> >> How can I fix this? Why does this happen? Lukas mentioned a thread to >> search for but I can't find that message (sorry!) and I haven't >> found a >> good explanation. >> >> Can anyone point me in the right direction? >> > > Again this can be solved with a RewrtieRule that you put before > RewriteCond in your Apache config: > > RewriteRule $/seaside/mmiki/(.*)^ http://localhost:9999/$1 > [proxy,last] > > The reason you need this is a problem of Seaside redirecting to the > wrong URL when a session has a timeout. Unfortunately this is not > that easy to fix. I did several attempts during the development of > 2.7, but could not figure out a way that did not break a lot of other > applications altogether. Anyway, for now the above RewriteRule does > the trick. > OK, I admit this is a bit OT, but it does have something to do with getting Seaside and Apache working together. Others might benefit too... and I'm surprised that others don't see this problem. Actually, one would think that the solution above would work, but in my case it does not. In fact, sometimes I get the path repeated 3 times! What I did was bypass apache, set the Pier app default timeout low and go at it to see if I could find something useful. In every case of a timeout, Pier worked fine when bypassing apache. After timeouts, seaside went to the next page just fine. So, I think my issue is something to do with apache. I thought maybe there is a cache problem on the server side, so I made sure that no cache module is loaded. Why would the path get duplicated so many times and KOM/Seaside work just fine? brad From renggli at iam.unibe.ch Mon Mar 19 22:00:13 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Mon, 19 Mar 2007 22:00:13 +0100 Subject: path error on link-click after a while in Pier In-Reply-To: <45FEF6EC.4020500@sonaural.com> References: <45FA1275.2000603@sonaural.com> <35FDB0D8-E7F0-43FC-9997-C0928F25C105@iam.unibe.ch> <45FEF6EC.4020500@sonaural.com> Message-ID: <5E3278E9-AAC3-4C01-9100-3D699D074962@iam.unibe.ch> > Actually, one would think that the solution above would work, but > in my > case it does not. In fact, sometimes I get the path repeated 3 times! That's strange this never occurred to me. Did you check the Apache logs (access.log, error.log, rewrite.log)? > What I did was bypass apache, set the Pier app default timeout low and > go at it to see if I could find something useful. You could also evaluate WARegistry clearAllHandlers to expire all existing session at once ;) Lukas -- Lukas Renggli http://www.lukas-renggli.ch From brad at sonaural.com Mon Mar 19 22:11:12 2007 From: brad at sonaural.com (Brad Fuller) Date: Mon, 19 Mar 2007 14:11:12 -0700 Subject: path error on link-click after a while in Pier In-Reply-To: <5E3278E9-AAC3-4C01-9100-3D699D074962@iam.unibe.ch> References: <45FA1275.2000603@sonaural.com> <35FDB0D8-E7F0-43FC-9997-C0928F25C105@iam.unibe.ch> <45FEF6EC.4020500@sonaural.com> <5E3278E9-AAC3-4C01-9100-3D699D074962@iam.unibe.ch> Message-ID: <45FEFC70.7060208@sonaural.com> Lukas Renggli wrote: >> Actually, one would think that the solution above would work, but >> in my >> case it does not. In fact, sometimes I get the path repeated 3 times! >> > > That's strange this never occurred to me. Did you check the Apache > logs (access.log, error.log, rewrite.log)? > Absolutely, that's what I've been looking at so long... ;-( > >> What I did was bypass apache, set the Pier app default timeout low and >> go at it to see if I could find something useful. >> > > You could also evaluate > > WARegistry clearAllHandlers > Yeah, I'll add that to my ritual. Thanks! > to expire all existing session at once ;) > > Lukas > > -- brad fuller http://www.Sonaural.com/ +1 (408) 799-6124 From renggli at iam.unibe.ch Mon Mar 19 23:30:38 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Mon, 19 Mar 2007 23:30:38 +0100 Subject: No free space in set In-Reply-To: <44F04FDD.10003@laposte.net> References: <448ECA08.9090307@yahoo.co.uk> <44F04F16.7050502@laposte.net> <44F04FDD.10003@laposte.net> Message-ID: <7C1E980B-B9B9-449E-8EEF-ACA6C24F0A79@iam.unibe.ch> It took at lot of time, but I just fixed the reported problem. It was a long standing Seaside bug related to the backtracking of Set's and all its subclasses. This problem should be fixed in my latest commit: Name: Seaside2.8a1-lr.219 Author: lr Time: 19 March 2007, 11:19:55 pm UUID: 20950b51-ebc2-464c-943c-d8feaf856e37 Ancestors: Seaside2.8a1-lr.218 - fixed a bug that caused sets and dictionaries to get corrupted when being backtracked (a long standing bug) - minor performance improvement when restoring backtracked state by using the squeak primitive Cheers, Lukas On 26 Aug 2006, at 15:42, Damien Cassou wrote: > VM: unix - a SmalltalkImage > Image: Squeak3.9gamma [latest update: #7051] > > SecurityManager state: > Restricted: false > FileAccess: true > SocketAccess: true > Working Dir /home/cassou/Documents/squeak/image/victaid > Trusted Dir /home/cassou/Documents/squeak/image/victaid/secure > Untrusted Dir /home/cassou/Documents/squeak/image/victaid/My Squeak > > Set(Object)>>error: > Receiver: a Set(a PRPage name: 'syntax' a PRPage name: 'pier') > Arguments and temporary variables: > aString: 'There is no free space in this set!' > Receiver's instance variables: > tally: 2 > array: an Array(a PRPage name: 'syntax' a PRPage name: 'pier') > > Set>>findElementOrNil: > Receiver: a Set(a PRPage name: 'syntax' a PRPage name: 'pier') > Arguments and temporary variables: > anObject: a PRPage name: 'information' > index: 0 > Receiver's instance variables: > tally: 2 > array: an Array(a PRPage name: 'syntax' a PRPage name: 'pier') > > Set>>noCheckAdd: > Receiver: a Set(a PRPage name: 'syntax' a PRPage name: 'pier') > Arguments and temporary variables: > anObject: a PRPage name: 'information' > Receiver's instance variables: > tally: 2 > array: an Array(a PRPage name: 'syntax' a PRPage name: 'pier') > > [] in Set>>rehash {[:each | newSelf noCheckAdd: each]} > Arguments and temporary variables: > newSelf: a Set(a PRPage name: 'syntax' a PRPage name: 'pier') > each: a PRPage name: 'information' > > > --- The full stack --- > Set(Object)>>error: > Set>>findElementOrNil: > Set>>noCheckAdd: > [] in Set>>rehash {[:each | newSelf noCheckAdd: each]} > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > Set>>do: > Set>>rehash > Set(Object)>>veryDeepCopyWith: > WeakKeyAssociation(Object)>>veryDeepCopyWith: > Array(Object)>>veryDeepCopyWith: > WeakIdentityKeyDictionary(Object)>>veryDeepCopyWith: > ValueHolder(Object)>>veryDeepCopyWith: > Array(Object)>>veryDeepCopyWith: > ResponseContinuation(Object)>>veryDeepCopyWith: > Association(Object)>>veryDeepCopyWith: > Array(Object)>>veryDeepCopyWith: > Dictionary(Object)>>veryDeepCopyWith: > WALRUCache(Object)>>veryDeepCopyWith: > WASession(Object)>>veryDeepCopyWith: > Association(Object)>>veryDeepCopyWith: > Array(Object)>>veryDeepCopyWith: > Dictionary(Object)>>veryDeepCopyWith: > WAApplication(Object)>>veryDeepCopyWith: > Association(Object)>>veryDeepCopyWith: > Array(Object)>>veryDeepCopyWith: > Dictionary(Object)>>veryDeepCopyWith: > WADispatcher(Object)>>veryDeepCopyWith: > WAKom(Object)>>veryDeepCopyWith: > MethodContext(Object)>>veryDeepCopyWith: > MethodContext(Object)>>veryDeepCopyWith: > MethodContext(Object)>>veryDeepCopyWith: > MethodContext(Object)>>veryDeepCopyWith: > MethodContext(Object)>>veryDeepCopyWith: > MethodContext(Object)>>veryDeepCopyWith: > BlockContext(Object)>>veryDeepCopyWith: > MethodContext(Object)>>veryDeepCopyWith: > BlockContext(Object)>>veryDeepCopyWith: > Process(Object)>>veryDeepCopyWith: > Semaphore(Object)>>veryDeepCopyWith: > WAProcessMonitor(Object)>>veryDeepCopyWith: > MethodContext(Object)>>veryDeepCopyWith: > BlockContext(Object)>>veryDeepCopyWith: > MethodContext(Object)>>veryDeepCopyWith: > BlockContext(Object)>>veryDeepCopyWith: > MethodContext(Object)>>veryDeepCopyWith: > BlockContext(Object)>>veryDeepCopyWith: > MethodContext(Object)>>veryDeepCopyWith: > BlockContext(Object)>>veryDeepCopyWith: > MethodContext(Object)>>veryDeepCopyWith: > MessageNotUnderstood(Object)>>veryDeepCopyWith: > WAWalkback(Object)>>veryDeepCopyWith: > BlockContext(Object)>>veryDeepCopyWith: > WAAnswerHandler(Object)>>veryDeepCopyWith: > WAStateHolder(Object)>>veryDeepCopyWith: > WeakKeyAssociation(Object)>>veryDeepCopyWith: > Array(Object)>>veryDeepCopyWith: > WeakIdentityKeyDictionary(Object)>>veryDeepCopyWith: > WAStateRegistry(Object)>>veryDeepCopyWith: > WASession(Object)>>veryDeepCopyWith: > Association(Object)>>veryDeepCopyWith: > Array(Object)>>veryDeepCopyWith: > Dictionary(Object)>>veryDeepCopyWith: > -- and more not shown -- > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki -- Lukas Renggli http://www.lukas-renggli.ch From brad at sonaural.com Tue Mar 20 00:57:08 2007 From: brad at sonaural.com (Brad Fuller) Date: Mon, 19 Mar 2007 16:57:08 -0700 Subject: path error on link-click after a while in Pier In-Reply-To: <5E3278E9-AAC3-4C01-9100-3D699D074962@iam.unibe.ch> References: <45FA1275.2000603@sonaural.com> <35FDB0D8-E7F0-43FC-9997-C0928F25C105@iam.unibe.ch> <45FEF6EC.4020500@sonaural.com> <5E3278E9-AAC3-4C01-9100-3D699D074962@iam.unibe.ch> Message-ID: <45FF2354.6010007@sonaural.com> Lukas Renggli wrote: >> Actually, one would think that the solution above would work, but >> in my >> case it does not. In fact, sometimes I get the path repeated 3 times! >> > > That's strange this never occurred to me. It would help to find this problem if I understood more of what Seaside is suppose to do when there is a page time-out. Can anyone explain the logic at page-time out for seaside? ======================= For those interested (I suppose it's only me), Here are traces from the rewrite log with different rewrite rules. Modules loaded: rewrite_module proxy_module proxy_http_module No cache modules loaded *No* other "proxy" directives used except below *===TRACE 1===== *ProxyPreserveHost On RewriteEngine ON RewriteRule ^/seaside/files/(.*)$ http://localhost:9999/seaside/files/$1 [proxy,last] RewriteCond /home/web/mmiki/%{REQUEST_FILENAME} !-f RewriteRule ^/(.*)$ http://localhost:9999/seaside/mmiki/$1 [proxy,last] Result: at page timeout, it appears that seaside writes the path to the Pier app, resulting in a duplicated path [Start rewrite engine on request] (2) init rewrite engine with requested uri /DonsTestPage [is there a match with first rule?] (3) applying pattern '^/seaside/files/(.*)$' to uri '/DonsTestPage' [nope, check next rule] (3) applying pattern '^/(.*)$' to uri '/DonsTestPage' [yep, look at the condition before this] (4) RewriteCond: input='/home/web/mmiki//DonsTestPage' pattern='!-f' => matched [nope, this isn't a local file, so rewrite it] (2) rewrite /DonsTestPage -> http://localhost:9999/seaside/mmiki/DonsTestPage [and send it to seaside with the proper path] (2) forcing proxy-throughput with http://localhost:9999/seaside/mmiki/DonsTestPage (1) go-ahead with proxy request proxy:http://localhost:9999/seaside/mmiki/DonsTestPage [OK] [but, then it continues - THIS MUST BE THE TIME OUT] [Start rewrite engine on request] (2) init rewrite engine with requested uri /seaside/mmiki/DonsTestPage [is there a match with first rule?] (3) applying pattern '^/seaside/files/(.*)$' to uri '/seaside/mmiki/DonsTestPage' [nope, check next rule] (3) applying pattern '^/(.*)$' to uri '/seaside/mmiki/DonsTestPage' [yep, look at the condition before this] (4) RewriteCond: input='/home/web/mmiki//seaside/mmiki/DonsTestPage' pattern='!-f' => matched [nope, this isn't a file, so rewrite it] (2) rewrite /seaside/mmiki/DonsTestPage -> http://localhost:9999/seaside/mmiki/seaside/mmiki/DonsTestPage [and send it on it's way] (2) forcing proxy-throughput with http://localhost:9999/seaside/mmiki/seaside/mmiki/DonsTestPage (1) go-ahead with proxy request proxy:http://localhost:9999/seaside/mmiki/seaside/mmiki/DonsTestPage [OK] *===TRACE 2=============* If a rewrite rule is added to eliminate the path at the time out: ================ ProxyPreserveHost On RewriteEngine ON RewriteRule ^/seaside/files/(.*)$ http://localhost:9999/seaside/files/$1 [proxy,last] RewriteRule ^/seaside/mmiki/(.*)$ http://localhost:9999/$1 [proxy,last] RewriteCond /home/web/mmiki/%{REQUEST_FILENAME} !-f RewriteRule ^/(.*)$ http://localhost:9999/seaside/mmiki/$1 [proxy,last] Result: 2nd rewrite rule catches path but seaside really needs the path to the Pier app. (2) init rewrite engine with requested uri /DonsTestPage (3) applying pattern '^/seaside/files/(.*)$' to uri '/DonsTestPage' (3) applying pattern '^/seaside/mmiki/(.*)$' to uri '/DonsTestPage' (3) applying pattern '^/(.*)$' to uri '/DonsTestPage' (4) RewriteCond: input='/home/web/mmiki//DonsTestPage' pattern='!-f' => matched (2) rewrite /DonsTestPage -> http://localhost:9999/seaside/mmiki/DonsTestPage (2) forcing proxy-throughput with http://localhost:9999/seaside/mmiki/DonsTestPage (1) go-ahead with proxy request proxy:http://localhost:9999/seaside/mmiki/DonsTestPage [OK] (2) init rewrite engine with requested uri /seaside/mmiki/DonsTestPage (3) applying pattern '^/seaside/files/(.*)$' to uri '/seaside/mmiki/DonsTestPage' (3) applying pattern '^/seaside/mmiki/(.*)$' to uri '/seaside/mmiki/DonsTestPage' (2) rewrite /seaside/mmiki/DonsTestPage -> http://localhost:9999/DonsTestPage (2) forcing proxy-throughput with http://localhost:9999/DonsTestPage (1) go-ahead with proxy request proxy:http://localhost:9999/DonsTestPage [OK] *===TRACE 3===========* But,of course seaside needs the path to the app. If the rewrite rule is written to add the path for the timeout It works fine. Except the URL in the browser adds the path =============== ProxyPreserveHost On RewriteEngine ON RewriteRule ^/seaside/files/(.*)$ http://localhost:9999/seaside/files/$1 [proxy,last] RewriteRule ^/seaside/mmiki/(.*)$ http://localhost:9999/seaside/mmiki/$1 [proxy,last] RewriteCond /home/web/mmiki/%{REQUEST_FILENAME} !-f RewriteRule ^/(.*)$ http://localhost:9999/seaside/mmiki/$1 [proxy,last] Result: 2nd RewriteRule adds the correct path, but the URL the client receives includes the path. Not pretty. (2) init rewrite engine with requested uri /DonsTestPage (3) applying pattern '^/seaside/files/(.*)$' to uri '/DonsTestPage' (3) applying pattern '^/seaside/mmiki/(.*)$' to uri '/DonsTestPage' (3) applying pattern '^/(.*)$' to uri '/DonsTestPage' (4) RewriteCond: input='/home/web/mmiki//DonsTestPage' pattern='!-f' => matched (2) rewrite /DonsTestPage -> http://localhost:9999/seaside/mmiki/DonsTestPage (2) forcing proxy-throughput with http://localhost:9999/seaside/mmiki/DonsTestPage (1) go-ahead with proxy request proxy:http://localhost:9999/seaside/mmiki/DonsTestPage [OK] (2) init rewrite engine with requested uri /seaside/mmiki/DonsTestPage (3) applying pattern '^/seaside/files/(.*)$' to uri '/seaside/mmiki/DonsTestPage' (3) applying pattern '^/seaside/mmiki/(.*)$' to uri '/seaside/mmiki/DonsTestPage' (2) rewrite /seaside/mmiki/DonsTestPage -> http://localhost:9999/seaside/mmiki/DonsTestPage (2) forcing proxy-throughput with http://localhost:9999/seaside/mmiki/DonsTestPage (1) go-ahead with proxy request proxy:http://localhost:9999/seaside/mmiki/DonsTestPage [OK] This is the desired path, but the URL in the client browser is incorrect: It is: http://igor:8080/seaside/mmiki/DonsTestPage?command=PRViewCommand&view=PRDefaultView It should not have the "/seaside/mmiki" path, And, actually, this doesn't work when you want to go back to the top in Pier after timeout. From keith_hodges at yahoo.co.uk Tue Mar 20 06:12:44 2007 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Tue, 20 Mar 2007 05:12:44 +0000 Subject: No free space in set In-Reply-To: <7C1E980B-B9B9-449E-8EEF-ACA6C24F0A79@iam.unibe.ch> References: <448ECA08.9090307@yahoo.co.uk> <44F04F16.7050502@laposte.net> <44F04FDD.10003@laposte.net> <7C1E980B-B9B9-449E-8EEF-ACA6C24F0A79@iam.unibe.ch> Message-ID: <45FF6D4C.8050905@yahoo.co.uk> Lukas Renggli wrote: > It took at lot of time, but I just fixed the reported problem. It was > a long standing Seaside bug related to the backtracking of Set's and > all its subclasses. This problem should be fixed in my latest commit Good catch :-) Thanks for all of your investment of effort into this one. Keith ___________________________________________________________ All new Yahoo! Mail "The new Interface is stunning in its simplicity and ease of use." - PC Magazine http://uk.docs.yahoo.com/nowyoucan.html From brad at sonaural.com Tue Mar 20 06:39:10 2007 From: brad at sonaural.com (Brad Fuller) Date: Mon, 19 Mar 2007 22:39:10 -0700 Subject: path error on link-click after a while in Pier In-Reply-To: <45FA1275.2000603@sonaural.com> References: <45FA1275.2000603@sonaural.com> Message-ID: <45FF737E.3080502@sonaural.com> http://cmsbox.netstyle.ch/ seems to exhibit a problem too when it times out. Although, it looks more like it uses ProxyPass instead of Rewrite rules. From sebjulliand at gmail.com Tue Mar 20 13:35:54 2007 From: sebjulliand at gmail.com (=?ISO-8859-1?Q?S=E9bastien_Julliand?=) Date: Tue, 20 Mar 2007 13:35:54 +0100 Subject: Commands on multiple structures / Timestamps In-Reply-To: References: <4f6c865a0703191121k3b63323eyad91fe9dab74f6da@mail.gmail.com> Message-ID: <4f6c865a0703200535i6ec62758n3de9a93c9e118b3d@mail.gmail.com> 2007/3/19, Lukas Renggli : > > > According to how commands work in Pier, is it possible to apply a > > command on more than a single structure? > > Yes, however this is not the way they have been designed to be used. > It is better to create a copy for every execution. To make a command > to a different structure you need a new context anyway as contexts > are immutable. > > > Another question: is there something in Pier to retrieve the date > > and time of creation/modification of each page (or do I need to add > > some descriptions to PRStructure?) > > Retrieving creating/modification time only works with a persistency > scheme attached logs all the command executions. > > Cheers, > Lukas > > -- > Lukas Renggli > http://www.lukas-renggli.ch > > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > Ok Lukas. Does this persitency scheme adds some descriptions to the structures? (like Unix Security adds owner/user/group description for example) -- S?bastien JULLIAND -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20070320/0731c0d9/attachment.html From ssastre at seaswork.com Tue Mar 20 14:06:20 2007 From: ssastre at seaswork.com (Sebastian Sastre) Date: Tue, 20 Mar 2007 10:06:20 -0300 Subject: Adaptative (to user's role) edition of objects with many "properties" Message-ID: Hi there, for applications sometimes the user want to edit an object that has many instvars to edit or it's composed. I guess that this could lead to forms too large to be practical for the end user's daily use. One solution to this is could be the partition of the form into smaller forms with tabs. The problem is that one should describe once and let the description prepared to be capable of build several composed forms to each model. This could be archieved by different form building policies. A concrete form build's policy should define the look of the component. To give a simple example of this policy: if the component to build is no bigger than 6 "fields" it should be like "the normal ones" (actual default) but if it has more than 6 "fields", put the first 6 in a tab and the next 6 in another tab (or more, until the total ammount of fields are reached). The policies should be extensible but generic enough to maintain economy in the design. Is also desirable collaboration with user's role to gain additional customization of the observation. A smarter policy could take advantage of grouping info set in the descriptions. As an example some fields could belong to the #'admin.indetification' or #'operator.identification' group/role to keep grouped the right fields of the editor's form for the object/model. I'd like to hear opinions about this or to know about better approachs to solve this problem. cheers, Sebastian Sastre PD: as a side note I'm evaluating to use Magritte with Glorp mapping (like Ramon Leon suggest) so, if I'm undesrtanding this right, the descriptions to map the persistance of the model objects should be "like" another role observating them but describing the persistance wanted. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20070320/e258c96b/attachment.html From renggli at iam.unibe.ch Tue Mar 20 14:57:03 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Tue, 20 Mar 2007 14:57:03 +0100 Subject: Commands on multiple structures / Timestamps In-Reply-To: <4f6c865a0703200535i6ec62758n3de9a93c9e118b3d@mail.gmail.com> References: <4f6c865a0703191121k3b63323eyad91fe9dab74f6da@mail.gmail.com> <4f6c865a0703200535i6ec62758n3de9a93c9e118b3d@mail.gmail.com> Message-ID: <3387DD21-0E74-496A-8F35-22B348F3B205@iam.unibe.ch> > Ok Lukas. > Does this persitency scheme adds some descriptions to the > structures? (like Unix Security adds owner/user/group description > for example) Yes, most extension packages use descriptions to extend existing classes with new functionality. The information is basically already there (see #creationTimestamp and #modificationTimestamp), I probably just missed to add the description. Lukas -- Lukas Renggli http://www.lukas-renggli.ch From renggli at iam.unibe.ch Tue Mar 20 15:23:40 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Tue, 20 Mar 2007 15:23:40 +0100 Subject: Adaptative (to user's role) edition of objects with many "properties" In-Reply-To: References: Message-ID: <87581635-A9BD-4FCC-A7E2-D6386C0EF39F@iam.unibe.ch> > for applications sometimes the user want to edit an object that > has many instvars to edit or it's composed. I guess that this could > lead to forms too large to be practical for the end user's daily use. Certainly. > This could be archieved by different form building policies. A > concrete form build's policy should define the look of the > component. To give a simple example of this policy: if the > component to build is no bigger than 6 "fields" it should be like > "the normal ones" (actual default) but if it has more than 6 > "fields", put the first 6 in a tab and the next 6 in another tab > (or more, until the total ammount of fields are reached). A subclass (or a replacement) of MAContainerComponent is your friend. There are other ways to define custom rendering strategies as you can see on the slides 48 to 54 at: http://www.lukas-renggli.ch/smalltalk/magritte/tutorial.pdf > The policies should be extensible but generic enough to > maintain economy in the design. Is also desirable collaboration > with user's role to gain additional customization of the observation. When developing an application I basically find myself describing objects (1), writing new or custom interpreters of these descriptions (2) and adding some glue code (3). As you observed the interpreters included with Magritte are very basic and usually require some customization when being used in a real world applications. However the requirements for different applications are usually so different that (in my opinion) it makes no sense to try to make something that works for everybody. For example, have a look at http://www.juniorwebaward.ch and click on 'Anmelden' (or 'S'annoncer' if you are in the french version). What you have there is a flow of automatically generated Magritte forms. You have something very similar at http://www.seasidehosting.st, however there are some distinct differences. It is very easy to iterate over a set of descriptions and build your own custom interface and integrate it with different validation strategies. > A smarter policy could take advantage of grouping info set in > the descriptions. As an example some fields could belong to the > #'admin.indetification' or #'operator.identification' group/role to > keep grouped the right fields of the editor's form for the object/ > model. For the project I am currently working on I added a group property to MADescription that does exactly that. The interpreter looks like this: renderContentOn: html group := nil. html heading level: 1; with: 'Preferences'. html form multipart; with: [ self editor description do: [ :each | each group = group ifFalse: [ html heading level: 2; with: (self labelForSelector: each group). group := each group ]. html heading level: 3; with: each label. html render: (self editor childAt: each); break ]. html submitButton text: 'Save'; callback: [ self editor commit ] ] > PD: as a side note I'm evaluating to use Magritte with Glorp > mapping (like Ramon Leon suggest) so, if I'm undesrtanding this > right, the descriptions to map the persistance of the model objects > should be "like" another role observating them but describing the > persistance wanted. I am using properties for that, e.g. something like #bePersistent to tell the description to be considered for persistency or #beSearchable to tell the description to build indexes and to be considered for searches, etc. Lukas -- Lukas Renggli http://www.lukas-renggli.ch From ducasse at iam.unibe.ch Tue Mar 20 21:28:16 2007 From: ducasse at iam.unibe.ch (=?ISO-8859-1?Q?st=E9phane_ducasse?=) Date: Tue, 20 Mar 2007 21:28:16 +0100 Subject: Commands on multiple structures / Timestamps In-Reply-To: <3387DD21-0E74-496A-8F35-22B348F3B205@iam.unibe.ch> References: <4f6c865a0703191121k3b63323eyad91fe9dab74f6da@mail.gmail.com> <4f6c865a0703200535i6ec62758n3de9a93c9e118b3d@mail.gmail.com> <3387DD21-0E74-496A-8F35-22B348F3B205@iam.unibe.ch> Message-ID: <77D3F0FB-BE6B-4B5E-8E03-2C3B1AC169EF@iam.unibe.ch> On 20 mars 07, at 14:57, Lukas Renggli wrote: >> Ok Lukas. >> Does this persitency scheme adds some descriptions to the >> structures? (like Unix Security adds owner/user/group description >> for example) > > Yes, most extension packages use descriptions to extend existing > classes with new functionality. The information is basically already > there (see #creationTimestamp and #modificationTimestamp), I probably > just missed to add the description. which would make a lot of sense since they represent some really key information for querying. So seb please add them. Stef > > Lukas > > -- > Lukas Renggli > http://www.lukas-renggli.ch > > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki From ssastre at seaswork.com Tue Mar 20 21:29:52 2007 From: ssastre at seaswork.com (Sebastian Sastre) Date: Tue, 20 Mar 2007 17:29:52 -0300 Subject: Adaptative (to user's role) edition of objects with many"properties" In-Reply-To: <87581635-A9BD-4FCC-A7E2-D6386C0EF39F@iam.unibe.ch> Message-ID: This is so interesting.. I didn't use Glorp before. Can you tell me more about how I can take advantage of your #beSearchable group proposal using Glorp? Some reference to start with would help. thanks, Sebastian Sastre > -----Mensaje original----- > De: smallwiki-bounces at iam.unibe.ch > [mailto:smallwiki-bounces at iam.unibe.ch] En nombre de Lukas Renggli > Enviado el: Martes, 20 de Marzo de 2007 11:24 > Para: Magritte, Pier and Related Tools ... > Asunto: Re: Adaptative (to user's role) edition of objects > with many"properties" > > > for applications sometimes the user want to edit an object that > > has many instvars to edit or it's composed. I guess that this could > > lead to forms too large to be practical for the end user's > daily use. > > Certainly. > > > This could be archieved by different form building policies. A > > concrete form build's policy should define the look of the > component. > > To give a simple example of this policy: if the component > to build is > > no bigger than 6 "fields" it should be like "the normal > ones" (actual > > default) but if it has more than 6 "fields", put the first > 6 in a tab > > and the next 6 in another tab (or more, until the total ammount of > > fields are reached). > > A subclass (or a replacement) of MAContainerComponent is your > friend. > There are other ways to define custom rendering strategies as > you can see on the slides 48 to 54 at: > > http://www.lukas-renggli.ch/smalltalk/magritte/tutorial.pdf > > > The policies should be extensible but generic enough to > maintain > > economy in the design. Is also desirable collaboration with user's > > role to gain additional customization of the observation. > > When developing an application I basically find myself > describing objects (1), writing new or custom interpreters of > these descriptions > (2) and adding some glue code (3). > > As you observed the interpreters included with Magritte are > very basic and usually require some customization when being > used in a real world applications. However the requirements > for different applications are usually so different that (in > my opinion) it makes no sense to try to make something that > works for everybody. For example, have a look at > http://www.juniorwebaward.ch and click on 'Anmelden' (or > 'S'annoncer' if you are in the french version). What you have > there is a flow of automatically generated Magritte forms. > You have something very similar at > http://www.seasidehosting.st, however there are some distinct > differences. It is very easy to iterate over a set of > descriptions and build your own custom interface and > integrate it with different validation strategies. > > > A smarter policy could take advantage of grouping info > set in the > > descriptions. As an example some fields could belong to the > > #'admin.indetification' or #'operator.identification' group/role to > > keep grouped the right fields of the editor's form for the object/ > > model. > > For the project I am currently working on I added a group > property to MADescription that does exactly that. The > interpreter looks like this: > > renderContentOn: html > group := nil. > html heading level: 1; with: 'Preferences'. > html form multipart; with: [ > self editor description do: [ :each | > each group = group ifFalse: [ > html heading level: 2; with: > (self labelForSelector: each group). > group := each group ]. > html heading level: 3; with: each label. > html render: (self editor childAt: > each); break ]. > html submitButton > text: 'Save'; > callback: [ self editor commit ] ] > > > PD: as a side note I'm evaluating to use Magritte with > Glorp mapping > > (like Ramon Leon suggest) so, if I'm undesrtanding this right, the > > descriptions to map the persistance of the model objects should be > > "like" another role observating them but describing the persistance > > wanted. > > I am using properties for that, e.g. something like > #bePersistent to tell the description to be considered for > persistency or #beSearchable to tell the description to build > indexes and to be considered for searches, etc. > > Lukas > > -- > Lukas Renggli > http://www.lukas-renggli.ch > > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki From sebjulliand at gmail.com Wed Mar 21 00:01:21 2007 From: sebjulliand at gmail.com (=?ISO-8859-1?Q?S=E9bastien_Julliand?=) Date: Wed, 21 Mar 2007 00:01:21 +0100 Subject: Commands on multiple structures / Timestamps In-Reply-To: <77D3F0FB-BE6B-4B5E-8E03-2C3B1AC169EF@iam.unibe.ch> References: <4f6c865a0703191121k3b63323eyad91fe9dab74f6da@mail.gmail.com> <4f6c865a0703200535i6ec62758n3de9a93c9e118b3d@mail.gmail.com> <3387DD21-0E74-496A-8F35-22B348F3B205@iam.unibe.ch> <77D3F0FB-BE6B-4B5E-8E03-2C3B1AC169EF@iam.unibe.ch> Message-ID: <4f6c865a0703201601s64393fb2jb2c1ae9ec0266ebf@mail.gmail.com> 2007/3/20, st?phane ducasse : > > > On 20 mars 07, at 14:57, Lukas Renggli wrote: > > >> Ok Lukas. > >> Does this persitency scheme adds some descriptions to the > >> structures? (like Unix Security adds owner/user/group description > >> for example) > > > > Yes, most extension packages use descriptions to extend existing > > classes with new functionality. The information is basically already > > there (see #creationTimestamp and #modificationTimestamp), I probably > > just missed to add the description. > > which would make a lot of sense since they represent some really key > information for querying. > So seb please add them. > > Stef > > > > > > Lukas > > > > -- > > Lukas Renggli > > http://www.lukas-renggli.ch > > > > > > > > _______________________________________________ > > SmallWiki, Magritte, Pier and Related Tools ... > > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > Ok, done. I just added two timestamp descriptions to PRStructure (creation & modification). Creation is initialized with "Timestamp now" in #doExecute of PRAddCommand. Modification is initialized/modified in #doExecute of PREditCommand. They can be retrieved by their respectives selectors and by #creationTimestamp and #modificationTimestamp if no persistency scheme is plugged. It seems to work (and it looks nice in the report ^^). Did I forget something? Anyway Lukas, we were talking with stef about adding "comparison description" to the meta-descriptions of Magritte. For example: I have a report that lists every pages of Pier. It's a MAReport, so it uses pages descriptions and it's very nice. Now, I want that report to show me only pages that match a specific query (say Creation timeStamp = Today). Something in the Macintosh finder's style ;). It could be great, to build this query, if I could choose a description in a dropdown menu and then, this description tells me "you can compare me this way, using these methods". Then I show another dropdown menu with these methods. And so everything could be done dynamically. If you decide to add a new description to PRStructure, then my report will still work, and so on... Do you see what I mean and do you have an ideas on that? :p Cheers, -- S?bastien JULLIAND -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20070321/dfc35eca/attachment.html From renggli at iam.unibe.ch Wed Mar 21 00:02:41 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Wed, 21 Mar 2007 00:02:41 +0100 Subject: Adaptative (to user's role) edition of objects with many"properties" In-Reply-To: References: Message-ID: > This is so interesting.. > I didn't use Glorp before. Can you tell me more about how I can take > advantage of your #beSearchable group proposal using Glorp? Some > reference > to start with would help. I am sure the maintainer of the Magritte Glorp package can help you here. This is something that I did in other applications. To see an open-source example have a look at #beEditable and #bePersistent in Pier. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From renggli at iam.unibe.ch Wed Mar 21 00:12:18 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Wed, 21 Mar 2007 00:12:18 +0100 Subject: Commands on multiple structures / Timestamps In-Reply-To: <4f6c865a0703201601s64393fb2jb2c1ae9ec0266ebf@mail.gmail.com> References: <4f6c865a0703191121k3b63323eyad91fe9dab74f6da@mail.gmail.com> <4f6c865a0703200535i6ec62758n3de9a93c9e118b3d@mail.gmail.com> <3387DD21-0E74-496A-8F35-22B348F3B205@iam.unibe.ch> <77D3F0FB-BE6B-4B5E-8E03-2C3B1AC169EF@iam.unibe.ch> <4f6c865a0703201601s64393fb2jb2c1ae9ec0266ebf@mail.gmail.com> Message-ID: <01E764CD-2617-417A-8D76-7D57F7643D98@iam.unibe.ch> > Do you see what I mean and do you have an ideas on that? :p Yes, I see. This is certainly feasible. Take your ideas from Apple Mail, iTunes and Finder smart groups. Also check out the attached screenshot, it shows a user interface to specify condition in a similar way. This commercial application (therefor I cannot give you the source code) based on Magritte has been written a couple of years ago. -------------- next part -------------- A non-text attachment was scrubbed... Name: pastedGraphic.tiff Type: image/tiff Size: 36580 bytes Desc: not available Url : http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20070321/151a18eb/pastedGraphic-0001.tiff -------------- next part -------------- Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From ducasse at iam.unibe.ch Wed Mar 21 10:05:05 2007 From: ducasse at iam.unibe.ch (=?ISO-8859-1?Q?st=E9phane_ducasse?=) Date: Wed, 21 Mar 2007 10:05:05 +0100 Subject: Commands on multiple structures / Timestamps In-Reply-To: <01E764CD-2617-417A-8D76-7D57F7643D98@iam.unibe.ch> References: <4f6c865a0703191121k3b63323eyad91fe9dab74f6da@mail.gmail.com> <4f6c865a0703200535i6ec62758n3de9a93c9e118b3d@mail.gmail.com> <3387DD21-0E74-496A-8F35-22B348F3B205@iam.unibe.ch> <77D3F0FB-BE6B-4B5E-8E03-2C3B1AC169EF@iam.unibe.ch> <4f6c865a0703201601s64393fb2jb2c1ae9ec0266ebf@mail.gmail.com> <01E764CD-2617-417A-8D76-7D57F7643D98@iam.unibe.ch> Message-ID: <4063BBF0-E4BB-46C8-BA94-ED292B1FEF9D@iam.unibe.ch> lukas I thought that we could enrich the metadescription themselves to let us know what are the selectors we can use and the other object we can use (such as today lastMonth....) Stef On 21 mars 07, at 00:12, Lukas Renggli wrote: >> Do you see what I mean and do you have an ideas on that? :p > > Yes, I see. This is certainly feasible. Take your ideas from Apple > Mail, iTunes and Finder smart groups. > > Also check out the attached screenshot, it shows a user interface > to specify condition in a similar way. This commercial application > (therefor I cannot give you the source code) based on Magritte has > been written a couple of years ago. > > > > Cheers, > Lukas > > -- > Lukas Renggli > http://www.lukas-renggli.ch > > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki From renggli at iam.unibe.ch Wed Mar 21 10:47:35 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Wed, 21 Mar 2007 10:47:35 +0100 Subject: Commands on multiple structures / Timestamps In-Reply-To: <4063BBF0-E4BB-46C8-BA94-ED292B1FEF9D@iam.unibe.ch> References: <4f6c865a0703191121k3b63323eyad91fe9dab74f6da@mail.gmail.com> <4f6c865a0703200535i6ec62758n3de9a93c9e118b3d@mail.gmail.com> <3387DD21-0E74-496A-8F35-22B348F3B205@iam.unibe.ch> <77D3F0FB-BE6B-4B5E-8E03-2C3B1AC169EF@iam.unibe.ch> <4f6c865a0703201601s64393fb2jb2c1ae9ec0266ebf@mail.gmail.com> <01E764CD-2617-417A-8D76-7D57F7643D98@iam.unibe.ch> <4063BBF0-E4BB-46C8-BA94-ED292B1FEF9D@iam.unibe.ch> Message-ID: > lukas I thought that we could enrich the metadescription themselves to > let us know what are the selectors we can use and the other object we > can use (such as today lastMonth....) Exactly, Magritte does not provide this information right now. In fact trough the history of Magritte there were some attempts in providing something like that as part of the core framework, but it hasn't happened yet as it turned out to be a bit difficult to make it useful in different contexts. What I did in this project I sent the screenshot was to create a comparator object that represented a sentences like: creation date is earlier than yesterday tags contains seaside number of visits between 1000 and 2000 etc. As you can observe this is basically a Smalltalk message to a receiver with some arguments. How to build these messages? I extended descriptions to return comparators they support: this is basically a collection of selectors associated with a collection of descriptions for each of their arguments. Then I build a UI that (1) lets users choose the description they want to query, (2) displays a drop down with the selectors (or better a readable label) that let users choose an operation and then (3) display editors for the arguments based on the descriptions. That's the basic strategy. We can do some pair programming next week and try to come up with something that is useable as part of the core, if you like? Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From sebjulliand at gmail.com Wed Mar 21 15:46:20 2007 From: sebjulliand at gmail.com (=?ISO-8859-1?Q?S=E9bastien_Julliand?=) Date: Wed, 21 Mar 2007 15:46:20 +0100 Subject: Commands on multiple structures / Timestamps In-Reply-To: References: <4f6c865a0703191121k3b63323eyad91fe9dab74f6da@mail.gmail.com> <4f6c865a0703200535i6ec62758n3de9a93c9e118b3d@mail.gmail.com> <3387DD21-0E74-496A-8F35-22B348F3B205@iam.unibe.ch> <77D3F0FB-BE6B-4B5E-8E03-2C3B1AC169EF@iam.unibe.ch> <4f6c865a0703201601s64393fb2jb2c1ae9ec0266ebf@mail.gmail.com> <01E764CD-2617-417A-8D76-7D57F7643D98@iam.unibe.ch> <4063BBF0-E4BB-46C8-BA94-ED292B1FEF9D@iam.unibe.ch> Message-ID: <4f6c865a0703210746g23fc5faj4cec51d60d2e9e8c@mail.gmail.com> 2007/3/21, Lukas Renggli : > > > lukas I thought that we could enrich the metadescription themselves to > > let us know what are the selectors we can use and the other object we > > can use (such as today lastMonth....) > > Exactly, Magritte does not provide this information right now. In > fact trough the history of Magritte there were some attempts in > providing something like that as part of the core framework, but it > hasn't happened yet as it turned out to be a bit difficult to make it > useful in different contexts. > > What I did in this project I sent the screenshot was to create a > comparator object that represented a sentences like: > > creation date is earlier than yesterday > tags contains seaside > number of visits between 1000 and 2000 > etc. > > As you can observe this is basically a Smalltalk message to a > receiver with some arguments. How to build these messages? I extended > descriptions to return comparators they support: this is basically a > collection of selectors associated with a collection of descriptions > for each of their arguments. Then I build a UI that (1) lets users > choose the description they want to query, (2) displays a drop down > with the selectors (or better a readable label) that let users choose > an operation and then (3) display editors for the arguments based on > the descriptions. Yay! What you describe here is exactly what's in our mind. That's the basic strategy. We can do some pair programming next week > and try to come up with something that is useable as part of the > core, if you like? Yes, Stef told me you are around here next week. Indeed, it would be great if we could come up with something. I'll have a lot of time for this project next week, so I'll be ready when you are :). -- S?bastien JULLIAND -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20070321/c3b61d7e/attachment.html From renggli at iam.unibe.ch Sat Mar 24 08:14:23 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Sat, 24 Mar 2007 08:14:23 +0100 Subject: path error on link-click after a while in Pier In-Reply-To: <45FF737E.3080502@sonaural.com> References: <45FA1275.2000603@sonaural.com> <45FF737E.3080502@sonaural.com> Message-ID: <629B7D92-8A62-468D-BE4A-2B694CB6FE67@iam.unibe.ch> > http://cmsbox.netstyle.ch/ seems to exhibit a problem too when it > times out. Although, it looks more like it uses ProxyPass instead > of Rewrite rules. Thanks, this is fixed now. No, it uses RewriteRules. It is basically the same setup everywhere. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From matthias.berth at googlemail.com Sat Mar 24 21:12:15 2007 From: matthias.berth at googlemail.com (Matthias Berth) Date: Sat, 24 Mar 2007 21:12:15 +0100 Subject: Linking to a command in a Pier wiki page? Message-ID: <9aa6ae270703241312o200171a8y8d82c05fae03be45@mail.gmail.com> Hello, is it possible to link to a Pier command from a Pier page? Example wiki text: !Welcome Please *log in>command:PULogin*, or *read more*. Cheers Matthias From renggli at iam.unibe.ch Sat Mar 24 21:58:46 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Sat, 24 Mar 2007 21:58:46 +0100 Subject: Linking to a command in a Pier wiki page? In-Reply-To: <9aa6ae270703241312o200171a8y8d82c05fae03be45@mail.gmail.com> References: <9aa6ae270703241312o200171a8y8d82c05fae03be45@mail.gmail.com> Message-ID: > is it possible to link to a Pier command from a Pier page? > > Example wiki text: > > !Welcome > Please *log in>command:PULogin*, or *read more*. This is currently not possible, but would be a nice thing to add. For now (as a workaround) you can create try the following markup using an external URL, however note that this will create a new session: !Welcome Please *log in>http://www.lukas-renggli.ch/?command=PULogin*, or *read more*. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From renggli at iam.unibe.ch Sat Mar 24 21:59:43 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Sat, 24 Mar 2007 21:59:43 +0100 Subject: [ANN] Bug Tracking on Mantis Message-ID: Bugs of Magritte and Pier are now tracked on Mantis. To report chose the project 'Squeak Packages' and an appropriate category, e.g. 'Magritte' or 'Pier'. Of course, and this is still the preferred way, all the Monticello repositories are open for your contribution. Therefor if you have found and fixed a bug you can directly commit your changes there. They will eventually be merged into the mainstream. That's simple and generally more efficient. For all other cases there is Mantis now. Cheers, Lukas PS: There is also a category for Seaside on Mantis, in case that's the source of problems. -- Lukas Renggli http://www.lukas-renggli.ch From brad at sonaural.com Sat Mar 24 23:20:51 2007 From: brad at sonaural.com (Brad Fuller) Date: Sat, 24 Mar 2007 15:20:51 -0700 Subject: path error on link-click after a while in Pier In-Reply-To: <629B7D92-8A62-468D-BE4A-2B694CB6FE67@iam.unibe.ch> References: <45FA1275.2000603@sonaural.com> <45FF737E.3080502@sonaural.com> <629B7D92-8A62-468D-BE4A-2B694CB6FE67@iam.unibe.ch> Message-ID: <4605A443.1060800@sonaural.com> Lukas Renggli wrote: >> http://cmsbox.netstyle.ch/ seems to exhibit a problem too when it >> times out. Although, it looks more like it uses ProxyPass instead >> of Rewrite rules. >> > > Thanks, this is fixed now. > > No, it uses RewriteRules. It is basically the same setup everywhere. > Can you tell me how you fixed it. I STILL have the same problems as before. I cannot figure i out. -- brad fuller http://www.Sonaural.com/ +1 (408) 799-6124 From renggli at iam.unibe.ch Mon Mar 26 09:16:04 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Mon, 26 Mar 2007 09:16:04 +0200 Subject: path error on link-click after a while in Pier In-Reply-To: <4605A443.1060800@sonaural.com> References: <45FA1275.2000603@sonaural.com> <45FF737E.3080502@sonaural.com> <629B7D92-8A62-468D-BE4A-2B694CB6FE67@iam.unibe.ch> <4605A443.1060800@sonaural.com> Message-ID: <615E900F-4678-49B3-B6AA-A6CED11FBA74@iam.unibe.ch> >>> http://cmsbox.netstyle.ch/ seems to exhibit a problem too when it >>> times out. Although, it looks more like it uses ProxyPass instead >>> of Rewrite rules. >>> >> >> Thanks, this is fixed now. >> >> No, it uses RewriteRules. It is basically the same setup everywhere. > > Can you tell me how you fixed it. I STILL have the same problems as > before. I cannot figure i out. I applied this rewrite rule as the first one: RewriteRule ^/seaside/pier(.*)$ http://www.lukas-renggli.ch$1 [R,L] It redirects to the root if Seaside generates an invalid request URL. Unfortunately this is not easy to fix in Seaside, as this would break a lot of other applications that are not served from the root. I will see for Seaside 2.8 if we can do something about it. Lukas -- Lukas Renggli http://www.lukas-renggli.ch From charles at datasof.com Mon Mar 26 17:12:50 2007 From: charles at datasof.com (Charles A. Monteiro) Date: Mon, 26 Mar 2007 10:12:50 -0500 Subject: [ANN] Bug Tracking on Mantis In-Reply-To: References: Message-ID: So you all bumped into Mantis :), I did as well about a year ago, not a bad bug tracker at all, it has its couple quirks but overall at least to me smoother to use than something like RequestTracker. On Sat, 24 Mar 2007 15:59:43 -0500, Lukas Renggli wrote: > Bugs of Magritte and Pier are now tracked on Mantis. To report chose > the project 'Squeak Packages' and an appropriate category, e.g. > 'Magritte' or 'Pier'. > > Of course, and this is still the preferred way, all the Monticello > repositories are open for your contribution. Therefor if you have > found and fixed a bug you can directly commit your changes there. > They will eventually be merged into the mainstream. That's simple and > generally more efficient. For all other cases there is Mantis now. > > Cheers, > Lukas > > PS: There is also a category for Seaside on Mantis, in case that's > the source of problems. > -- Charles A. Monteiro http://wiki.nycsmalltalk.org http://www.monteirosfusion.com http://monteirofusion.blogspot.com From renggli at iam.unibe.ch Mon Mar 26 16:24:25 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Mon, 26 Mar 2007 16:24:25 +0200 Subject: [ANN] Bug Tracking on Mantis In-Reply-To: References: Message-ID: <1B087BAF-7F69-4C21-B358-B7365843B11D@iam.unibe.ch> > So you all bumped into Mantis :), I did as well about a year ago, > not a > bad bug tracker at all, it has its couple quirks but overall at > least to > me smoother to use than something like RequestTracker. Mhh, I noticed that I forgot to mention the URL. Less useful if nobody knows where to find it, but I think most people correctly guessed that we use the official Squeak bug tracker: http://bugs.squeak.org/set_project.php? project_id=9&make_default=no&ref=bug_report_page.php Lukas -- Lukas Renggli http://www.lukas-renggli.ch From damien.cassou at gmail.com Tue Mar 27 18:23:29 2007 From: damien.cassou at gmail.com (Damien Cassou) Date: Tue, 27 Mar 2007 18:23:29 +0200 Subject: Problem with Pier Blog In-Reply-To: References: <45F6D535.6080604@zyoconsulting.com> <52CCC8B9-4A98-4D70-8165-81433B1B8EA6@iam.unibe.ch> Message-ID: <6ac749c10703270923w467e4b3ambb3dd5e3b9b650aa@mail.gmail.com> Pier-Blog is on Universe. 2007/3/15, st?phane ducasse : > True > This is an excellent example that could be used to propose a good > solution to deal with dependencies. > > On 15 mars 07, at 08:07, Lukas Renggli wrote: > > >> so maybe you should have an installer. > >> I have the impression that as soon as a package get a public usage it > >> should have an installer. > >> or we will be killed by dependencies. > > > > It starts to be complicated. I already have sort of a simple > > installer framework. > > > > Magritte -> loads seaside, kom, magritte > > Pier -> loads magritte, pier > > Pier Unix Security -> loads pier, unix security > > > > But then > > > > Pier Blog -> loads pier, rsrss, pier blog > > > > What about the package 'Pier Unix Security'? Should that be loaded as > > well? No, because there are other security frameworks around that > > might be used instead. The dependenceis of 'Pier Unix Security' and > > 'Pier Blog' could depend on different versions of Pier. What a mess. > > > > Lukas > > > > > > > > > > > >> > >> Stef > >> > >> On 13 mars 07, at 17:51, Lukas Renggli wrote: > >> > >>>> I get the next error: > >>>> > >>>> > >>>> MessageNotUnderstood: WARenderedHtmlRoot>>rss > >>> > >>> The Pier blog requires the package RSRSS from http:// > >>> www.squeaksource.com/rsrss as a prerequisite. > >>> > >>> Cheers, > >>> Lukas > >>> > >>> -- > >>> Lukas Renggli > >>> http://www.lukas-renggli.ch > >>> > >>> > >>> > >>> _______________________________________________ > >>> SmallWiki, Magritte, Pier and Related Tools ... > >>> https://www.iam.unibe.ch/mailman/listinfo/smallwiki > >> > >> > >> _______________________________________________ > >> SmallWiki, Magritte, Pier and Related Tools ... > >> https://www.iam.unibe.ch/mailman/listinfo/smallwiki > > > > -- > > Lukas Renggli > > http://www.lukas-renggli.ch > > > > > > > > _______________________________________________ > > SmallWiki, Magritte, Pier and Related Tools ... > > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -- Damien Cassou From matthias.berth at googlemail.com Tue Mar 27 19:57:55 2007 From: matthias.berth at googlemail.com (Matthias Berth) Date: Tue, 27 Mar 2007 19:57:55 +0200 Subject: Design of Pier Blog Message-ID: <9aa6ae270703271057y4d0f5445l8394fe1794c5be44@mail.gmail.com> Hello, I am trying to figure out the design of the classes in Pier Blog. I am wondering why PBBlog is a subclass of PRCase, and not a direct subclass of PRStructure: PRStructure #('parent' 'name' 'title' 'tags') PRCase #('document') PBBlog #('managingEditor' 'webMaster' 'copyright' 'language' 'itemCount' 'feedTitle' 'commentTimeout') PBEntry #('uuid' 'author' 'publication') PBComment #() PBPost #('sourceUrl' 'sourceTitle' 'enclosure') PRPage #() PRComponent #('componentClass' 'settings') PRFile #('file') PRForm #('model' 'metamodel') PRCase's class comment says:"I am an abstract class holding onto a document definition representing the contents of the receiver. Most of my subclasses will allow user to edit myself using the Wiki syntax." I guess my question is: for an application that is similar to a blog (managing a list of homogeneous entries, maybe nested), is it a good idea to make it a direct subclass of PRStructure? Matthias From renggli at iam.unibe.ch Tue Mar 27 21:06:23 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Tue, 27 Mar 2007 21:06:23 +0200 Subject: Design of Pier Blog In-Reply-To: <9aa6ae270703271057y4d0f5445l8394fe1794c5be44@mail.gmail.com> References: <9aa6ae270703271057y4d0f5445l8394fe1794c5be44@mail.gmail.com> Message-ID: <10F264FE-0280-416A-86CA-79736629473F@iam.unibe.ch> > I am trying to figure out the design of the classes in Pier Blog. I am > wondering why PBBlog is a subclass of PRCase, and not a direct > subclass of PRStructure: I wanted to be able to put a longer description of the Blog. PRStructure and all other subclasses except PRCase don't have an attached document. > I guess my question is: for an application that is similar to a blog > (managing a list of homogeneous entries, maybe nested), is it a good > idea to make it a direct subclass of PRStructure? The decision if a PRStructure can be nested or not is orthogonal to the functionality the class provides. The nesting is solely with the PRChildren decoration that can be added and removed on demand, in fact this happens behind the curtain. In SmallWiki this was different and caused a lot of problems. By overriding #canBeChildOf: and #canBeParentOf: you can control what can be nested into what else. So the question to subclass PRStructure or PRCase is solely a question if you need the parser, formatter and editor for the wiki syntax. aBoolean ifTrue: [ PRCase ] ifFalse: [ PRStructure ] Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From matthias.berth at googlemail.com Tue Mar 27 23:15:06 2007 From: matthias.berth at googlemail.com (Matthias Berth) Date: Tue, 27 Mar 2007 23:15:06 +0200 Subject: Design of Pier Blog In-Reply-To: <10F264FE-0280-416A-86CA-79736629473F@iam.unibe.ch> References: <9aa6ae270703271057y4d0f5445l8394fe1794c5be44@mail.gmail.com> <10F264FE-0280-416A-86CA-79736629473F@iam.unibe.ch> Message-ID: <9aa6ae270703271415x31c122dao2fd19db0465d1935@mail.gmail.com> Lukas, > I wanted to be able to put a longer description of the Blog. > PRStructure and all other subclasses except PRCase don't have an > attached document. yeah, that's what I found out after writing the email :-) > The decision if a PRStructure can be nested or not is orthogonal to > the functionality the class provides. The nesting is solely with the > PRChildren decoration that can be added and removed on demand, in > fact this happens behind the curtain. In SmallWiki this was different > and caused a lot of problems. By overriding #canBeChildOf: and > #canBeParentOf: you can control what can be nested into what else. > > So the question to subclass PRStructure or PRCase is solely a > question if you need the parser, formatter and editor for the wiki > syntax. That makes sense, thanks a lot! Matthias From brad at sonaural.com Wed Mar 28 00:48:54 2007 From: brad at sonaural.com (Brad Fuller) Date: Tue, 27 Mar 2007 15:48:54 -0700 Subject: path error on link-click after a while in Pier In-Reply-To: <615E900F-4678-49B3-B6AA-A6CED11FBA74@iam.unibe.ch> References: <45FA1275.2000603@sonaural.com> <45FF737E.3080502@sonaural.com> <629B7D92-8A62-468D-BE4A-2B694CB6FE67@iam.unibe.ch> <4605A443.1060800@sonaural.com> <615E900F-4678-49B3-B6AA-A6CED11FBA74@iam.unibe.ch> Message-ID: <46099F56.1010100@sonaural.com> Lukas Renggli wrote: >>>> http://cmsbox.netstyle.ch/ seems to exhibit a problem too when it >>>> times out. Although, it looks more like it uses ProxyPass instead >>>> of Rewrite rules. >>>> >>>> >>> Thanks, this is fixed now. >>> >>> No, it uses RewriteRules. It is basically the same setup everywhere. >>> >> Can you tell me how you fixed it. I STILL have the same problems as >> before. I cannot figure i out. >> > > I applied this rewrite rule as the first one: > > RewriteRule ^/seaside/pier(.*)$ http://www.lukas-renggli.ch$1 [R,L] > Thanks Lukas, that seems to work. The difference is the [R] from before to redirecting it back to the domain name once again. Again, thanks! What a headache that was! brad -- brad fuller http://www.Sonaural.com/ +1 (408) 799-6124 From yjgalla at gmx.net Wed Mar 28 14:03:22 2007 From: yjgalla at gmx.net (Elfi Heck) Date: Wed, 28 Mar 2007 14:03:22 +0200 Subject: wikimatrix.org Message-ID: <460A598A.4030105@gmx.net> Just found http://www.wikimatrix.org. I'm wondering why Pier is not listed there. Is there some other reason apart from "no one registered it yet"? Cheers, Elfi From yjgalla at gmx.net Wed Mar 28 14:10:55 2007 From: yjgalla at gmx.net (Elfi Heck) Date: Wed, 28 Mar 2007 14:10:55 +0200 Subject: gmane Message-ID: <460A5B4F.5000901@gmx.net> This list used to be readable via gmane. That stopped in September 2006. Did the list move or something like that? Would it be possible to update the gmane information? Elfi (again) From renggli at iam.unibe.ch Wed Mar 28 14:25:17 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Wed, 28 Mar 2007 14:25:17 +0200 Subject: wikimatrix.org In-Reply-To: <460A598A.4030105@gmx.net> References: <460A598A.4030105@gmx.net> Message-ID: > Just found http://www.wikimatrix.org. I'm wondering why Pier is not > listed there. Is there some other reason apart from "no one registered > it yet"? Because it is more than a Wiki, more like a CMS with full pluggability for Seaside applications ;-) Well, I think it could make sense to add. Do you volunteer? Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From renggli at iam.unibe.ch Wed Mar 28 14:26:08 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Wed, 28 Mar 2007 14:26:08 +0200 Subject: gmane In-Reply-To: <460A5B4F.5000901@gmx.net> References: <460A5B4F.5000901@gmx.net> Message-ID: <6BF0396A-8235-4F04-BF5A-DBD2C0D3E512@iam.unibe.ch> > This list used to be readable via gmane. That stopped in September > 2006. > Did the list move or something like that? Would it be possible to > update > the gmane information? I don't know. Could it be because we moved the archive somewhere else? How does gmane work? Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From yjgalla at gmx.net Wed Mar 28 15:02:59 2007 From: yjgalla at gmx.net (Elfi Heck) Date: Wed, 28 Mar 2007 15:02:59 +0200 Subject: wikimatrix.org In-Reply-To: References: <460A598A.4030105@gmx.net> Message-ID: <460A6783.5050602@gmx.net> > Because it is more than a Wiki, more like a CMS with full > pluggability for Seaside applications ;-) > I knew that, of course :-) > Well, I think it could make sense to add. Do you volunteer? > I'd say yes, but I'm not sure I really know all features. I am able to answer questions like: "What programming language is it implemented in?", so if you you want me to, I could try to at least enter the basic information there. Elfi From norbert at hartl.name Wed Mar 28 15:08:09 2007 From: norbert at hartl.name (Norbert Hartl) Date: Wed, 28 Mar 2007 15:08:09 +0200 Subject: Empty Magritte Modules Message-ID: <1175087289.32515.26.camel@localhost> All the latest versions of magritte in the Monticello repository seem to be empty. For expample, I downloaded the latest Magritte-Seaside (219) with my web browser from mc.lukas-renggli.ch. The mcz file is 16205 bytes in size. source.st is just 279 bytes. This doesn't seem to be a full release. Norbert From yjgalla at gmx.net Wed Mar 28 15:14:07 2007 From: yjgalla at gmx.net (Elfi Heck) Date: Wed, 28 Mar 2007 15:14:07 +0200 Subject: gmane In-Reply-To: <6BF0396A-8235-4F04-BF5A-DBD2C0D3E512@iam.unibe.ch> References: <460A5B4F.5000901@gmx.net> <6BF0396A-8235-4F04-BF5A-DBD2C0D3E512@iam.unibe.ch> Message-ID: <460A6A1F.3050708@gmx.net> > I don't know. Could it be because we moved the archive somewhere > else? How does gmane work? > I don't know. I'll try to find out. I saw that they have an "edit" link. I'll try if they let anyone update the information, if you have no objections. Elfi From cbeler at enit.fr Wed Mar 28 16:21:48 2007 From: cbeler at enit.fr (=?ISO-8859-1?Q?C=E9drick_B=E9ler?=) Date: Wed, 28 Mar 2007 16:21:48 +0200 Subject: gmane In-Reply-To: <6BF0396A-8235-4F04-BF5A-DBD2C0D3E512@iam.unibe.ch> References: <460A5B4F.5000901@gmx.net> <6BF0396A-8235-4F04-BF5A-DBD2C0D3E512@iam.unibe.ch> Message-ID: <460A79FC.1000107@enit.fr> strange, gmane is working for me... My uni dns wasn't well configured for all squeak related site and lists :( !!! so I used gmane until yesterday and it seems ok... there are today's messages... http://news.gmane.org/gmane.comp.lang.smalltalk.squeak.seaside C?drick Lukas Renggli a ?crit : >> This list used to be readable via gmane. That stopped in September >> 2006. >> Did the list move or something like that? Would it be possible to >> update >> the gmane information? >> > > I don't know. Could it be because we moved the archive somewhere > else? How does gmane work? > > Cheers, > Lukas > > -- */C?drick/**/ B?ler/* */DOCTORANT/* * * *L*aboratoire *G*?nie de *P*roduction - Equipe Production Automatis?e Ecole Nationale d'Ing?nieurs de Tarbes - http://www.enit.fr 47, Avenue d'Azereix - BP 1629 F-65016 TARBES Cedex - FRANCE _Phone:_ (+33) (0)5 62 44 27 00 (poste 28 37) _Fax:_ (+33) (0)5 62 44 27 08 _Mobile:_ (+33) (0)6 81 33 02 04 E-mail: cbeler at enit.fr From yjgalla at gmx.net Wed Mar 28 15:57:56 2007 From: yjgalla at gmx.net (Elfi Heck) Date: Wed, 28 Mar 2007 15:57:56 +0200 Subject: gmane In-Reply-To: <460A79FC.1000107@enit.fr> References: <460A5B4F.5000901@gmx.net> <6BF0396A-8235-4F04-BF5A-DBD2C0D3E512@iam.unibe.ch> <460A79FC.1000107@enit.fr> Message-ID: <460A7464.7010407@gmx.net> > http://news.gmane.org/gmane.comp.lang.smalltalk.squeak.seaside > I don't see any problems with the *seaside* list, either. http://dir.gmane.org/gmane.comp.lang.smalltalk.smallwiki has one message Jan, 26 one message Nov, 11 all other messages are Sep, 17 and before. Elfi From renggli at iam.unibe.ch Wed Mar 28 15:57:32 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Wed, 28 Mar 2007 15:57:32 +0200 Subject: wikimatrix.org In-Reply-To: <460A6783.5050602@gmx.net> References: <460A598A.4030105@gmx.net> <460A6783.5050602@gmx.net> Message-ID: >> Well, I think it could make sense to add. Do you volunteer? > > I'd say yes, but I'm not sure I really know all features. I am able to > answer questions like: "What programming language is it implemented > in?", so if you you want me to, I could try to at least enter the > basic > information there. Ok, enter the basic information and copy the rest into the mailing list so that we can collect all the remaining information together. That's simpler, and more important I don't have to register on that web site ;-) Thanks for your upcoming contribution! Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From renggli at iam.unibe.ch Wed Mar 28 16:09:48 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Wed, 28 Mar 2007 16:09:48 +0200 Subject: gmane In-Reply-To: <460A6A1F.3050708@gmx.net> References: <460A5B4F.5000901@gmx.net> <6BF0396A-8235-4F04-BF5A-DBD2C0D3E512@iam.unibe.ch> <460A6A1F.3050708@gmx.net> Message-ID: >> I don't know. Could it be because we moved the archive somewhere >> else? How does gmane work? > > I don't know. I'll try to find out. I saw that they have an "edit" > link. > I'll try if they let anyone update the information, if you have no > objections. Sure, please do so. I don't have any idea who installed it in the first place. Lukas -- Lukas Renggli http://www.lukas-renggli.ch From renggli at iam.unibe.ch Wed Mar 28 16:26:16 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Wed, 28 Mar 2007 16:26:16 +0200 Subject: Empty Magritte Modules In-Reply-To: <1175087289.32515.26.camel@localhost> References: <1175087289.32515.26.camel@localhost> Message-ID: > All the latest versions of magritte in the > Monticello repository seem to be empty. For expample, > I downloaded the latest Magritte-Seaside (219) with my > web browser from mc.lukas-renggli.ch. The mcz file is > 16205 bytes in size. source.st is just 279 bytes. This > doesn't seem to be a full release. Yes, these were some faulty commits that used a different commit strategy in Monticello (diff-commits). These are somehow broken and show up as empty packages, probably a bug in Monticello for Squeak 3.9. I removed them now from the repository. Please clear your cache and try again to load the latest version. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From norbert at hartl.name Wed Mar 28 17:41:55 2007 From: norbert at hartl.name (Norbert Hartl) Date: Wed, 28 Mar 2007 17:41:55 +0200 Subject: Empty Magritte Modules In-Reply-To: References: <1175087289.32515.26.camel@localhost> Message-ID: <1175096515.32515.34.camel@localhost> On Wed, 2007-03-28 at 16:26 +0200, Lukas Renggli wrote: > > All the latest versions of magritte in the > > Monticello repository seem to be empty. For expample, > > I downloaded the latest Magritte-Seaside (219) with my > > web browser from mc.lukas-renggli.ch. The mcz file is > > 16205 bytes in size. source.st is just 279 bytes. This > > doesn't seem to be a full release. > > Yes, these were some faulty commits that used a different commit > strategy in Monticello (diff-commits). These are somehow broken and > show up as empty packages, probably a bug in Monticello for Squeak > 3.9. I removed them now from the repository. Please clear your cache > and try again to load the latest version. > I don't had luck. Magritte-seaside-219 Magritte-Tests-lr.11 Magritte-Model-lr.253 Magritte-Model-lr.254 Magritte-Model-lr.255 are all empty. For now I loaded Maritte-All-lr.204 and this seems to work. Norbert From yjgalla at gmx.net Thu Mar 29 15:09:33 2007 From: yjgalla at gmx.net (Elfi Heck) Date: Thu, 29 Mar 2007 15:09:33 +0200 Subject: wikimatrix.org In-Reply-To: References: <460A598A.4030105@gmx.net> <460A6783.5050602@gmx.net> Message-ID: <460BBA8D.2060201@gmx.net> > Ok, enter the basic information and copy the rest into the mailing > list so that we can collect all the remaining information together. > Pier is now visible on http://www.wikimatrix.org/show/Pier. I've entered some information I gleaned from SqueakMap browser (version/license information), the project page (overview text), the seaside mailing list (webservers) and other sources. If something is wrong, it would be good to tell me ASAP, so I can correct it. Please tell me also about all the missing information. Cheers, Elfi From alexandre.buisson at etu.univ-savoie.fr Fri Mar 30 09:58:16 2007 From: alexandre.buisson at etu.univ-savoie.fr (Alexandre Buisson) Date: Fri, 30 Mar 2007 09:58:16 +0200 Subject: VisualWorks image with Magritte Message-ID: <460CC318.1080801@etu.univ-savoie.fr> Hello, I look for a visualWorks image with Magritte, where can I find one ? thanks for your response.. From philippe.marschall at gmail.com Fri Mar 30 18:38:14 2007 From: philippe.marschall at gmail.com (Philippe Marschall) Date: Fri, 30 Mar 2007 18:38:14 +0200 Subject: wikimatrix.org In-Reply-To: <460BBA8D.2060201@gmx.net> References: <460A598A.4030105@gmx.net> <460A6783.5050602@gmx.net> <460BBA8D.2060201@gmx.net> Message-ID: <66666f210703300938qf5b072t93224ba9db270545@mail.gmail.com> 2007/3/29, Elfi Heck : > > > Ok, enter the basic information and copy the rest into the mailing > > list so that we can collect all the remaining information together. > > > Pier is now visible on http://www.wikimatrix.org/show/Pier. I've entered > some information I gleaned from SqueakMap browser (version/license > information), the project page (overview text), the seaside mailing list > (webservers) and other sources. > If something is wrong, it would be good to tell me ASAP, so I can > correct it. Please tell me also about all the missing information. License Cost/ Fee: free Webserver: (has webserver included, but can be run behind Apache/lighty/whatever) ACL: yes, with Windows Security Host Blocking: yes, with Windows Security Commercial Support: I'm pretty sure netstyle.ch will provide commercial support if asked Issue Tracker: http://bugs.squeak.org/ (I think) Unicode Support: yes Interface Languages: english only InterWiki: yes (I think) Other (data storage): xml, oodb, smalltalk image Themes & Skins: yes (I think) Embedded Video: yes (I think, probably needs testing) Images (syntax): +image+ > Cheers, Elfi > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > From philippe.marschall at gmail.com Fri Mar 30 18:58:09 2007 From: philippe.marschall at gmail.com (Philippe Marschall) Date: Fri, 30 Mar 2007 18:58:09 +0200 Subject: wikimatrix.org In-Reply-To: <460BBA8D.2060201@gmx.net> References: <460A598A.4030105@gmx.net> <460A6783.5050602@gmx.net> <460BBA8D.2060201@gmx.net> Message-ID: <66666f210703300958w4884bd6cm593f8a0fdea94e29@mail.gmail.com> 2007/3/29, Elfi Heck : > > > Ok, enter the basic information and copy the rest into the mailing > > list so that we can collect all the remaining information together. > > > Pier is now visible on http://www.wikimatrix.org/show/Pier. I've entered > some information I gleaned from SqueakMap browser (version/license > information), the project page (overview text), the seaside mailing list > (webservers) and other sources. > If something is wrong, it would be good to tell me ASAP, so I can > correct it. Please tell me also about all the missing information. I just found out that no is an answer too, so Operating System: Windows, MacOS, Linux (maybe Solaris, *BSD and RiscOS, but I don't know about the VM status on these machines) License Cost/ Fee: free Webserver: none needed Datastorage: Text Files: no MySQL: no PostgreSQL: theoricially, probably no is better Oracle: no SQLite: no BerkeleyDB: no RCS: no Other: XML, Magman, Smalltalk image, ReferenceStream, SmartRefernceStream (ImageSegment) ACL: yes, with Windows Security Authentication Backends: no (if I understood correctly) Preconfigured Hosting: no Support Forum: no IRC Channel: no Preview: no Right-to-Left Support: Optional (if I understood correctly) Email notification: no Comments: no Page Redirection: no Conflict Handling: no Namespaces: yes (I think) Math formulas: no Tables: yes (!) CREOLE support: no Markdown Support: no Textile Support: no BBCode Support: no Emoticon Images: no (was in old versions) Syntax Highlighting: no Footnotes: no Section Editing: no Double-Click Edit: no Toolbar: no WYSIWYG Editing: no Access Keys: yes (I think) Auto Signature: no (I think) Raw Export: yes (!) > Cheers, Elfi > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > From renggli at iam.unibe.ch Fri Mar 30 19:31:39 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Fri, 30 Mar 2007 19:31:39 +0200 Subject: wikimatrix.org In-Reply-To: <66666f210703300958w4884bd6cm593f8a0fdea94e29@mail.gmail.com> References: <460A598A.4030105@gmx.net> <460A6783.5050602@gmx.net> <460BBA8D.2060201@gmx.net> <66666f210703300958w4884bd6cm593f8a0fdea94e29@mail.gmail.com> Message-ID: Some more comments and a few additions: > Page Redirection: no Yes, you can do this by adding something like into the body of your page: > Conflict Handling: no Yes, Magritte does this. > Namespaces: yes (I think) Yes, definitely. > Section Editing: no > Double-Click Edit: no That was also possible some time ago. Should be easy to add if somebody wants this. > Access Keys: yes (I think) Yes. > CREOLE support: no I think it would be cool if somebody implemented that. It is sort of a standard nowadays. > Issue Tracker: http://bugs.squeak.org/ (I think) Yes. > InterWiki: yes (I think) I don't think so. > Themes & Skins: yes (I think) Yes, but unfortunately there are no other choices available. It would be cool if different skins could be included with the distribution. I would also like to have to ugly header table to be removed (I don't use it in my personal website) ;-) > Embedded Video: yes (I think, probably needs testing) Yes, it works. > Images (syntax): +image+ Monospace Format: = Monospace Text 1 = Monospace Text 2 or via html Strikethrough Format: via html Superscript Format: via html Subscript Format: via html Aligning Text: via html
Text Indentation: via html
Definition Lists: via html
-- Lukas Renggli http://www.lukas-renggli.ch From yjgalla at gmx.net Fri Mar 30 19:50:50 2007 From: yjgalla at gmx.net (Elfi Heck) Date: Fri, 30 Mar 2007 19:50:50 +0200 Subject: wikimatrix.org In-Reply-To: <66666f210703300958w4884bd6cm593f8a0fdea94e29@mail.gmail.com> References: <460A598A.4030105@gmx.net> <460A6783.5050602@gmx.net> <460BBA8D.2060201@gmx.net> <66666f210703300958w4884bd6cm593f8a0fdea94e29@mail.gmail.com> Message-ID: <460D4DFA.6060501@gmx.net> OK, I've entered your information with the following changes: > I just found out that no is an answer too, so > The possible answers for many of the fields are No, Yes, Optional, Plugin, Patch > Operating System: Windows, MacOS, Linux (maybe Solaris, *BSD and > RiscOS, but I don't know about the VM status on these machines) > I put "anything Squeak runs on" in because the comparison views will look awful when the text is too long > Webserver: none needed > I've kept my entry, because that's what "standalone" means, and you have yet to convince me that it doesn't run with the other two :-) > PostgreSQL: theoricially, probably no is better > I put in "no" > ACL: yes, with Windows Security > There's only Yes, No, Unknown available, so I chose "Yes" > Authentication Backends: no (if I understood correctly) > > ... > Support Forum: no > IRC Channel: no > These are free text fields so I'm simply leaving them empty > Conflict Handling: no > I've kept Unknown for now because Lukas says "Yes", but the available options are None, Conflict Detection, Page Locking, Conflict Resolution > Namespaces: yes (I think) > "Yes", it is then > Tables: yes (!) > The choices are simple, complex, simple + complex. I put simple because I don't know what their meaning of complex is . > Double-Click Edit: no > After reading Lukas' mail I put in "Patch" The information icons to the right of each field point to a wiki page where it's possible to give some details. I'll try to add additional information given here to these pages. I hope I didn't miss anything, Elfi From yjgalla at gmx.net Fri Mar 30 20:00:07 2007 From: yjgalla at gmx.net (Elfi Heck) Date: Fri, 30 Mar 2007 20:00:07 +0200 Subject: wikimatrix.org In-Reply-To: References: <460A598A.4030105@gmx.net> <460A6783.5050602@gmx.net> <460BBA8D.2060201@gmx.net> <66666f210703300958w4884bd6cm593f8a0fdea94e29@mail.gmail.com> Message-ID: <460D5027.6000100@gmx.net> > Yes, you can do this by adding something like into the body of your > page: > > > I thought this would be something to add to the information page, so there it is now. >> Conflict Handling: no >> > > Yes, Magritte does this. > See my answer to Philippe. "Yes" is not an available choice (they are Conflict detection, Page locking, Conflict resolution) >> CREOLE support: no >> > > I think it would be cool if somebody implemented that. It is sort of > a standard nowadays. > I also put this in an information page. Cheers, Elfi From yjgalla at gmx.net Fri Mar 30 20:19:02 2007 From: yjgalla at gmx.net (Elfi Heck) Date: Fri, 30 Mar 2007 20:19:02 +0200 Subject: wikimatrix.org In-Reply-To: <66666f210703300938qf5b072t93224ba9db270545@mail.gmail.com> References: <460A598A.4030105@gmx.net> <460A6783.5050602@gmx.net> <460BBA8D.2060201@gmx.net> <66666f210703300938qf5b072t93224ba9db270545@mail.gmail.com> Message-ID: <460D5496.3000102@gmx.net> > Images (syntax): +image+ > Oh, and I didn't understand this. Putting +whatever+ in a page gives me a regular link to "whatever" I think they meant an image shown directly on the page. Elfi From philippe.marschall at gmail.com Fri Mar 30 20:35:33 2007 From: philippe.marschall at gmail.com (Philippe Marschall) Date: Fri, 30 Mar 2007 20:35:33 +0200 Subject: wikimatrix.org In-Reply-To: <460D4DFA.6060501@gmx.net> References: <460A598A.4030105@gmx.net> <460A6783.5050602@gmx.net> <460BBA8D.2060201@gmx.net> <66666f210703300958w4884bd6cm593f8a0fdea94e29@mail.gmail.com> <460D4DFA.6060501@gmx.net> Message-ID: <66666f210703301135of189667ga5fd35b3d9e71fed@mail.gmail.com> 2007/3/30, Elfi Heck : > OK, I've entered your information with the following changes: > > I just found out that no is an answer too, so > > > The possible answers for many of the fields are No, Yes, Optional, > Plugin, Patch > > Operating System: Windows, MacOS, Linux (maybe Solaris, *BSD and > > RiscOS, but I don't know about the VM status on these machines) > > > I put "anything Squeak runs on" in because the comparison views will > look awful when the text is too long > > Webserver: none needed > > > I've kept my entry, because that's what "standalone" means, and you have > yet to convince me that it doesn't run with the other two :-) > > PostgreSQL: theoricially, probably no is better > > > I put in "no" > > ACL: yes, with Windows Security > > > There's only Yes, No, Unknown available, so I chose "Yes" > > Authentication Backends: no (if I understood correctly) > > > > ... > > Support Forum: no > > IRC Channel: no > > > These are free text fields so I'm simply leaving them empty > > Conflict Handling: no > > > I've kept Unknown for now because Lukas says "Yes", but the available > options are None, Conflict Detection, Page Locking, Conflict Resolution Conflict Detection, unless I missed something > > Namespaces: yes (I think) > > > "Yes", it is then > > Tables: yes (!) > > > The choices are simple, complex, simple + complex. I put simple because > I don't know what their meaning of complex is . Yes simple is probably right. For example it is not where DocuWiki ist. > > Double-Click Edit: no > > > After reading Lukas' mail I put in "Patch" > > The information icons to the right of each field point to a wiki page > where it's possible to give some details. I'll try to add additional > information given here to these pages. > > I hope I didn't miss anything, > Elfi > > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > From philippe.marschall at gmail.com Fri Mar 30 20:38:59 2007 From: philippe.marschall at gmail.com (Philippe Marschall) Date: Fri, 30 Mar 2007 20:38:59 +0200 Subject: wikimatrix.org In-Reply-To: References: <460A598A.4030105@gmx.net> <460A6783.5050602@gmx.net> <460BBA8D.2060201@gmx.net> <66666f210703300958w4884bd6cm593f8a0fdea94e29@mail.gmail.com> Message-ID: <66666f210703301138h30225175h20ca9d99db476dfa@mail.gmail.com> 2007/3/30, Lukas Renggli : > Some more comments and a few additions: > > > Page Redirection: no > > Yes, you can do this by adding something like into the body of your > page: > > Don't they mean something like in Wikipedia where some pages are just synonyms. For example: http://en.wikipedia.org/wiki/Gemstone_Systems > > Conflict Handling: no > > Yes, Magritte does this. > > > Namespaces: yes (I think) > > Yes, definitely. > > > Section Editing: no > > Double-Click Edit: no > > That was also possible some time ago. Should be easy to add if > somebody wants this. > > > Access Keys: yes (I think) > > Yes. > > > CREOLE support: no > > I think it would be cool if somebody implemented that. It is sort of > a standard nowadays. > > > Issue Tracker: http://bugs.squeak.org/ (I think) > > Yes. > > > InterWiki: yes (I think) > > I don't think so. > > > Themes & Skins: yes (I think) > > Yes, but unfortunately there are no other choices available. It would > be cool if different skins could be included with the distribution. I > would also like to have to ugly header table to be removed (I don't > use it in my personal website) ;-) > > > Embedded Video: yes (I think, probably needs testing) > > Yes, it works. > > > Images (syntax): +image+ > > Monospace Format: > > = Monospace Text 1 > = Monospace Text 2 > > or via html > > Strikethrough Format: via html > > Superscript Format: via html > > Subscript Format: via html > > Aligning Text: via html
> > Text Indentation: via html
> > Definition Lists: via html
> > > -- > Lukas Renggli > http://www.lukas-renggli.ch > > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > From renggli at iam.unibe.ch Fri Mar 30 21:36:26 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Fri, 30 Mar 2007 21:36:26 +0200 Subject: wikimatrix.org In-Reply-To: <460D5027.6000100@gmx.net> References: <460A598A.4030105@gmx.net> <460A6783.5050602@gmx.net> <460BBA8D.2060201@gmx.net> <66666f210703300958w4884bd6cm593f8a0fdea94e29@mail.gmail.com> <460D5027.6000100@gmx.net> Message-ID: >>> Conflict Handling: no >>> >> >> Yes, Magritte does this. >> > See my answer to Philippe. "Yes" is not an available choice (they are > Conflict detection, Page locking, Conflict resolution) Magritte provides conflict detection and conflict resolution. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From keith_hodges at yahoo.co.uk Sat Mar 31 01:50:09 2007 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Sat, 31 Mar 2007 00:50:09 +0100 Subject: wikimatrix.org In-Reply-To: <460D5496.3000102@gmx.net> References: <460A598A.4030105@gmx.net> <460A6783.5050602@gmx.net> <460BBA8D.2060201@gmx.net> <66666f210703300938qf5b072t93224ba9db270545@mail.gmail.com> <460D5496.3000102@gmx.net> Message-ID: <460DA231.1010403@yahoo.co.uk> Elfi Heck wrote: >> Images (syntax): +image+ >> >> > Oh, and I didn't understand this. Putting +whatever+ in a page gives me > a regular link to "whatever" I think they meant an image shown directly > on the page. > > Elfi > Dear Elfi, *whatever* is for linking, +whatever+ is for embedding, if 'whatever' exists and is an image it will display in the page. best regards Keith From norbert at hartl.name Sat Mar 31 12:32:23 2007 From: norbert at hartl.name (Norbert Hartl) Date: Sat, 31 Mar 2007 12:32:23 +0200 Subject: Magritte usage pattern Message-ID: <1175337143.21739.54.camel@localhost> Hi, I'm dealing now quite a bit of time with Magritte to do a web application. It took a while to get into Magritte and I'm not sure how much I've grasped til now. But I'm quite impressed by the power of Magritte. It seems to be customiz- able at the right places which distinguishes it from others. At the moment I'm refactoring the code I hacked the last weeks. I have a few questions about best practice patterns using Magritte. For the demo, you have a model and you just need any component, the case is quite easy. aModel asComponent will do. But most of the tasks that have to be done for a web application aren't that trivial. You need to have a customized layout (which can be very complex), you need your own components etc. For customization I put every little bit in a wrapper class around the generated Magritte component. This is for customizing the generated component as well as to do some manual html if it isn't avoidable. I have the feeling that this is not the right way to do but I have no better idea. To minimize the effort to do a component for a model component I've built a base class which should ease the customization of the component. The parameters for the base component are: - descriptionSelector This is a symbol which is invoke on the model if you need a subset of the descriptions. The default value is #description - componentRenderer The visitor which is used to render the component - buttons A Collection of Associations (button label -> selector). MAForm- Decoration is only useful if you have save and cancel buttons. As the selectors are performed on the MAContainerComponent there is no way of extending it. I extendend MAFormDecoration to have associations for buttons (to distinguish the button label and the selector to use) and to be created with a delegator. The selector is than performed on the delegate which leads to a usage form component addDecoration: (WHFormDecoration delegate: self) buttons: #( #ok -> commit. #abbrechen -> abort) - validation There are three choices: * no validation * validation by MAValidationDecoration (or similar) I must confess that I never understood processChildCallbacks. * manual validation and error handling Using the form [self component validate] on: MAError do: [:anException | self exception: anException]. - answering Having a wrapper component I need to process answer in the wrapper. This can be customized by defining answerBlock. Default value is self component onAnswer: ( answerBlock ifNil: [ [:anAnswer | self answer: anAnswer] ] ) - readonly/readwrite I'm mimicking the behaviour in MAElementComponent having renderViewerOn:/renderEditorOn:. This is a good way to switch a component between readonly and readwrite mode. In my case the layout of the component is completely different between those two modes. So I use two different renderers for readonly and for readwrite mode. - really complex layout cases I have one case where it is necessary to put css classes to some of the components of a form. The best way I found so far (being dirty) is to use propertyAt:put: at description level and use this in a specialized renderer So far so good. I like to hear your oppions and experiences doing this kind of stuff. Another problem I have no solution til now is the mixture of models into one component. Sometimes you build your data model and then page layout forces you to edit two objects at the same time. I have no problem to mix descriptions in a desired way. But by invoking asComponentOn: they would have all the same model which is wrong for a subset of the descriptions. Is there any clever way to mix descriptions, set the model accordingly and then produce the component? thanks in advance, Norbert From akuhn at gmx.ch Sat Mar 31 16:25:33 2007 From: akuhn at gmx.ch (Adrian Kuhn) Date: Sat, 31 Mar 2007 16:25:33 +0200 Subject: How to add a Smallwiki stylesheet as one of the defaults? Message-ID: Hi Lukas, Smallwiki rocks! I made a custom stylesheet for Smallwiki, how can I add it to the list of defaults? My stylesheet is called "The Pixel is Dead" and can adapt to any user- given font-size in the browser. for an example see http:// smallwiki.unibe.ch/moose/ cheers, AA From renggli at iam.unibe.ch Sat Mar 31 19:54:21 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Sat, 31 Mar 2007 19:54:21 +0200 Subject: How to add a Smallwiki stylesheet as one of the defaults? In-Reply-To: References: Message-ID: <5A8C85FE-7127-4BEB-98A4-FCF9761E756A@iam.unibe.ch> Hi Adrian, > Smallwiki rocks! I made a custom stylesheet for Smallwiki, how can > I add it to the list of defaults? thanks for the comment. The list of available styles is defined in the file . If you log-in to kilana.unibe.ch you can directly append your style there and it should show up on all SmallWiki instances. I don't exactly recall the whole implementation, but I think it works like this ... > My stylesheet is called "The Pixel is Dead" and can adapt to any > user-given font-size in the browser. for an example see http:// > smallwiki.unibe.ch/moose/ It's a great style, we should probably make it the default SCG style. I also noticed that you reorganized the front page. It looks much better like this. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From renggli at iam.unibe.ch Sat Mar 31 20:07:01 2007 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Sat, 31 Mar 2007 20:07:01 +0200 Subject: Magritte usage pattern In-Reply-To: <1175337143.21739.54.camel@localhost> References: <1175337143.21739.54.camel@localhost> Message-ID: Hi Norbert, > For customization I put every little bit in a wrapper class > around the generated Magritte component. This is for customizing > the generated component as well as to do some manual html if > it isn't avoidable. I have the feeling that this is not the > right way to do but I have no better idea. To minimize the effort > to do a component for a model component I've built a base class > which should ease the customization of the component. are your convenience classes available somewhere? I think that many people could profit from these extensions and they could maybe even be integrated somehow into the core package? > - really complex layout cases > I have one case where it is necessary to put css classes to some of > the components of a form. The best way I found so far (being dirty) > is to use propertyAt:put: at description level and use this in a > specialized renderer You could use #attributes of the descriptions: aDescription attributes class: 'foo' > So far so good. I like to hear your oppions and experiences doing this > kind of stuff. Your approach sounds fine to me, I also found myself doing similar things. > Another problem I have no solution til now is the mixture of models > into > one component. Sometimes you build your data model and then page > layout > forces you to edit two objects at the same time. I have no problem to > mix descriptions in a desired way. But by invoking asComponentOn: they > would have all the same model which is wrong for a subset of the > descriptions. Is there any clever way to mix descriptions, set the > model > accordingly and then produce the component? Indeed you can do that by modifying the accessors of the descriptions of referenced objects. I am copying an example from an earlier post to this mailing list, where #billingAddress and #shippingAddress are weaved into the description of anOrder: composedDescription := anOrder description copy addAll: (anOrder billingAddress description collect: [ :each | each copy accessor: (MACascadeAccessor accessor: (MASelectorAccessor selector: #billingAddress) next: each accessor) ]); addAll: (anOrder shippingAddress description collect: [ :each | each copy accessor: (MACascadeAccessor accessor: (MASelectorAccessor selector: #shippingAddress) next: each accessor) ]); asComponentOn: anOrder This looks terribly complicated, but with a simple helper function it could made look much simpler. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From norbert at hartl.name Sat Mar 31 20:43:47 2007 From: norbert at hartl.name (Norbert Hartl) Date: Sat, 31 Mar 2007 20:43:47 +0200 Subject: Magritte usage pattern In-Reply-To: References: <1175337143.21739.54.camel@localhost> Message-ID: <1175366627.21739.75.camel@localhost> On Sat, 2007-03-31 at 20:07 +0200, Lukas Renggli wrote: > Hi Norbert, > > > For customization I put every little bit in a wrapper class > > around the generated Magritte component. This is for customizing > > the generated component as well as to do some manual html if > > it isn't avoidable. I have the feeling that this is not the > > right way to do but I have no better idea. To minimize the effort > > to do a component for a model component I've built a base class > > which should ease the customization of the component. > > are your convenience classes available somewhere? I think that many > people could profit from these extensions and they could maybe even > be integrated somehow into the core package? > You are right. I will finish them a little and post them here. > > - really complex layout cases > > I have one case where it is necessary to put css classes to some of > > the components of a form. The best way I found so far (being dirty) > > is to use propertyAt:put: at description level and use this in a > > specialized renderer > > You could use #attributes of the descriptions: > > aDescription attributes class: 'foo' > Oh, I should have found that :) Looks much better. > > So far so good. I like to hear your oppions and experiences doing this > > kind of stuff. > > Your approach sounds fine to me, I also found myself doing similar > things. > > > Another problem I have no solution til now is the mixture of models > > into > > one component. Sometimes you build your data model and then page > > layout > > forces you to edit two objects at the same time. I have no problem to > > mix descriptions in a desired way. But by invoking asComponentOn: they > > would have all the same model which is wrong for a subset of the > > descriptions. Is there any clever way to mix descriptions, set the > > model > > accordingly and then produce the component? > > Indeed you can do that by modifying the accessors of the descriptions > of referenced objects. I am copying an example from an earlier post > to this mailing list, where #billingAddress and #shippingAddress are > weaved into the description of anOrder: > > composedDescription := anOrder description copy > addAll: (anOrder billingAddress description collect: [ :each | > each copy accessor: (MACascadeAccessor > accessor: (MASelectorAccessor selector: #billingAddress) > next: each accessor) ]); > addAll: (anOrder shippingAddress description collect: [ :each | > each copy accessor: (MACascadeAccessor > accessor: (MASelectorAccessor selector: #shippingAddress) > next: each accessor) ]); > asComponentOn: anOrder > Ok, I only imagined to carry more than one model. But to chain selector invocation is much more clever. It will only work if the objects related directly but I doubt you need to combine model objects often when they are not related directly. For further assistance please remember that you renamed MACascadeAccessor to MAChainAccessor :) It was in Magritte-Model-206 ;) > This looks terribly complicated, but with a simple helper function it > could made look much simpler. I didn't try it but it looks not too complicated. thanks very much, Norbert