From dz0004455 at gmail.com Wed Oct 1 23:24:52 2008 From: dz0004455 at gmail.com (David Zmick) Date: Wed, 1 Oct 2008 16:24:52 -0500 Subject: [pier] Ideal pier setup Message-ID: what is the "ideal" way to get a working pier image for deployment set up? -- David Zmick /dz0004455\ http://dz0004455.googlepages.com http://dz0004455.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20081001/0987d3ea/attachment.html From keith_hodges at yahoo.co.uk Thu Oct 2 01:23:04 2008 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Thu, 02 Oct 2008 00:23:04 +0100 Subject: [pier] Ideal pier setup In-Reply-To: References: Message-ID: <48E40658.6020106@yahoo.co.uk> David Zmick wrote: > what is the "ideal" way to get a working pier image for deployment set up? > > -- > David Zmick I think that the ideal method is to load all the stuff from UNiverses or Sake/Packages. By default a pier application is added to seaside. My suggestion is that when you select the PRFrame the whole site comes preconfigured according to the chosen frame class Keith From dz0004455 at gmail.com Thu Oct 2 02:28:06 2008 From: dz0004455 at gmail.com (David Zmick) Date: Wed, 1 Oct 2008 19:28:06 -0500 Subject: [pier] Ideal pier setup In-Reply-To: <48E40658.6020106@yahoo.co.uk> References: <48E40658.6020106@yahoo.co.uk> Message-ID: should i start with a base squeak 3.10 image? On Wed, Oct 1, 2008 at 6:23 PM, Keith Hodges wrote: > David Zmick wrote: > > what is the "ideal" way to get a working pier image for deployment set > up? > > > > -- > > David Zmick > > I think that the ideal method is to load all the stuff from UNiverses or > Sake/Packages. By default a pier application is added to seaside. > > My suggestion is that when you select the PRFrame the whole site comes > preconfigured according to the chosen frame class > > Keith > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -- David Zmick /dz0004455\ http://dz0004455.googlepages.com http://dz0004455.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20081002/5cc56b22/attachment.html From keith_hodges at yahoo.co.uk Thu Oct 2 04:07:36 2008 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Thu, 02 Oct 2008 03:07:36 +0100 Subject: [pier] Ideal pier setup In-Reply-To: References: <48E40658.6020106@yahoo.co.uk> Message-ID: <48E42CE8.9010308@yahoo.co.uk> David Zmick wrote: > should i start with a base squeak 3.10 image? > I use 3.10 Have you tried the one-click image that was published recently? That would be your quickest option. Keith From dz0004455 at gmail.com Thu Oct 2 04:38:57 2008 From: dz0004455 at gmail.com (David Zmick) Date: Wed, 1 Oct 2008 21:38:57 -0500 Subject: [pier] Ideal pier setup In-Reply-To: <48E42CE8.9010308@yahoo.co.uk> References: <48E40658.6020106@yahoo.co.uk> <48E42CE8.9010308@yahoo.co.uk> Message-ID: Yes, i like the one click image, but, i want something good for a final deployment without having to get rid of too much. I guess the one click image doesn't have as much garbage as like a squeak-dev image though. i will look into it! :) On Wed, Oct 1, 2008 at 9:07 PM, Keith Hodges wrote: > David Zmick wrote: > > should i start with a base squeak 3.10 image? > > > I use 3.10 > > Have you tried the one-click image that was published recently? That > would be your quickest option. > > Keith > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -- David Zmick /dz0004455\ http://dz0004455.googlepages.com http://dz0004455.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20081002/b7f1c888/attachment.html From girba at iam.unibe.ch Thu Oct 2 08:11:30 2008 From: girba at iam.unibe.ch (Tudor Girba) Date: Thu, 2 Oct 2008 08:11:30 +0200 Subject: [pier] Ideal pier setup In-Reply-To: References: <48E40658.6020106@yahoo.co.uk> <48E42CE8.9010308@yahoo.co.uk> Message-ID: <7BC48E2E-0E1B-4891-BEFF-040DD4CF0CAF@iam.unibe.ch> Hi, The Pier one click 1.0.17 is basically ready for deployment (for example, there are no other Seaside applications). All you should need to do is to put the Seaside application in deployment mode: http://www.piercms.com/download Cheers, Doru On Oct 2, 2008, at 4:38 AM, David Zmick wrote: > Yes, i like the one click image, but, i want something good for a > final deployment without having to get rid of too much. I guess the > one click image doesn't have as much garbage as like a squeak-dev > image though. i will look into it! :) > > On Wed, Oct 1, 2008 at 9:07 PM, Keith Hodges > wrote: > David Zmick wrote: > > should i start with a base squeak 3.10 image? > > > I use 3.10 > > Have you tried the one-click image that was published recently? That > would be your quickest option. > > Keith > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > > > > -- > David Zmick > /dz0004455\ > http://dz0004455.googlepages.com > http://dz0004455.blogspot.com > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki From frank.urbach at schmees.com Thu Oct 2 09:25:02 2008 From: frank.urbach at schmees.com (Frank Urbach) Date: Thu, 2 Oct 2008 07:25:02 +0000 Subject: [pier] setup one click (was Ideal pier setup) Message-ID: <0006FEE7.48E4936E@schmees.com> Hallo Doru, under windows I have some trouble to unzip the one click pier. The build-in zip tool on windows didn't work properliy with the mac zips. Only using 7-zip enable me to get the installation on my disc. So far my experience with the installation. After workaround these little glitch the image works like a charme. Very nice work !! Cheers, Frank -------- Original Message -------- Subject: Re: [pier] Ideal pier setup (02-Okt-2008 8:11) From: Tudor Girba To: frank.urbach at schmees.com > Hi, > > The Pier one click 1.0.17 is basically ready for deployment (for > example, there are no other Seaside applications). All you should need > to do is to put the Seaside application in deployment mode: > http://www.piercms.com/download > > Cheers, > Doru > > > On Oct 2, 2008, at 4:38 AM, David Zmick wrote: > > > Yes, i like the one click image, but, i want something good for a > > final deployment without having to get rid of too much. I guess the > > one click image doesn't have as much garbage as like a squeak-dev > > image though. i will look into it! :) > > > > On Wed, Oct 1, 2008 at 9:07 PM, Keith Hodges > > wrote: > > David Zmick wrote: > > > should i start with a base squeak 3.10 image? > > > > > I use 3.10 > > > > Have you tried the one-click image that was published recently? That > > would be your quickest option. > > > > Keith > > > > _______________________________________________ > > SmallWiki, Magritte, Pier and Related Tools ... > > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > > > > > > > > -- > > David Zmick > > /dz0004455\ > > http://dz0004455.googlepages.com > > http://dz0004455.blogspot.com > > > > _______________________________________________ > > 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 Edelstahlwerke Schmees GmbH Geschftsleitung Clemens Schmees Sitz D-01796 Pirna Handelsregister Dresden HRB 54 E-Mail: es.la at schmees.com WEB: www.schmees.com Diese E-Mail enthlt vertrauliche und/oder rechtlich geschtzte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtmlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet. This e-mail may contain confidental and/or privileged information. If you are not intended recipient or have received this e-mail in error, please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. From dz0004455 at gmail.com Fri Oct 3 01:48:31 2008 From: dz0004455 at gmail.com (David Zmick) Date: Thu, 2 Oct 2008 18:48:31 -0500 Subject: [pier] Ideal pier setup In-Reply-To: <7BC48E2E-0E1B-4891-BEFF-040DD4CF0CAF@iam.unibe.ch> References: <48E40658.6020106@yahoo.co.uk> <48E42CE8.9010308@yahoo.co.uk> <7BC48E2E-0E1B-4891-BEFF-040DD4CF0CAF@iam.unibe.ch> Message-ID: ok, i will use the one click image then! thanks guys! On Thu, Oct 2, 2008 at 1:11 AM, Tudor Girba wrote: > Hi, > > The Pier one click 1.0.17 is basically ready for deployment (for > example, there are no other Seaside applications). All you should need > to do is to put the Seaside application in deployment mode: > http://www.piercms.com/download > > Cheers, > Doru > > > On Oct 2, 2008, at 4:38 AM, David Zmick wrote: > > > Yes, i like the one click image, but, i want something good for a > > final deployment without having to get rid of too much. I guess the > > one click image doesn't have as much garbage as like a squeak-dev > > image though. i will look into it! :) > > > > On Wed, Oct 1, 2008 at 9:07 PM, Keith Hodges > > wrote: > > David Zmick wrote: > > > should i start with a base squeak 3.10 image? > > > > > I use 3.10 > > > > Have you tried the one-click image that was published recently? That > > would be your quickest option. > > > > Keith > > > > _______________________________________________ > > SmallWiki, Magritte, Pier and Related Tools ... > > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > > > > > > > > -- > > David Zmick > > /dz0004455\ > > http://dz0004455.googlepages.com > > http://dz0004455.blogspot.com > > > > _______________________________________________ > > 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 > -- David Zmick /dz0004455\ http://dz0004455.googlepages.com http://dz0004455.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20081003/5a0376ee/attachment-0001.html From hhs at lexdb.net Sat Oct 4 15:05:56 2008 From: hhs at lexdb.net (hhs@lexdb.net) Date: Sat, 4 Oct 2008 15:05:56 +0200 (CEST) Subject: [Question] Learning Pier .... working with the wiki model Message-ID: <2114379265.9140.1223125556320.JavaMail.open-xchange@ox1> Dear all I am learning Pier and I have two (hopefully) simple questions. I have looked into the example ?? PRPierFrame class>>exampleBasic which is displayed in the examples browser ??? http://localhost:8080/seaside/examples/examplebrowser I then tried to come up with my own (very simple) wiki model In a workspace I did MyPierModel := PRPage new ??? ??? ??? title: 'The title of the page'; ??? ??? ??? contents: ' ??? ??? ??? The text of my note page. ??? ??? ??? More text ..... ??? ??? ??? ??? ??? ??? ??? ??? ??? Link to *AnotherPage* ??? ??? ??? '; ??? ??? ??? yourself And I have changed the example above to PRPierFrame class>>exampleBasicHH1 exampleBasicHH1 ??? "To see this example browse to /seaside/examples/examplebrowser and select the receiver class." ^ self on: (PRContext kernel: (PRKernel new ??? ??? name: 'MyPier'; ??? ??? root: MyPierModel)) The question: 1) What are the proper ways to construct a pier model:? MyPierModel 2) In the Morphic world menu there is an entry 'Pier Browser' which opens an OmniBrowser variant to browse and edit Pier models. When I open it it shows a model called 'Pier' which is the model of the pier application under http://localhost:8080/seaside/pier What do I need to do if I want to browse the above mentioned model ? MyPierModel? And a question related to this: How can I replace the 'Pier' model under http://localhost:8080/seaside/pier with MyPierModel? Thank you for the answers in advance. Kind regards Hannes Hirzel -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20081004/34feb42b/attachment.html From renggli at gmail.com Sat Oct 4 15:39:31 2008 From: renggli at gmail.com (Lukas Renggli) Date: Sat, 4 Oct 2008 15:39:31 +0200 Subject: [Question] Learning Pier .... working with the wiki model In-Reply-To: <2114379265.9140.1223125556320.JavaMail.open-xchange@ox1> References: <2114379265.9140.1223125556320.JavaMail.open-xchange@ox1> Message-ID: <67628d690810040639h4766f86bid9aec5a86c0215c3@mail.gmail.com> > 1) What are the proper ways to construct a pier model: MyPierModel Normally you just do that from the web, not from a workspace. There are only very few things (probably none of which you care at the beginning) that are not accessible from the web browser. > 2) In the Morphic world menu there is an entry 'Pier Browser' which opens an > OmniBrowser variant to browse and edit Pier models. When I open it it shows > a model called 'Pier' which is the model of the pier application under > > http://localhost:8080/seaside/pier > > What do I need to do if I want to browse the above mentioned model > MyPierModel? The morphic 'Pier Browser' shows all the registered kernels from PRKernel instances See the protocol on the class side of PRKernel on how to manage these. > And a question related to this: How can I replace the 'Pier' model under > http://localhost:8080/seaside/pier with MyPierModel? > > Thank you for the answers in advance. The Seaside Configuration interface has a drop-down box that lists all the registered kernels. Moreover you can assign any kernel to a Seaside entry point by evaluating something like: PRPierFrame registerAsApplication: 'foo' kernel: MyPierModel Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From girba at iam.unibe.ch Sat Oct 4 17:40:27 2008 From: girba at iam.unibe.ch (Tudor Girba) Date: Sat, 4 Oct 2008 17:40:27 +0200 Subject: [Question] Learning Pier .... working with the wiki model In-Reply-To: <67628d690810040639h4766f86bid9aec5a86c0215c3@mail.gmail.com> References: <2114379265.9140.1223125556320.JavaMail.open-xchange@ox1> <67628d690810040639h4766f86bid9aec5a86c0215c3@mail.gmail.com> Message-ID: <767FE5C5-5781-4A63-8961-AD07B428B6F1@iam.unibe.ch> For a detailed example of setting up a Pier instance, take a look at PRDistribution from the Pier-Setup package. This class is the one that creates the Pier that comes with the distribution. To create the Pier distribution you should call: PRDistribution new register. Cheers, Doru On Oct 4, 2008, at 3:39 PM, Lukas Renggli wrote: >> 1) What are the proper ways to construct a pier model: MyPierModel > > Normally you just do that from the web, not from a workspace. There > are only very few things (probably none of which you care at the > beginning) that are not accessible from the web browser. > >> 2) In the Morphic world menu there is an entry 'Pier Browser' which >> opens an >> OmniBrowser variant to browse and edit Pier models. When I open it >> it shows >> a model called 'Pier' which is the model of the pier application >> under >> >> http://localhost:8080/seaside/pier >> >> What do I need to do if I want to browse the above mentioned model >> MyPierModel? > > The morphic 'Pier Browser' shows all the registered kernels from > > PRKernel instances > > See the protocol on the class side of PRKernel on how to manage these. > >> And a question related to this: How can I replace the 'Pier' model >> under >> http://localhost:8080/seaside/pier with MyPierModel? >> >> Thank you for the answers in advance. > > The Seaside Configuration interface has a drop-down box that lists all > the registered kernels. > > Moreover you can assign any kernel to a Seaside entry point by > evaluating something like: > > PRPierFrame registerAsApplication: 'foo' kernel: MyPierModel > > Cheers, > Lukas > > -- > Lukas Renggli > http://www.lukas-renggli.ch > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki From hhs at lexdb.net Wed Oct 8 15:51:39 2008 From: hhs at lexdb.net (hhs@lexdb.net) Date: Wed, 8 Oct 2008 15:51:39 +0200 (CEST) Subject: How do I find out which version of Pier is installed Message-ID: <2107090265.2122.1223473899381.JavaMail.open-xchange@ox3> Dear all Currently I work with the one-click installation 1.0.17 of http://www.piercms.com/. Before I had the latest version of Pier installed into Squeak 3.10.2 through the package "Universe". I installed the package "Pier version current". However it seemed that it was not the most recent version. However it did not include the class PRDistribution which is in the one-click installation 1.0.17. How can I find out which (maybe minor version) I have got? Something like ?? PRKernel version in the sense of ?? Smalltalk version I did not yet find such a version information. Regards Hannes Hirzel -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20081008/68725445/attachment.html From hhs at lexdb.net Wed Oct 8 15:43:05 2008 From: hhs at lexdb.net (hhs@lexdb.net) Date: Wed, 8 Oct 2008 15:43:05 +0200 (CEST) Subject: [Question] Learning Pier .... working with the wiki model In-Reply-To: <767FE5C5-5781-4A63-8961-AD07B428B6F1@iam.unibe.ch> References: <2114379265.9140.1223125556320.JavaMail.open-xchange@ox1> <67628d690810040639h4766f86bid9aec5a86c0215c3@mail.gmail.com> <767FE5C5-5781-4A63-8961-AD07B428B6F1@iam.unibe.ch> Message-ID: <1752366448.2079.1223473385869.JavaMail.open-xchange@ox3> Thank you Lukas and Tudor for your helpful answers. First I used the current version of Pier in Squeak 3.10.2 from the Universe but now I use the Pier 1.0.17 download from http://www.piercms.com/. My interest is to construct a Pier kernel with code through a model transformation (visit another model and construct a pier model). I could construct a ?? MyPierModel2??? "code see below" and register it as an application to be accessed as ? http://localhost:8080/seaside/mypier2 I works nicely. Do you have any further suggestions/hints how to construct these wiki models? How are the name of a PRPage and the title related? Should a PRDocument object which is hold by the PRPage object be without a title, because the title is in the PRPage object? I assume that only the name of the PRPage object is used as the reference for links and the title text might differ. Kind regards Hannes Hirzel "------------------------------------------------------------------------------- --------" | p2 | p2 := PRPage named: 'anotherPage'.? "This just creates a default page, which serves as a link target" MyPierModel2 :=? (PRPage named: 'ThePageNameOfTheFirstPageOfMyWiki') addChild: p2; document: ( PRDocument new ??? ??? ??? add: (PRParagraph new ??? ??? ??? ??? add: (PRText content: 'some text'); ??? ??? ??? ??? yourself); ??? ??? ??? add: ((PRHeader new) ??? ??? ??? ??? ??? ??? level: 2; ??? ??? ??? ??? ??? add: (PRText content: 'The heading level 2'); ??? ??? ??? ??? ??? yourself); ??? ??? ??? add: (PRUnorderedList new ??? ??? ??? ??? ??? add: (PRListItem new add: (PRText content: 'aaa')); ??? ??? ??? ??? ??? add: (PRListItem new add: (PRText content: 'bbb')); ??? ??? ??? ??? ??? add: (PRListItem new add: (PRText content: 'ccc')); ??? ??? ??? ??? ??? yourself); ??? ??? ??? add: (PRPreformatted new ??? ??? ??? ??? add: (PRText content: '?? A line with 3 spaces'); ??? ??? ??? ??? add: (PRText content: '??? A line with a tab'); ??? ??? ??? ??? yourself);??? ??? ??? ??? add: (PRInternalLink reference: 'anotherPage')??? ??? ??? ??? yourself ). PRPierFrame registerAsApplication: 'mypier2' kernel: ( ??? (PRKernel named: 'mypierkernel2' ??? root: MyPierModel2) ) "Access the application with:" http://localhost:8080/seaside/mypier2 ??? (I put a somewhat simple example at http://wiki.squeak.org/squeak/6084) "------------------------------------------------------------------------------- --------" Tudor Girba hat am 4. Oktober 2008 um 17:40 geschrieben: > For a detailed example of setting up a Pier instance, take a look at? > PRDistribution from the Pier-Setup package. This class is the one that? > creates the Pier that comes with the distribution. > > To create the Pier distribution you should call: > PRDistribution new register. > > Cheers, > Doru >? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20081008/d9da0b25/attachment-0001.html From renggli at gmail.com Wed Oct 8 16:38:56 2008 From: renggli at gmail.com (Lukas Renggli) Date: Wed, 8 Oct 2008 16:38:56 +0200 Subject: How do I find out which version of Pier is installed In-Reply-To: <2107090265.2122.1223473899381.JavaMail.open-xchange@ox3> References: <2107090265.2122.1223473899381.JavaMail.open-xchange@ox3> Message-ID: <67628d690810080738k2fb6c534kc52e07f58ce0ebe6@mail.gmail.com> > Before I had the latest version of Pier installed into Squeak 3.10.2 > through the package "Universe". > I installed the package "Pier version current". > However it seemed that it was not the most recent version. Universes wasn't updated for quite some time, because of a problem in the Universe update script. Sorry for that. > However it did not include the class PRDistribution which is in the > one-click installation 1.0.17. PRDistribution is part of the one-click installation. In the Universe Browser you should see the version number you installed. > How can I find out which (maybe minor version) I have got? > > Something like > PRKernel version > in the sense of > Smalltalk version That's hard to do like this, because it has to be maintained in the source code. Normally it should be save to go use the Monticello Browser to update to the latest versions of Magritte and Pier. I regularly do that with all my deployed images. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From renggli at gmail.com Wed Oct 8 16:49:05 2008 From: renggli at gmail.com (Lukas Renggli) Date: Wed, 8 Oct 2008 16:49:05 +0200 Subject: [Question] Learning Pier .... working with the wiki model In-Reply-To: <1752366448.2079.1223473385869.JavaMail.open-xchange@ox3> References: <2114379265.9140.1223125556320.JavaMail.open-xchange@ox1> <67628d690810040639h4766f86bid9aec5a86c0215c3@mail.gmail.com> <767FE5C5-5781-4A63-8961-AD07B428B6F1@iam.unibe.ch> <1752366448.2079.1223473385869.JavaMail.open-xchange@ox3> Message-ID: <67628d690810080749t79ed9d6xf2609bdffe493a09@mail.gmail.com> > How are the name of a PRPage and the title related? The name is a unique identifier within its namespace. Think of the Pier structure as a file-system where everything is a folder. A page is a folder too, so it can have children. The name would be then the folder-name. In the Seaside view the name is used to build the path. Other views might not need that. The title is something that is displayed in the user interface. Normally the Seaside view displays the title before the contents of a page. > Should a PRDocument > object which is hold by the PRPage object be without a title, because the > title is in the PRPage object? Normally yes. > I assume that only the name of the PRPage > object is used as the reference for links and the title text might differ. Exactly, if you don't specify a title the name is taken as title of the page. It is also possible to refer to the title (instead of the name) in links, but the name is given priority. The title is only used for convenance. In fact, in the end these strings don't matter, because Pier stores links as object references. > document: ( > PRDocument new > add: (PRParagraph new > add: (PRText content: 'some text'); > yourself); > add: ((PRHeader new) > level: 2; > add: (PRText content: 'The heading level 2'); > yourself); > add: (PRUnorderedList new > add: (PRListItem new add: (PRText content: 'aaa')); > add: (PRListItem new add: (PRText content: 'bbb')); > add: (PRListItem new add: (PRText content: 'ccc')); > yourself); > add: (PRPreformatted new > add: (PRText content: ' A line with 3 spaces'); > add: (PRText content: ' A line with a tab'); > yourself); > add: (PRInternalLink reference: 'anotherPage') > yourself > ). Instead of manually building these documents you could directly pass a string: contents: 'some text !!The heading level 2 -aaa -bbb -ccc = A line with 3 spaces = A line with a tab *anotherPage' Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From steve.lloyd at ibo.org Thu Oct 9 15:38:18 2008 From: steve.lloyd at ibo.org (Steve Lloyd) Date: Thu, 09 Oct 2008 14:38:18 +0100 Subject: Pier, Smalltalk and XSLT Message-ID: <48EE094A.3070703@ibo.org> I'm currently investigating approaches to an update/rewrite of a publishing system we've developed (using Rails) which takes publications stored as Docbook XML and renders a series of webpages with navigation according to a set of common themes switched by metadata in the source file. Pier looks a promising candidate, either on Squeak or Gemstone/S, but I get the impression that Smalltalk XSLT libraries are fairly scant. Is this right? I guess there would be the approach of calling out via a web service or FFI to other libraries, but any advice would be appreciated. -- International Baccalaureate Steve Lloyd Research Engineer Publications group Peterson House, Malthouse Avenue, Cardiff Gate, CARDIFF CF23 8GL, United Kingdom Tel: +44 29 2054 7869 Fax: +44 29 2054 7778 Web: http://www.ibo.org From dtrussardi at tiscali.it Thu Oct 9 18:48:58 2008 From: dtrussardi at tiscali.it (Dario Trussardi) Date: Thu, 9 Oct 2008 18:48:58 +0200 Subject: MAExternalFileModel question Message-ID: <00d801c92a2e$f1a0a8b0$0301a8c0@istcamuno> Hi, i work with Gemstone and i have some description based on MAFileDescription with kind set to: MAExternalFileModel. My question are : A) In my server where Gemstone load, i have a directory /mnt/Foto with my fotos. Now when, with one MAFileDescription, upload one or my foto, the system save it in another directory follow the indication report in MAExternalFileModel comment. Because it? It can't use my original file ? If i have some 'Magritte' reference to the same foto the system save it in some different directory. And if i have need to update one specific foto in /mnt/Foto how i can update the other directory (link)? B) in the Ubuntu when the system save one foto in a specific subdirectory ( follow the indication report in MAExternalFileModel comment. ) it save the file but after i d'ont have enough autorizzation to display it. How i can solve this ? Thanks for any consideration. Dario -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20081009/b1e6c849/attachment.html From hhs at lexdb.net Thu Oct 9 18:58:22 2008 From: hhs at lexdb.net (hhs@lexdb.net) Date: Thu, 9 Oct 2008 18:58:22 +0200 (CEST) Subject: How do I find out which version of Pier is installed In-Reply-To: <67628d690810080738k2fb6c534kc52e07f58ce0ebe6@mail.gmail.com> References: <2107090265.2122.1223473899381.JavaMail.open-xchange@ox3> <67628d690810080738k2fb6c534kc52e07f58ce0ebe6@mail.gmail.com> Message-ID: <1761555168.29429.1223571502575.JavaMail.open-xchange@ox2> Dear Lukas Lukas Renggli hat am 8. Oktober 2008 um 16:38 geschrieben: ..... > > >? How can I find out which (maybe minor version) I have got? > > > >? Something like > >? ? ?PRKernel version > >? in the sense of > >? ? ?Smalltalk version > > That's hard to do like this, because it has to be maintained in the source > code. I assume that there is some "main" package with a prominent class which could hold this version string. Of course this has to be updated before releasing that package but this would be part of the process of releasing. As it is now I cannot easily find out what I have got and what not.? ? > Normally it should be save to go use the Monticello Browser to update > to the latest versions of Magritte and Pier. I regularly do that with > all my deployed images. How do I do that? I assume I have to add the repositories http://source.lukas-renggli.ch/magritte http://www.lukas-renggli.ch/smalltalk/pier In a Monticello Browser: Click on "+Repository" and choose "http" repository and then add the string MCHttpRepository ??? location: 'http://source.lukas-renggli.ch/magritte' ??? user: '' ??? password: '' I get a couple of packages. Is there a particular load order to use? Or do I just need to load Pier-All (currently I have Pier-All-lr.309.mcz) However as I checked it out it seems that looking at the Monticello Browser I have got everything in the Squeak 3.10.2 image package wise. However the PRDistribution class is not in the image. Kind regards Hannes Hirzel -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20081009/7abf0d9d/attachment.html From hhs at lexdb.net Thu Oct 9 19:06:40 2008 From: hhs at lexdb.net (hhs@lexdb.net) Date: Thu, 9 Oct 2008 19:06:40 +0200 (CEST) Subject: Pier, Smalltalk and XSLT In-Reply-To: <48EE094A.3070703@ibo.org> References: <48EE094A.3070703@ibo.org> Message-ID: <1856645023.29445.1223572000695.JavaMail.open-xchange@ox2> Dear Steve Steve Lloyd hat am 9. Oktober 2008 um 15:38 geschrieben: > I'm currently investigating approaches to an update/rewrite of a > publishing system we've developed (using Rails) which takes publications > stored as Docbook XML and renders a series of webpages with navigation > according to a set of common themes switched by metadata in the source > file.Pier looks a promising candidate,? either on Squeak or Gemstone/S, > but I get the impression that Smalltalk XSLT libraries are fairly scant. > Is this right? I guess there would be the approach of calling out via a > web service or FFI to other libraries, but any advice would be appreciated. > I assume that you currently use a collection of XSLT style sheets to format your XML documents to XHTML (and maybe other formats). The approach in Seaside is that you generate the HTML in the 'renderContentOn:' method. (See http://www.seaside.st/documentation/generating-html). You create components, every component has its own 'renderContentOn:' method. You than put the components together. This approach bypasses the need for XSLT. One can say that Smalltalk is used as the "Formatting language". This might or might not be what you want to go for. However quite a number of people like this idea. Regards Hannes Hirzel -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20081009/43abec08/attachment-0001.html From dtrussardi at tiscali.it Sat Oct 11 01:14:54 2008 From: dtrussardi at tiscali.it (Dario Trussardi) Date: Sat, 11 Oct 2008 01:14:54 +0200 Subject: [GS/SS Beta] Error for MADescription with autoAccessor Message-ID: <010401c92b2e$06dd0d90$0301a8c0@istcamuno> Hi All, i development with GLASS and i found this problem: i work araund the Error for MADescription with autoAccessor. The problem is because first i rendering one subset of the description of the anModel with: A) html render: ( descriptionKeyA descriptionKeyB ) asComponentOn: anModel and after rendering all the descriptions with: B) self call: ( anModel asComponent addMessage: 'Input dati'; addValidateForm; yourself) I don't understand, but the system in this mode don't work. This problem is only for the first time when description of the class and the relative structure and methods isn't alignment. After when all is alignment all work. In Squeak ( where it works fine ) i see: when at A) the system compile the class of model for the number of ( descriptionKeyA descriptionKeyB ) with autoAccessor set and generated the relative I/O methods at B) the system compile the class of model for the number of other description of model( descriptionDatoA descriptionDatoB ) with autoAccessor set and generated the ralative methods I think one temporany 'solution' is when i change one class with some descriptions set with autoAccessor to update the structure with a specific command anClass 'updateMAStructure' I remain in everyway on disposal for eventual explanations. Yours faithfully Dario -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20081011/d82b835b/attachment.html From philippe.marschall at gmail.com Sat Oct 11 15:26:26 2008 From: philippe.marschall at gmail.com (Philippe Marschall) Date: Sat, 11 Oct 2008 15:26:26 +0200 Subject: Pier, Smalltalk and XSLT In-Reply-To: <48EE094A.3070703@ibo.org> References: <48EE094A.3070703@ibo.org> Message-ID: <66666f210810110626h5d3a8961rb7f9377388d47100@mail.gmail.com> 2008/10/9, Steve Lloyd : > I'm currently investigating approaches to an update/rewrite of a > publishing system we've developed (using Rails) which takes publications > stored as Docbook XML and renders a series of webpages with navigation > according to a set of common themes switched by metadata in the source > file. Pier looks a promising candidate, either on Squeak or Gemstone/S, > but I get the impression that Smalltalk XSLT libraries are fairly scant. > Is this right? I guess there would be the approach of calling out via a > web service or FFI to other libraries, but any advice would be appreciated. You could also call xsltproc from the command line. This is probably the easiest way to go on Squeak, you can use OSProcess. However on GemStone this is problematic as well as FFI (it's supposed to be changed with version 3.0). So if you go for GemStone you'd probably do a web service. Cheers Philippe From hhs at lexdb.net Sat Oct 11 22:02:22 2008 From: hhs at lexdb.net (hhs@lexdb.net) Date: Sat, 11 Oct 2008 22:02:22 +0200 (CEST) Subject: Lookinh for 'A tutorial on Pier styles' Message-ID: <895574691.12141.1223755342200.JavaMail.open-xchange@ox3> Dear all In http://www.iam.unibe.ch/pipermail/smallwiki/2008-August/003963.html David Zmick announced 'A tutorial on Pier styles'. It should be under http://w337.uni.cc/PierDocs/customizingLook.pdf [http://w337.uni.cc/PierDocs/customizingLook.pdf] However this site cannot be reached. Did you download it? Could you please either repost it somewhere or send it to me by email, please? Or maybe you have the similar content in a different form? Kind regards Hannes Hirzel -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20081011/3d57b48d/attachment.html From dz0004455 at gmail.com Sun Oct 12 01:21:06 2008 From: dz0004455 at gmail.com (David Zmick) Date: Sat, 11 Oct 2008 18:21:06 -0500 Subject: Lookinh for 'A tutorial on Pier styles' In-Reply-To: <895574691.12141.1223755342200.JavaMail.open-xchange@ox3> References: <895574691.12141.1223755342200.JavaMail.open-xchange@ox3> Message-ID: sorry about that, that site is down, and will be down for a very long time. my tutorial is outdated, so i would not recomend following it, even if i could get it to you. I haven't used the most recent version of Pier yet, so I can't be of much help to get you working in the new version :( On Sat, Oct 11, 2008 at 3:02 PM, hhs at lexdb.net wrote: > Dear all > > In http://www.iam.unibe.ch/pipermail/smallwiki/2008-August/003963.htmlDavid Zmick announced 'A tutorial on Pier styles'. > It should be under > > > http://w337.uni.cc/PierDocs/customizingLook.pdf > > > > However this site cannot be reached. > > Did you download it? Could you please either repost it somewhere or send it > to me by email, please? > Or maybe you have the similar content in a different form? > > Kind regards > > Hannes Hirzel > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > -- David Zmick /dz0004455\ http://dz0004455.googlepages.com http://dz0004455.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20081012/759df5a8/attachment.html From girba at iam.unibe.ch Sun Oct 12 01:35:43 2008 From: girba at iam.unibe.ch (Tudor Girba) Date: Sun, 12 Oct 2008 01:35:43 +0200 Subject: Lookinh for 'A tutorial on Pier styles' In-Reply-To: <895574691.12141.1223755342200.JavaMail.open-xchange@ox3> References: <895574691.12141.1223755342200.JavaMail.open-xchange@ox3> Message-ID: <8AB790F4-151E-4CA5-BAD5-9EAB5B67765D@iam.unibe.ch> Hi, Could you detail what you are interested in? Cheers, Doru On Oct 11, 2008, at 10:02 PM, hhs at lexdb.net wrote: > Dear all > > In http://www.iam.unibe.ch/pipermail/smallwiki/2008-August/ > 003963.html David Zmick announced 'A tutorial on Pier styles'. > It should be under > > http://w337.uni.cc/PierDocs/customizingLook.pdf > > > > > > However this site cannot be reached. > > Did you download it? Could you please either repost it somewhere or > send it to me by email, please? > Or maybe you have the similar content in a different form? > > Kind regards > > Hannes Hirzel > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki -- www.tudorgirba.com www.tudorgirba.com/blog "Every successful trip needs a suitable vehicle." From hhs at lexdb.net Tue Oct 14 14:19:35 2008 From: hhs at lexdb.net (hhs@lexdb.net) Date: Tue, 14 Oct 2008 14:19:35 +0200 (CEST) Subject: How do I find out which version of Pier is installed In-Reply-To: <1761555168.29429.1223571502575.JavaMail.open-xchange@ox2> References: <2107090265.2122.1223473899381.JavaMail.open-xchange@ox3> <67628d690810080738k2fb6c534kc52e07f58ce0ebe6@mail.gmail.com> <1761555168.29429.1223571502575.JavaMail.open-xchange@ox2> Message-ID: <1604340434.7353.1223986775972.JavaMail.open-xchange@ox3> Hello In a Squeak 3.10.2 image I just opened the "Universe" browser and could now load Pier 1.0.17.311 and the Pier-Setup package 1.0.17.30. In fact in the Universe browser it is displayed which version I have installed and the Universe seems to be up to date. So the question raised in this thread is answered. Thank you, Lukas, Tudor and Damien for making this possible. Hannes Hirzel -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20081014/cbd9f2a4/attachment-0001.html From hhs at lexdb.net Thu Oct 16 08:38:05 2008 From: hhs at lexdb.net (hhs@lexdb.net) Date: Thu, 16 Oct 2008 08:38:05 +0200 (CEST) Subject: Lookinh for 'A tutorial on Pier styles' In-Reply-To: <8AB790F4-151E-4CA5-BAD5-9EAB5B67765D@iam.unibe.ch> References: <895574691.12141.1223755342200.JavaMail.open-xchange@ox3> <8AB790F4-151E-4CA5-BAD5-9EAB5B67765D@iam.unibe.ch> Message-ID: <1672736877.10129.1224139085985.JavaMail.open-xchange@ox2> Dear Tudor, Tudor Girba hat am 12. Oktober 2008 um 01:35 geschrieben: > Hi, > > Could you detail what you are interested in? > > Cheers, > Doru > > Thank you for this offer. I am currently experimenting with the PRDistribution class as you have indicated in an earlier mail ( http://www.iam.unibe.ch/pipermail/smallwiki/2008-October/004067.html ). The root method (see below) in particular shows nicely how a wiki model is constructed. My conclusion so far: I can subclass PRDistribution to experiment with different wiki setups. I can construct different environment pages and then assign them with localEnvironment: to a PRPage object. With this knowlegede alone quite some flexibility in style is possible. Kind regards Hannes Hirzel PRDistribution>>root ??? self rootPage ??? ??? addChild: (self blog ??? ??? ??? ??? addChild: self blogArchiveWidget; ??? ??? ??? ??? yourself); ??? ??? addChild: (self aboutPage ??? ??? ??? ??? addChild: self syntaxPage; ??? ??? ??? ??? addChild: self shortcutsPage; ??? ??? ??? ??? yourself); ??? ??? addChild: (self environmentPage ??? ??? ??? ??? addChild: self headerPage; ??? ??? ??? ??? addChild: self siteTitlePage; ??? ??? ??? ??? addChild: self footerPage; ??? ??? ??? ??? addChild: self menuWidget; ??? ??? ??? ??? addChild: self childrenWidget; ??? ??? ??? ??? addChild: self breadcrumbWidget; ??? ??? ??? ??? addChild: self googleAnalyticsWidget; ??? ??? ??? ??? addChild: self sitemapPage; ??? ??? ??? ??? addChild: self viewsPage; ??? ??? ??? ??? addChild: self commandsPage; ??? ??? ??? ??? addChild: self loginCommandWidget; ??? ??? ??? ??? addChild: self contentsWidget; ??? ??? ??? ??? addChild: self stylesheetFile; ??? ??? ??? ??? addChild: self postTickerWidget; ??? ??? ??? ??? addChild: self blogArchiveWidget; ??? ??? ??? ??? addChild: self searchWidget; ??? ??? ??? ??? addChild: self poweredPage; ??? ??? ??? ??? yourself); ??? ??? addChild: self blogEnvironmentPage; ??? ??? addChild: self mainEnvironmentPage; ??? ??? addChild: self metaEnvironmentPage; ??? ??? addChild: self systemManagementPage. ??? self rootPage localEnvironment: self mainEnvironmentPage. ??? self blog localEnvironment: self blogEnvironmentPage. ??? self aboutPage localEnvironment: self environmentPage. ??? self environmentPage localEnvironment: self metaEnvironmentPage. ??? self mainEnvironmentPage localEnvironment: self metaEnvironmentPage. ??? self metaEnvironmentPage localEnvironment: self metaEnvironmentPage. ??? self systemManagementPage localEnvironment: self metaEnvironmentPage. ??? self rootPage localStyleSheet: self stylesheetFile. ??? self rootPage enumerator ??? ??? with; ??? ??? all; ??? ??? do: ??? ??? ??? [ :each | ??? ??? ??? each securityDecoration owner: self kernel users anyOne. ??? ??? ??? each securityDecoration group: self kernel groups anyOne ]. ??? self makePrivate: self environmentPage. ??? self makePrivate: self blogEnvironmentPage. ??? self makePrivate: self mainEnvironmentPage. ??? self makePrivate: self metaEnvironmentPage. ??? self makePrivate: self sitemapPage. ??? self makePrivate: self viewsPage. ??? self makePrivate: self commandsPage. ??? self makePrivate: self systemManagementPage. ??? ^ self rootPage -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20081016/ca29767b/attachment.html From hhs at lexdb.net Thu Oct 16 08:43:58 2008 From: hhs at lexdb.net (hhs@lexdb.net) Date: Thu, 16 Oct 2008 08:43:58 +0200 (CEST) Subject: PRDistribution class: makePrivate and makePublic method are identical Message-ID: <887971427.10160.1224139438421.JavaMail.open-xchange@ox2> Hello In the class PRDistribution (Pier 1.0.17) I found that the methods makePrivate and makePublic are identical. I assume this is an error. How does a fix look like. Or do I need to load a Security addin/overlay which patches these functions? Kind regards Hannes Hirzel PRDistribution>>makePrivate makePrivate: aStructure ?aStructure securityDecoration owner: self kernel users anyOne.? ?aStructure securityDecoration otherPermissions: Set new.? ?aStructure securityDecoration group: self kernel groups anyOne. makePublic: aStructure ?aStructure securityDecoration owner: self kernel users anyOne. ?aStructure securityDecoration otherPermissions: Set new. ?aStructure securityDecoration group: self kernel groups anyOne. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20081016/65292fcd/attachment.html From sean at monkeysnatchbanana.com Wed Oct 22 17:03:16 2008 From: sean at monkeysnatchbanana.com (Sean Allen) Date: Wed, 22 Oct 2008 11:03:16 -0400 Subject: Hooking to Pier Security Message-ID: <8A0E6E73-02DC-42C3-B101-0EAD4BBD2CB7@monkeysnatchbanana.com> I'm trying to learn how to hook into the pier security/user model but I'm getting lost amongst all the trees. Can someone point to the right couple classes/methods to look in? I got as far as PBEntry having an author and uuid but from there... lost. Trying to understand how I can use a Seaside application inside pier and use pier users/security etc. Any and all help, big and small greatly appreciated. From renggli at gmail.com Wed Oct 22 17:25:21 2008 From: renggli at gmail.com (Lukas Renggli) Date: Wed, 22 Oct 2008 17:25:21 +0200 Subject: Hooking to Pier Security In-Reply-To: <8A0E6E73-02DC-42C3-B101-0EAD4BBD2CB7@monkeysnatchbanana.com> References: <8A0E6E73-02DC-42C3-B101-0EAD4BBD2CB7@monkeysnatchbanana.com> Message-ID: <67628d690810220825s11cafecav4cb9eb925ad1ea23@mail.gmail.com> > I got as far as PBEntry having an author and uuid but from there... > lost. 1. Click on 'Add' 2. Select 'Component' 3. Choose your Seaside component you want to secure from the list. 4. The application is added to Pier now. Now to get started with security you need to first add a few components to manage users and groups: 1. The same way you added your application add the Pier components 1.a. Users 1.b. Groups Now comes the fun part, securing the pages. Remember that the Pier model resembles a Unix file-system, but with objects. Every page (or component) has an owner and a group, as well as permissions for owner, group and others. You can change these settings using the commands 'Change Owner', 'Change Group' and 'Change Others'. The commands are very powerful and can be applied recursively to whole trees. As well as they allow one to add or remove specific permissions (such as viewing or editing). Hope this helps? There is some more information in the FAQ [1]. Cheers, Lukas [1] http://www.piercms.com/doc/faq -- Lukas Renggli http://www.lukas-renggli.ch From sean at monkeysnatchbanana.com Wed Oct 22 17:46:50 2008 From: sean at monkeysnatchbanana.com (Sean Allen) Date: Wed, 22 Oct 2008 11:46:50 -0400 Subject: Hooking to Pier Security In-Reply-To: <67628d690810220825s11cafecav4cb9eb925ad1ea23@mail.gmail.com> References: <8A0E6E73-02DC-42C3-B101-0EAD4BBD2CB7@monkeysnatchbanana.com> <67628d690810220825s11cafecav4cb9eb925ad1ea23@mail.gmail.com> Message-ID: <456AF831-2C68-4880-B1F3-D4557F85A137@monkeysnatchbanana.com> On Oct 22, 2008, at 11:25 AM, Lukas Renggli wrote: >> I got as far as PBEntry having an author and uuid but from there... >> lost. > > 1. Click on 'Add' > 2. Select 'Component' > 3. Choose your Seaside component you want to secure from the list. > 4. The application is added to Pier now. > > Now to get started with security you need to first add a few > components to manage users and groups: > > 1. The same way you added your application add the Pier components > > 1.a. Users > 1.b. Groups > > Now comes the fun part, securing the pages. Remember that the Pier > model resembles a Unix file-system, but with objects. Every page (or > component) has an owner and a group, as well as permissions for owner, > group and others. You can change these settings using the commands > 'Change Owner', 'Change Group' and 'Change Others'. The commands are > very powerful and can be applied recursively to whole trees. As well > as they allow one to add or remove specific permissions (such as > viewing or editing). > > Hope this helps? > Let me try this again.. I need to be able to get the information on the user undertaking an action and store it... like Ed is logged in Ed creates an object, object is listed as having been created by Ed. From renggli at gmail.com Wed Oct 22 17:49:29 2008 From: renggli at gmail.com (Lukas Renggli) Date: Wed, 22 Oct 2008 17:49:29 +0200 Subject: Hooking to Pier Security In-Reply-To: <456AF831-2C68-4880-B1F3-D4557F85A137@monkeysnatchbanana.com> References: <8A0E6E73-02DC-42C3-B101-0EAD4BBD2CB7@monkeysnatchbanana.com> <67628d690810220825s11cafecav4cb9eb925ad1ea23@mail.gmail.com> <456AF831-2C68-4880-B1F3-D4557F85A137@monkeysnatchbanana.com> Message-ID: <67628d690810220849t609325f7wfebd870ad28e0068@mail.gmail.com> > Ed is logged in > Ed creates an object, object is listed as having been created by Ed. The currently logged user is in PRContext. You can get the current context from anywhere using PRCurrentContext value. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From sean at monkeysnatchbanana.com Wed Oct 22 18:18:06 2008 From: sean at monkeysnatchbanana.com (Sean Allen) Date: Wed, 22 Oct 2008 12:18:06 -0400 Subject: Hooking to Pier Security In-Reply-To: <67628d690810220849t609325f7wfebd870ad28e0068@mail.gmail.com> References: <8A0E6E73-02DC-42C3-B101-0EAD4BBD2CB7@monkeysnatchbanana.com> <67628d690810220825s11cafecav4cb9eb925ad1ea23@mail.gmail.com> <456AF831-2C68-4880-B1F3-D4557F85A137@monkeysnatchbanana.com> <67628d690810220849t609325f7wfebd870ad28e0068@mail.gmail.com> Message-ID: <51EC8203-E617-4EE3-8033-87E70D943D8A@monkeysnatchbanana.com> On Oct 22, 2008, at 11:49 AM, Lukas Renggli wrote: >> Ed is logged in >> Ed creates an object, object is listed as having been created by Ed. > > The currently logged user is in PRContext. > > You can get the current context from anywhere using PRCurrentContext > value. Ah, Let me make sure I have this right.. for a PRContext user will get me the current user ( PUUser instance ) which gets me name. I have that correct? From renggli at gmail.com Wed Oct 22 18:20:06 2008 From: renggli at gmail.com (Lukas Renggli) Date: Wed, 22 Oct 2008 18:20:06 +0200 Subject: Hooking to Pier Security In-Reply-To: <51EC8203-E617-4EE3-8033-87E70D943D8A@monkeysnatchbanana.com> References: <8A0E6E73-02DC-42C3-B101-0EAD4BBD2CB7@monkeysnatchbanana.com> <67628d690810220825s11cafecav4cb9eb925ad1ea23@mail.gmail.com> <456AF831-2C68-4880-B1F3-D4557F85A137@monkeysnatchbanana.com> <67628d690810220849t609325f7wfebd870ad28e0068@mail.gmail.com> <51EC8203-E617-4EE3-8033-87E70D943D8A@monkeysnatchbanana.com> Message-ID: <67628d690810220920q783b0459kc7a098b90466fbae@mail.gmail.com> >> The currently logged user is in PRContext. >> >> You can get the current context from anywhere using PRCurrentContext >> value. > > Ah, > > Let me make sure I have this right.. > > for a PRContext user will get me the current user ( PUUser instance ) > which gets me name. > > I have that correct? Yes, have a look at the accessors in PRContext. Lukas -- Lukas Renggli http://www.lukas-renggli.ch From sean at monkeysnatchbanana.com Wed Oct 22 18:30:40 2008 From: sean at monkeysnatchbanana.com (Sean Allen) Date: Wed, 22 Oct 2008 12:30:40 -0400 Subject: Hooking to Pier Security In-Reply-To: <67628d690810220920q783b0459kc7a098b90466fbae@mail.gmail.com> References: <8A0E6E73-02DC-42C3-B101-0EAD4BBD2CB7@monkeysnatchbanana.com> <67628d690810220825s11cafecav4cb9eb925ad1ea23@mail.gmail.com> <456AF831-2C68-4880-B1F3-D4557F85A137@monkeysnatchbanana.com> <67628d690810220849t609325f7wfebd870ad28e0068@mail.gmail.com> <51EC8203-E617-4EE3-8033-87E70D943D8A@monkeysnatchbanana.com> <67628d690810220920q783b0459kc7a098b90466fbae@mail.gmail.com> Message-ID: <16B2DEC7-1731-4359-9BFC-0B9B23299691@monkeysnatchbanana.com> On Oct 22, 2008, at 12:20 PM, Lukas Renggli wrote: >>> The currently logged user is in PRContext. >>> >>> You can get the current context from anywhere using PRCurrentContext >>> value. >> >> Ah, >> >> Let me make sure I have this right.. >> >> for a PRContext user will get me the current user ( PUUser >> instance ) >> which gets me name. >> >> I have that correct? > > Yes, have a look at the accessors in PRContext. > Did. Just wanted to make sure I had it correct. Learning Pier is a bit of a struggle at first but I'm starting to get some things slowly. I look forward to the moment of revelation when it comes. Thanks Lukas. -Sean From keith_hodges at yahoo.co.uk Tue Oct 28 08:09:53 2008 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Tue, 28 Oct 2008 07:09:53 +0000 Subject: beenHere is true Message-ID: <4906BAC1.1070504@yahoo.co.uk> Hello Lukas, I recently hit an error condition in rendering a component. Having clicked 'debug', and continued, the PRContentsWidget refused to display ever again! Looking around I discover that beenHere has been set to true, and is not getting reset, by anyone. To fix this I modified PRContentsWidget-#renderContentOn: html beenHere ifTrue: [ beenHere := false. ^ self ]. self heading isEmptyOrNil ifFalse: [ html heading level: 1; class: 'heading'; with: self heading ]. beenHere := true. [ html render: self component ] ensure: [ beenHere := false ] I am a bit behind the frontline at the moment, so cannot commit effectively to the repo. It would be helpful to have a bit more discussion as to where things are going, recent developments have been hard to keep up with. I would like to continue to plug Pier-Jetsam-Environment as the way to go... The chosen Frame provides the central point for ALL configuration, styles, js, environments, default content etc. Then we can publish our examples i.e. a PierBlog example as a single class. This then provides a standard mechanism for providing pre-packaged configurations. And as explained before, the PRFrameAdmin is always available if you should break your environment. Finally, a suggestion, when a component fails to render, it is not possible to use any commands on it, edit, move, remove etc. Even Damiens remove children command is useless if the component that is broken is embedded to a couple of levels. Could we please have something similar to morphic's red box with a yellow cross. If an error occurs the debug walkback could have a button, "Mark Component as Broken". Then that component can be rendered as a red box, and the rest of the page will remain usable. Could this facility be provided at the seaside level? thanks in advance Keith From renggli at gmail.com Tue Oct 28 12:18:36 2008 From: renggli at gmail.com (Lukas Renggli) Date: Tue, 28 Oct 2008 12:18:36 +0100 Subject: beenHere is true In-Reply-To: <4906BAC1.1070504@yahoo.co.uk> References: <4906BAC1.1070504@yahoo.co.uk> Message-ID: <67628d690810280418k751ea40em2e9a51469eb113c3@mail.gmail.com> > Looking around I discover that beenHere has been set to true, and is not > getting reset, by anyone. It is getting reset at the end of the method. Your change introduces some strange effects when displaying it recursively. I agree that this code be replaced with something more stable, e.g. a dynamic variable. http://code.google.com/p/pier/issues/detail?id=50 > I am a bit behind the frontline at the moment, so cannot commit > effectively to the repo. It would be helpful to have a bit more > discussion as to where things are going, recent developments have been > hard to keep up with. There were not that many changes in the past. All changes are discussed and documented in the bug tracker. > I would like to continue to plug Pier-Jetsam-Environment as the way to > go... The chosen Frame provides the central point for ALL configuration, > styles, js, environments, default content etc. Then we can publish our > examples i.e. a PierBlog example as a single class. This then provides a > standard mechanism for providing pre-packaged configurations. And as > explained before, the PRFrameAdmin is always available if you should > break your environment. I don't use custom frames. I want to be able to do the whole setup and configuration from the web. This is also the idea of Doru's one-click images. Of course nothing should prevent you from having different frames. > Finally, a suggestion, when a component fails to render, it is not > possible to use any commands on it, edit, move, remove etc. Even Damiens > remove children command is useless if the component that is broken is > embedded to a couple of levels. Could we please have something similar > to morphic's red box with a yellow cross. If an error occurs the debug > walkback could have a button, "Mark Component as Broken". Then that > component can be rendered as a red box, and the rest of the page will > remain usable. Could this facility be provided at the seaside level? This sounds like a valid issue: http://code.google.com/p/pier/issues/detail?id=51 Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From keith_hodges at yahoo.co.uk Tue Oct 28 14:07:54 2008 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Tue, 28 Oct 2008 13:07:54 +0000 Subject: beenHere is true In-Reply-To: <67628d690810280418k751ea40em2e9a51469eb113c3@mail.gmail.com> References: <4906BAC1.1070504@yahoo.co.uk> <67628d690810280418k751ea40em2e9a51469eb113c3@mail.gmail.com> Message-ID: <49070EAA.7070004@yahoo.co.uk> > There were not that many changes in the past. All changes are > discussed and documented in the bug tracker. > > what bug tracker? No one mentioned this before > > http://code.google.com/p/pier/issues/detail?id=51 > Keith From keith_hodges at yahoo.co.uk Tue Oct 28 14:11:50 2008 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Tue, 28 Oct 2008 13:11:50 +0000 Subject: beenHere is true In-Reply-To: <67628d690810280418k751ea40em2e9a51469eb113c3@mail.gmail.com> References: <4906BAC1.1070504@yahoo.co.uk> <67628d690810280418k751ea40em2e9a51469eb113c3@mail.gmail.com> Message-ID: <49070F96.80005@yahoo.co.uk> > I don't use custom frames. I want to be able to do the whole setup and > You have to put your initial configuration somewhere, at the moment it is all over the place. > configuration from the web. This is also the idea of Doru's one-click > images. > > 1. That approach is just not scalable. 2 And you dont do your configuration from the web, you are using code to set things up initially with initial content. My approach doesnt change anything. It is still all configurable form the web. However it is possible to put some initial content in a sensible place, and control theme settings etc. Keith From damien.cassou at gmail.com Tue Oct 28 19:12:45 2008 From: damien.cassou at gmail.com (Damien Cassou) Date: Tue, 28 Oct 2008 19:12:45 +0100 Subject: beenHere is true In-Reply-To: <49070EAA.7070004@yahoo.co.uk> References: <4906BAC1.1070504@yahoo.co.uk> <67628d690810280418k751ea40em2e9a51469eb113c3@mail.gmail.com> <49070EAA.7070004@yahoo.co.uk> Message-ID: <6ac749c10810281112k1a656a48pf683702862c02ff1@mail.gmail.com> On Tue, Oct 28, 2008 at 2:07 PM, Keith Hodges wrote: > what bug tracker? http://code.google.com/p/pier/ http://www.piercms.com/ -- Damien Cassou Peter von der Ah?: ?I'm beginning to see why Gilad wished us good luck?. (http://blogs.sun.com/ahe/entry/override_snafu)