From philippe.marschall at gmail.com Sun Aug 3 19:04:15 2008 From: philippe.marschall at gmail.com (Philippe Marschall) Date: Sun, 3 Aug 2008 19:04:15 +0200 Subject: about the big kernel lock Message-ID: <66666f210808031004x56577bdbh4381827562c2058f@mail.gmail.com> Hi I recently read an article how KDevelop handles threading and that got me thinking. As far as I understand Pier currently uses a global lock for all write operations (where #isView returns false). All good an fine so far. But shouldn't this be a a read-write lock? Imagine the following scenario: - a view command is executed, is starts to read some objects, iterates over some objects - the current process is unscheduled - a new process is with a write command is scheduled, it executes to completion - the original view command is scheduled a again but it has inconsistent information, eg the parent of an already read structure has changed A read-write lock should not affect performance because it allows multiple concurrent readers. Cheers Philippe From renggli at iam.unibe.ch Sun Aug 3 19:24:32 2008 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Sun, 3 Aug 2008 19:24:32 +0200 Subject: about the big kernel lock In-Reply-To: <66666f210808031004x56577bdbh4381827562c2058f@mail.gmail.com> References: <66666f210808031004x56577bdbh4381827562c2058f@mail.gmail.com> Message-ID: > I recently read an article how KDevelop handles threading and that got > me thinking. As far as I understand Pier currently uses a global lock > for all write operations (where #isView returns false). All good an > fine so far. But shouldn't this be a a read-write lock? Yes, this is correct. > Imagine the > following scenario: > > - a view command is executed, is starts to read some objects, iterates > over some objects > - the current process is unscheduled > - a new process is with a write command is scheduled, it executes to > completion > - the original view command is scheduled a again but it has > inconsistent information, eg the parent of an already read structure > has changed True, this might happen. Since write operations are rare compared to read operations the problem is very unlikely to occur though. Moreover a single edit operation is unlikely to affect a random viewer. In the very unlikely event the viewer might get an inconsistent view. So what? In the absolutely worst case the viewer might get an exception. I have never seen such a situation though. > A read-write lock should not affect performance because it allows > multiple concurrent readers. It is certainly feasible, but is it worth the trouble to add a read- write lock to avoid this rare situation? Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From mykdavies at gmail.com Wed Aug 6 22:19:54 2008 From: mykdavies at gmail.com (Michael Davies) Date: Wed, 6 Aug 2008 22:19:54 +0200 Subject: Changing edit form based on user credentials Message-ID: Hi all, I've got a class inherited from PRPage with some additional properties, and I want to hide those properties from all but the page owner at edit time. The problem is that PREditCommand doesn't pass the context to the page before requesting its description, so the page instance doesn't have the necessary information to dynamically change its description. I can get the required functionality to work, by overriding PREditCommand>>description to make decisions about how to render the page, but that seems I wonder if there's a better way to approach this? In other words, is there a sensible way to make PRPage aware of the context in which its edit form is being rendered? I was contemplating adding context as an instance variable on PRPage and setting it from PREditCommand, but I suspect that if that was a sensible approach, it would have been done already! I've only just started using Pier in earnest, so if this question exposes a lack of understanding of anything fundamental, please feel free to point this out. Cheers, Michael From renggli at iam.unibe.ch Thu Aug 7 00:44:04 2008 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Thu, 7 Aug 2008 00:44:04 +0200 Subject: Changing edit form based on user credentials In-Reply-To: References: Message-ID: <3E1BA40D-976F-4825-A895-5396641324E3@iam.unibe.ch> > I've got a class inherited from PRPage with some additional > properties, and I want to hide those properties from all but the page > owner at edit time. The problem is that PREditCommand doesn't pass the > context to the page before requesting its description, so the page > instance doesn't have the necessary information to dynamically change > its description. You can always get the current context using PRCurrentContext value The expression might return nil if there is no current context, but in case of the execution of a command this should be defined. > I've only just started using Pier in earnest, so if this question > exposes a lack of understanding of anything fundamental, please feel > free to point this out. Good question. I added it to the upcoming FAQ: http://www.lukas-renggli.ch/smalltalk/pier/faq If you have more things that you would like to see, please let me know. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From mykdavies at gmail.com Thu Aug 7 08:53:29 2008 From: mykdavies at gmail.com (Michael Davies) Date: Thu, 7 Aug 2008 08:53:29 +0200 Subject: Changing edit form based on user credentials In-Reply-To: <3E1BA40D-976F-4825-A895-5396641324E3@iam.unibe.ch> References: <3E1BA40D-976F-4825-A895-5396641324E3@iam.unibe.ch> Message-ID: On Thu, Aug 7, 2008 at 12:44 AM, Lukas Renggli wrote: > You can always get the current context using > > PRCurrentContext value > Exactly what I needed - it works perfectly now. > If you have more things that you would like to see, please let me know. If you keep answering 'em, I'll keep asking 'em! Cheers, Michael From ngonzale at gmail.com Sat Aug 9 20:06:06 2008 From: ngonzale at gmail.com (=?ISO-8859-1?Q?Nicol=E1s_Gonz=E1lez-Deleito?=) Date: Sat, 9 Aug 2008 20:06:06 +0200 Subject: Another Magritte-Scriptaculous question In-Reply-To: <487CB575.4080900@yahoo.co.uk> References: <487CB575.4080900@yahoo.co.uk> Message-ID: Hi, When I try to use MAOneToManyComponentEditInPlace as described above I get a DNU for fieldSize in MAEditableColumnAutoCompleting>>visitDescription: Is this normal? (I am using the latest versions of Magritte, Magritte-Scriptaculous and Magritte-RealMemento). Thanks in advance, Nicol?s 2008/7/15 Keith Hodges : > Esteban Lorenzano wrote: >> Hi, >> I'm trying to use MAOneToManyComponentEditInPlace, and can't realize >> how it is supposed to work... what I want to do is add rows and edit >> them "InPlace"... now I can add new rows, but empty ones. Is possible >> to edit them? how? >> >> Thanks in advance, >> Esteban >> >> > You need to specify #reportColumnClass > > Keith > e.g. > > description0060DriverName > > ^ MAStringDescription new > accessor: ((#driverName asAccessor) options: #driverNamesAvailable); > label: 'Driver'; > fieldSize: 3; "just in case" > componentClass: MAAutoCompletingTextInputComponent; > beEditable; > reportColumnClass: MAEditableColumnAutoCompleting; > beSearchable; > bePersisted; > yourself > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > From rickf at ca-flower.com Mon Aug 11 08:21:16 2008 From: rickf at ca-flower.com (Richard E. Flower) Date: Sun, 10 Aug 2008 23:21:16 -0700 Subject: Sample code using MACssRenderer, MADivsRenderer or Magritte-ComponentDecoration? Message-ID: <64EABF9E-6B20-46C1-96F4-C67E26AC0FCB@ca-flower.com> Hi all.. I'm trying to wrap my brain around the above classes and what they offer over the default rendering that Magritte offers (MATableRenderer)... To that end, I've seen a few little snippets using a little of the above but still can't seem to figure out the typical usage scenario.. I've got existing css that I would like to use to dress up various pieces of one or more objects -- similar to what Keith has submitted in photo form here on this mailing list earlier this year (enclosing various fields in boxes,etc).. Anyway, if someone can post a little code that can do something akin to that, that would get me past my current hurdle.. MANY thanks in advance! -- Rick From renggli at iam.unibe.ch Mon Aug 11 08:25:09 2008 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Mon, 11 Aug 2008 08:25:09 +0200 Subject: Another Magritte-Scriptaculous question In-Reply-To: References: <487CB575.4080900@yahoo.co.uk> Message-ID: Keith, can you help with this problem? I can't ;-) Cheers, Lukas On Aug 9, 2008, at 20:06 , Nicol?s Gonz?lez-Deleito wrote: > Hi, > > When I try to use MAOneToManyComponentEditInPlace as described above I > get a DNU for fieldSize in > MAEditableColumnAutoCompleting>>visitDescription: > > Is this normal? (I am using the latest versions of Magritte, > Magritte-Scriptaculous and Magritte-RealMemento). > > Thanks in advance, > Nicol?s > > > 2008/7/15 Keith Hodges : >> Esteban Lorenzano wrote: >>> Hi, >>> I'm trying to use MAOneToManyComponentEditInPlace, and can't realize >>> how it is supposed to work... what I want to do is add rows and edit >>> them "InPlace"... now I can add new rows, but empty ones. Is >>> possible >>> to edit them? how? >>> >>> Thanks in advance, >>> Esteban >>> >>> >> You need to specify #reportColumnClass >> >> Keith >> e.g. >> >> description0060DriverName >> >> ^ MAStringDescription new >> accessor: ((#driverName asAccessor) options: >> #driverNamesAvailable); >> label: 'Driver'; >> fieldSize: 3; "just in case" >> componentClass: MAAutoCompletingTextInputComponent; >> beEditable; >> reportColumnClass: MAEditableColumnAutoCompleting; >> beSearchable; >> bePersisted; >> yourself >> >> >> _______________________________________________ >> 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 renggli at iam.unibe.ch Mon Aug 11 08:46:37 2008 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Mon, 11 Aug 2008 08:46:37 +0200 Subject: Sample code using MACssRenderer, MADivsRenderer or Magritte-ComponentDecoration? In-Reply-To: <64EABF9E-6B20-46C1-96F4-C67E26AC0FCB@ca-flower.com> References: <64EABF9E-6B20-46C1-96F4-C67E26AC0FCB@ca-flower.com> Message-ID: > I'm trying to wrap my brain around the above classes and what they > offer over the default rendering that Magritte offers > (MATableRenderer)... To that end, I've seen a few little snippets > using a little of the above but still can't seem to figure out the > typical usage scenario.. I've got existing css that I would like to > use to dress up various pieces of one or more objects -- similar to > what Keith has submitted in photo form here on this mailing list > earlier this year (enclosing various fields in boxes,etc).. Anyway, if > someone can post a little code that can do something akin to that, > that would get me past my current hurdle.. MANY thanks in advance! MATableRenderer (default) and MACssRenderer are complementary. These classes define how the different input fields are laid out in the XHTML. You can choose a different renderer by overriding the container description: descriptionContainer ^ super descriptionContainer componentRenderer: MACssRenderer * MATableRenderer creates something along: ...
[Group]
[Label] [Component]
This is what traditional web applications mostly had. It looks ok even without applying any style-sheets. * MACssRenderer creates something along:
[Group]
[Label]
[Component]
...
This is is a more modern approach (semantically meaningful) and requires some CSS tweaking. In both cases you don't have many possibilities to tweak the XHTML generation. You might set a CSS class to the descriptions though, that gets added to , and
,
respectively: descriptionFirstName ^ MAStringDescription new accesssor: #firstName; cssClass: 'firstname'; yourself In your case you probably need to provide your own implementation of a renderer. * The components (subclasses of MADescriptionComponent) provide the view of the description. Every description has a default component, but some have addition views. You can choose the different view like this: descriptionVegetarian ^ MABooleanDescription new accessor: #vegetarian; componentClass: MACheckboxComponent; "or MASelectListComponent or MARadioGroupComponent" ; yourself * The decorations (subclasses of MAComponentDecoration) are solely used to attach the form around the components, to display the error messages and to add form buttons. Hope this helps? I might turn this answer into a blog post someday ;-) Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From rickf at ca-flower.com Mon Aug 11 09:04:40 2008 From: rickf at ca-flower.com (Richard E. Flower) Date: Mon, 11 Aug 2008 00:04:40 -0700 Subject: Sample code using MACssRenderer, MADivsRenderer or Magritte-ComponentDecoration? In-Reply-To: References: <64EABF9E-6B20-46C1-96F4-C67E26AC0FCB@ca-flower.com> Message-ID: <26773CF1-C115-4774-8AC9-99F4D525A973@ca-flower.com> On Aug 10, 2008, at 11:46 PM, Lukas Renggli wrote: [ ... snippet content ... ] > In your case you probably need to provide your own implementation of a > renderer. > > * The components (subclasses of MADescriptionComponent) provide the > view of the description. Every description has a default component, > but some have addition views. You can choose the different view like > this: > > descriptionVegetarian > ^ MABooleanDescription new > accessor: #vegetarian; > componentClass: MACheckboxComponent; > "or MASelectListComponent or MARadioGroupComponent" ; > yourself > > * The decorations (subclasses of MAComponentDecoration) are solely > used to attach the form around the components, to display the error > messages and to add form buttons. > > Hope this helps? I might turn this answer into a blog post someday ;-) Lukas -- Thanks for the great write-up! That is what I was looking for and something I think that ought to be captured in an FAQ at least.. Anyway -- if I want to write my own renderer, I'm assuming the renderer will get a copy of the object to be rendered or does it work differently? If you want to point me to an example, that would be good too! Thanks again! -- Rick From keith_hodges at yahoo.co.uk Mon Aug 11 15:06:05 2008 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Mon, 11 Aug 2008 14:06:05 +0100 Subject: Another Magritte-Scriptaculous question In-Reply-To: References: <487CB575.4080900@yahoo.co.uk> Message-ID: <48A0393D.7050605@yahoo.co.uk> Nicol?s Gonz?lez-Deleito wrote: > Hi, > > When I try to use MAOneToManyComponentEditInPlace as described above I > get a DNU for fieldSize in > MAEditableColumnAutoCompleting>>visitDescription: > > Is this normal? (I am using the latest versions of Magritte, > Magritte-Scriptaculous and Magritte-RealMemento). > > Thanks in advance, > Nicol?s > > > 2008/7/15 Keith Hodges : > >> Esteban Lorenzano wrote: >> >>> Hi, >>> I'm trying to use MAOneToManyComponentEditInPlace, and can't realize >>> how it is supposed to work... what I want to do is add rows and edit >>> them "InPlace"... now I can add new rows, but empty ones. Is possible >>> to edit them? how? >>> >>> Thanks in advance, >>> Esteban >>> >>> >>> Hi, #fieldSize and #fieldSize: were part of the magritte-rdb package enabling SQL tables to be created from magritte descriptions. I used them again in MAEdittableColumn to set the width of text input components. so... I have moved fieldSize:/fieldSize over into the latest magritte-scriptaculous package. thanks for reporting Keith From merlyn at stonehenge.com Mon Aug 11 16:07:26 2008 From: merlyn at stonehenge.com (Randal L. Schwartz) Date: Mon, 11 Aug 2008 07:07:26 -0700 Subject: Sample code using MACssRenderer, MADivsRenderer or Magritte-ComponentDecoration? In-Reply-To: <26773CF1-C115-4774-8AC9-99F4D525A973@ca-flower.com> (Richard E. Flower's message of "Mon, 11 Aug 2008 00:04:40 -0700") References: <64EABF9E-6B20-46C1-96F4-C67E26AC0FCB@ca-flower.com> <26773CF1-C115-4774-8AC9-99F4D525A973@ca-flower.com> Message-ID: <86sktbmyqp.fsf@blue.stonehenge.com> >>>>> "Richard" == Richard E Flower writes: Richard> Anyway -- if I want to write my own renderer, I'm assuming the Richard> renderer will get a copy of the object to be rendered or does it work Richard> differently? If you want to point me to an example, that would be Richard> good too! Thanks again! The best examples, as always, are the source code for the existing renderers. I learned a lot from studying the source code, although the whole visitor pattern thing turns everything sideways and requires having a quite a bit of screen real estate to have all the particpating classes on the screen at once. :) -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion From ngonzale at gmail.com Tue Aug 12 19:59:13 2008 From: ngonzale at gmail.com (=?ISO-8859-1?Q?Nicol=E1s_Gonz=E1lez-Deleito?=) Date: Tue, 12 Aug 2008 19:59:13 +0200 Subject: Another Magritte-Scriptaculous question In-Reply-To: <48A0393D.7050605@yahoo.co.uk> References: <487CB575.4080900@yahoo.co.uk> <48A0393D.7050605@yahoo.co.uk> Message-ID: Hi, Everything works nice now. However, I had to merge Magritte-Scriptaculous-EL.36 and Magritte-Scriptaculous-kph.36 to make it fully work. The merged version is in the magritteaddons repository ;-) Best regards, Nicol?s 2008/8/11 Keith Hodges : > Nicol?s Gonz?lez-Deleito wrote: >> Hi, >> >> When I try to use MAOneToManyComponentEditInPlace as described above I >> get a DNU for fieldSize in >> MAEditableColumnAutoCompleting>>visitDescription: >> >> Is this normal? (I am using the latest versions of Magritte, >> Magritte-Scriptaculous and Magritte-RealMemento). >> >> Thanks in advance, >> Nicol?s >> >> >> 2008/7/15 Keith Hodges : >> >>> Esteban Lorenzano wrote: >>> >>>> Hi, >>>> I'm trying to use MAOneToManyComponentEditInPlace, and can't realize >>>> how it is supposed to work... what I want to do is add rows and edit >>>> them "InPlace"... now I can add new rows, but empty ones. Is possible >>>> to edit them? how? >>>> >>>> Thanks in advance, >>>> Esteban >>>> >>>> >>>> > Hi, > > #fieldSize and #fieldSize: were part of the magritte-rdb package > enabling SQL tables to be created from magritte descriptions. I used > them again in MAEdittableColumn to set the width of text input components. > > so... I have moved fieldSize:/fieldSize over into the latest > magritte-scriptaculous package. > > thanks for reporting > > Keith > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > From renggli at iam.unibe.ch Thu Aug 14 12:29:25 2008 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Thu, 14 Aug 2008 12:29:25 +0200 Subject: Fwd: [Help-smalltalk] Magritte ported to GNU Smalltalk Message-ID: <6A5532F7-5F19-4278-894E-9A37A01F6F9E@iam.unibe.ch> ---------- Forwarded message ---------- From: Paolo Bonzini Date: Aug 14, 2008 10:45 AM Subject: [Help-smalltalk] Magritte ported to GNU Smalltalk To: help-smalltalk at gnu.org I committed a port of Magritte and of the Seaside bindings to Magritte. This highlighted a few bugs (in the class library and in gst-convert) and provided a better stress test for the Seaside/Swazoo pair. You can test Magritte-Seaside by doing gst-package --start Seaside Magritte-Seaside and pointing your browser to http://localhost:8080/seaside/editor. Paolo _______________________________________________ help-smalltalk mailing list help-smalltalk at gnu.org http://lists.gnu.org/mailman/listinfo/help-smalltalk -- Lukas Renggli http://www.lukas-renggli.ch From squeakman at gmail.com Fri Aug 15 16:18:02 2008 From: squeakman at gmail.com (Squeaker) Date: Fri, 15 Aug 2008 10:18:02 -0400 Subject: Pier videos - not working for me Message-ID: Greetings, The videos at http://www.lukas-renggli.ch/smalltalk/pier are causing me some problems. When I download a video, e.g, "Creating Pages and Files" and play it, all I see is the initial page just sitting there. No mouse movement, nothing changes and there is no audio. Is anyone else experiencing this? I am using Windoze XP and using VLC Media Player to play the video. Thanks, Frank From obi068 at gmail.com Fri Aug 15 16:56:31 2008 From: obi068 at gmail.com (Gerhard Obermann) Date: Fri, 15 Aug 2008 16:56:31 +0200 Subject: Pier videos - not working for me In-Reply-To: References: Message-ID: <7b7d752d0808150756t7b8b00er9502b99a0b813d95@mail.gmail.com> Hi! > Is anyone else experiencing this? No, tried it with VLC, Zoomplayer, Media Player, Quicktime. Works fine with all players. Quicktime should work anyway! BTW i think there is no audio! br Gerhard On Fri, Aug 15, 2008 at 4:18 PM, Squeaker wrote: > Greetings, > > The videos at http://www.lukas-renggli.ch/smalltalk/pier are causing me > some problems. > > When I download a video, e.g, "Creating Pages and Files" and play it, > all I see is the initial page just sitting there. No mouse movement, > nothing changes and there is no audio. > > Is anyone else experiencing this? I am using Windoze XP and using VLC > Media Player to play the video. > > Thanks, > Frank > > > _______________________________________________ > 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/20080815/2f7e096c/attachment.html From renggli at me.com Fri Aug 15 17:13:42 2008 From: renggli at me.com (Lukas Renggli) Date: Fri, 15 Aug 2008 17:13:42 +0200 Subject: Pier videos - not working for me In-Reply-To: <7b7d752d0808150756t7b8b00er9502b99a0b813d95@mail.gmail.com> References: <7b7d752d0808150756t7b8b00er9502b99a0b813d95@mail.gmail.com> Message-ID: <633C484B-B7A4-4C17-A83C-B552B4DB2B5E@me.com> Indeed, there is no audio. You might also try the screencasts on Pier in my blog. These have audio as far as I remember. Cheers, Lukas -- Lukas Renggli (mobile) http://www.lukas-renggli.ch On 15 Aug 2008, at 16:56, Gerhard Obermann wrote: > Hi! > > > Is anyone else experiencing this? > > No, tried it with VLC, Zoomplayer, Media Player, Quicktime. > Works fine with all players. > Quicktime should work anyway! > BTW i think there is no audio! > > br > Gerhard > > On Fri, Aug 15, 2008 at 4:18 PM, Squeaker wrote: > Greetings, > > The videos at http://www.lukas-renggli.ch/smalltalk/pier are causing > me > some problems. > > When I download a video, e.g, "Creating Pages and Files" and play it, > all I see is the initial page just sitting there. No mouse movement, > nothing changes and there is no audio. > > Is anyone else experiencing this? I am using Windoze XP and using VLC > Media Player to play the video. > > Thanks, > Frank > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20080815/f612816e/attachment-0001.html From squeakman at gmail.com Fri Aug 15 17:25:34 2008 From: squeakman at gmail.com (Squeaker) Date: Fri, 15 Aug 2008 11:25:34 -0400 Subject: Pier videos - not working for me In-Reply-To: <7b7d752d0808150756t7b8b00er9502b99a0b813d95@mail.gmail.com> References: <7b7d752d0808150756t7b8b00er9502b99a0b813d95@mail.gmail.com> Message-ID: Gerhard Obermann wrote: > Hi! > > > Is anyone else experiencing this? > > No, tried it with VLC, Zoomplayer, Media Player, Quicktime. > Works fine with all players. > Quicktime should work anyway! > BTW i think there is no audio! > > br > Gerhard > I tried it with QuickTime and it works! I guess it is some problem with the VLC Player. Thanks From rickf at ca-flower.com Sat Aug 16 10:30:57 2008 From: rickf at ca-flower.com (Richard E. Flower) Date: Sat, 16 Aug 2008 01:30:57 -0700 Subject: Bug in latest version of MADivsRenderer.. Message-ID: <860DB89C-625A-4D0A-8BCC-980B519444CC@ca-flower.com> Keith -- I was trying out your MADivsRenderer this evening and found that if my description class has no cssClass specified, that the following causes problems when the call to "(self classFor: aDescription)" returns nil.. It then tries to append "clear" to the list and that gets me a DNU.. It took me a while to track it down as I initially thought it might be a general Migritte issue.. Anyway, MAComponentRenderer>>classFor: has a call to #reduce at the end and if the class list is empty it returns nil which is where the initial nil is coming from. I checked to see what Squeak has for the #reduce: method and it also returns nil when the OrderedCollection is empty -- so this bug should be reproducible on Squeak as well.. I suppose one work-around would be to change MAComponentRenderer>>classFor: to check if it gets nil back from the reduce call and not return a nil object or perhaps something else like changing MADivsRenderer>>renderContainer to check the return value of #classFor: to see if it gets a nil back and if so create a string object.... comments/suggestions welcome.. From estebanlm at gmail.com Sat Aug 16 19:30:32 2008 From: estebanlm at gmail.com (Esteban Lorenzano) Date: Sat, 16 Aug 2008 14:30:32 -0300 Subject: about making magritte more flexible... and founding the case for L17N Message-ID: Hi, This is a "disgression" of something I thought/implement last week and I want to put into consideration, in order to know if is a valuable contribution or just another stupid idea :) First let mu put some context information: I'm using magritte for some production applications, who has two major requirements: L&F and L17N. For major of my needs, magritte fits quite well, but it still have some restrictions: 1) No L17N in labels and buttons. 2) Buttons are texts and usually clients ask for images, images/texts, etc. There are some other restrictions, but achievable by simply extending magritte system (such as image report columns, etc.) How do I solved this problems? Well, first I simply added a "localized" method on String who asks for a property (language) in session and follow "translated" path to translate the string, and then I modified each method in magritte who outputs a label (they are not many, just 3 or 4). That solves my L17N problem. Now, I want to make my buttons more fashionable... this is harder because of the places where I have to change things... but again, extending MAFormDecoration and MACommandColumn... and aplying that to every component who uses a report... problem solved. But, what if I what my buttons different, or even configurable? This is my approach: instead having buttons and links displayed in columns or forms, I created a Command, and then I whant to add that commands by visiting different renderers, magritte style visitors. So, if I want to change the displaying style, I just add a new renderer... And as an "extra bonus" there I can handle L17N stuff. What do you think? is this good approach? From renggli at iam.unibe.ch Sat Aug 16 20:48:12 2008 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Sat, 16 Aug 2008 20:48:12 +0200 Subject: about making magritte more flexible... and founding the case for L17N In-Reply-To: References: Message-ID: <2B5413BA-81AA-40D9-ACBA-43B6D4E06517@iam.unibe.ch> > Well, first I simply added a "localized" method on String who asks for > a property (language) in session and follow "translated" path to > translate the string, and then I modified each method in magritte who > outputs a label (they are not many, just 3 or 4). > That solves my L17N problem. I wrote a couple of applications using Magritte in multi-lingual environments. In Switzerland there are 4 official languages (German, French, Italian, and Rhaeto-Romanic). English is quite prominent too. What we did at that time was to create our own String class, TranslatedString that responds to the same messages as String dispatches to the correct translation in the given context. This is similar to your approach, but does not require a change in Magritte. > But, what if I what my buttons different, or even configurable? Why not create your own MAFormDecoration (as a subclass or as your own Seaside decoration)? I mean, you can add any Seaside decoration around Magritte Forms and build something that exactly suits your needs. If this turns out to be a better and easier to customize than the one currently coming with Magritte, I might be interested to include in the core. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From dz0004455 at gmail.com Sun Aug 17 21:38:44 2008 From: dz0004455 at gmail.com (David Zmick) Date: Sun, 17 Aug 2008 14:38:44 -0500 Subject: [smallwikki/pier] Magma on squeak-web 3.10 image Message-ID: I tried to run the installer script for Magma-Pier from http://www.iam.unibe.ch/pipermail/smallwiki/2007-April/002794.html, and it didn't work, not that i am surprised, the script is for a fresh image. What packages to i need to install to this image to get Pier to work with Magma? -- 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/20080817/f188042f/attachment.html From keith_hodges at yahoo.co.uk Sun Aug 17 23:15:41 2008 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Sun, 17 Aug 2008 22:15:41 +0100 Subject: [smallwikki/pier] Magma on squeak-web 3.10 image In-Reply-To: References: Message-ID: <48A894FD.5090204@yahoo.co.uk> David Zmick wrote: > I tried to run the installer script for Magma-Pier from > http://www.iam.unibe.ch/pipermail/smallwiki/2007-April/002794.html, > and it didn't work, not that i am surprised, the script is for a fresh > image. What packages to i need to install to this image to get Pier > to work with Magma? > > -- > David Zmick > /dz0004455\ > http://dz0004455.googlepages.com > http://dz0004455.blogspot.com > You may be better off loading something more modern, I havent tried it but... something like... Installer install: 'Packages'. Installer sake install: 'Pier-Magma'. or there is a universes equivalent Keith From rickf at ca-flower.com Mon Aug 18 08:46:25 2008 From: rickf at ca-flower.com (Richard E. Flower) Date: Sun, 17 Aug 2008 23:46:25 -0700 Subject: What does reduce: get used for? Message-ID: I'm not completely following what its purpose is? Below is the code from the Magritte, living in the SequenceableCollection object: reduce: aBlock | result | self isEmpty ifTrue: [ ^ nil ]. result := self first. 2 to: self size do: [ :index | result := aBlock value: result value: (self at: index) ]. ^ result In my case, it is causing problems on VW when it calls aBlock (near the end) and passes in a pair of Characters which are processed by MAComponentRenderer>>classFor: which then tries to do a string append (#,) which gives a DNU since VW's characters (and I think Squeak from what I can tell) do not have concat methods (#,).. Am I missing something? Below is the code that calls reduce: MAComponentRenderer>>classFor: aDescription | classes item | item := (component description = aDescription ifTrue: [ component ] ifFalse: [ self childAt: aDescription ]) ifNotNilDo: [ :comp | comp model ]. classes := aDescription cssClassesForItem: item. (self hasError: aDescription) ifTrue: [ classes add: 'error' ]. ^ classes reduce: [ :a :b | a , ' ' , b ] From renggli at iam.unibe.ch Mon Aug 18 10:01:57 2008 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Mon, 18 Aug 2008 10:01:57 +0200 Subject: What does reduce: get used for? In-Reply-To: References: Message-ID: <4DF9DA21-E336-4258-9A4C-5360792B4A41@iam.unibe.ch> > I'm not completely following what its purpose is? It is a left-fold: http://en.wikipedia.org/wiki/Fold_(higher-order_function) > In my case, it is causing problems on VW when it calls aBlock (near > the end) and passes in a pair of Characters which are processed by > MAComponentRenderer>>classFor: which then tries to do a string append > (#,) which gives a DNU since VW's characters (and I think Squeak from > what I can tell) do not have concat methods (#,).. Am I missing > something? The idea is that when you do #( 'foo' 'bar' 'zork' ) reduce: [ :a :b | a , ' ' , b ] you get 'foo bar zork' I don't know how your collection 'classes' ends up with characters? These should be strings. Maybe there is a bug in #cssClassesForItem:? I don't have such a method in Squeak though and the original implementation of #classFor: looks quite different: MAComponentRenderer>>classFor: aDescription | classes | classes := OrderedCollection withAll: aDescription cssClasses. aDescription isReadonly ifTrue: [ classes add: 'readonly' ]. aDescription isRequired ifTrue: [ classes add: 'required' ]. (self hasError: aDescription) ifTrue: [ classes add: 'error' ]. ^ classes reduce: [ :a :b | a , ' ' , b ] Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From keith_hodges at yahoo.co.uk Mon Aug 18 17:28:17 2008 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Mon, 18 Aug 2008 16:28:17 +0100 Subject: What does reduce: get used for? In-Reply-To: <4DF9DA21-E336-4258-9A4C-5360792B4A41@iam.unibe.ch> References: <4DF9DA21-E336-4258-9A4C-5360792B4A41@iam.unibe.ch> Message-ID: <48A99511.8090608@yahoo.co.uk> Lukas Renggli wrote: >> I'm not completely following what its purpose is? >> > > It is a left-fold: > > http://en.wikipedia.org/wiki/Fold_(higher-order_function) > > >> In my case, it is causing problems on VW when it calls aBlock (near >> the end) and passes in a pair of Characters which are processed by >> MAComponentRenderer>>classFor: which then tries to do a string append >> (#,) which gives a DNU since VW's characters (and I think Squeak from >> what I can tell) do not have concat methods (#,).. Am I missing >> something? >> > > The idea is that when you do > > #( 'foo' 'bar' 'zork' ) reduce: [ :a :b | a , ' ' , b ] > > you get > > 'foo bar zork' > > I don't know how your collection 'classes' ends up with characters? > These should be strings. Maybe there is a bug in #cssClassesForItem:? > > I don't have such a method in Squeak though and the original > implementation of #classFor: looks quite different: > > MAComponentRenderer>>classFor: aDescription > | classes | > classes := OrderedCollection withAll: aDescription cssClasses. > aDescription isReadonly > ifTrue: [ classes add: 'readonly' ]. > aDescription isRequired > ifTrue: [ classes add: 'required' ]. > (self hasError: aDescription) > ifTrue: [ classes add: 'error' ]. > ^ classes reduce: [ :a :b | a , ' ' , b ] > > Cheers, > Lukas > > If looks like you have put a string into the cssClasses property, where an Array/Collection of strings is expected. Keith From dz0004455 at gmail.com Mon Aug 18 23:45:23 2008 From: dz0004455 at gmail.com (David Zmick) Date: Mon, 18 Aug 2008 16:45:23 -0500 Subject: [smallwikki/pier] Magma on squeak-web 3.10 image In-Reply-To: <48A894FD.5090204@yahoo.co.uk> References: <48A894FD.5090204@yahoo.co.uk> Message-ID: there is a magma-pier package in universes, but It always opens a debugger while trying to install "ProcessSpecific". The error was caused by the universes browser trying to ask me a question. The question asks if i would like to overwrite the existing Process class, and i always push proceed on the debugger. then the whole thing stops, and I have to kill the process. On Sun, Aug 17, 2008 at 4:15 PM, Keith Hodges wrote: > David Zmick wrote: > > I tried to run the installer script for Magma-Pier from > > http://www.iam.unibe.ch/pipermail/smallwiki/2007-April/002794.html, > > and it didn't work, not that i am surprised, the script is for a fresh > > image. What packages to i need to install to this image to get Pier > > to work with Magma? > > > > -- > > David Zmick > > /dz0004455\ > > http://dz0004455.googlepages.com > > http://dz0004455.blogspot.com > > > You may be better off loading something more modern, I havent tried it > but... something like... > > Installer install: 'Packages'. > Installer sake install: 'Pier-Magma'. > > or there is a universes equivalent > > 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/20080818/e0ab248c/attachment.html From dz0004455 at gmail.com Tue Aug 19 06:45:26 2008 From: dz0004455 at gmail.com (David Zmick) Date: Mon, 18 Aug 2008 23:45:26 -0500 Subject: Broken Pier admin user Message-ID: I appear to have broken my admin user in pier somehow, how do I change the password from inside of squeak? -- 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/20080819/085f8549/attachment.html From rickf at ca-flower.com Tue Aug 19 08:20:14 2008 From: rickf at ca-flower.com (Richard E. Flower) Date: Mon, 18 Aug 2008 23:20:14 -0700 Subject: What does reduce: get used for? In-Reply-To: <48A99511.8090608@yahoo.co.uk> References: <4DF9DA21-E336-4258-9A4C-5360792B4A41@iam.unibe.ch> <48A99511.8090608@yahoo.co.uk> Message-ID: <9B6666EC-B2BE-4305-8334-87364E193564@ca-flower.com> Thanks Keith & Lukas.. Keith was right.. I was passing in a string instead of an array of strings.. Oh well.. Live and learn.. It's working MUCH better now! -- Rick On Aug 18, 2008, at 8:28 AM, Keith Hodges wrote: > Lukas Renggli wrote: >>> I'm not completely following what its purpose is? >>> >> >> It is a left-fold: >> >> http://en.wikipedia.org/wiki/Fold_(higher-order_function) >> >> >>> In my case, it is causing problems on VW when it calls aBlock (near >>> the end) and passes in a pair of Characters which are processed by >>> MAComponentRenderer>>classFor: which then tries to do a string >>> append >>> (#,) which gives a DNU since VW's characters (and I think Squeak >>> from >>> what I can tell) do not have concat methods (#,).. Am I missing >>> something? >>> >> >> The idea is that when you do >> >> #( 'foo' 'bar' 'zork' ) reduce: [ :a :b | a , ' ' , b ] >> >> you get >> >> 'foo bar zork' >> >> I don't know how your collection 'classes' ends up with characters? >> These should be strings. Maybe there is a bug in #cssClassesForItem:? >> >> I don't have such a method in Squeak though and the original >> implementation of #classFor: looks quite different: >> >> MAComponentRenderer>>classFor: aDescription >> | classes | >> classes := OrderedCollection withAll: aDescription cssClasses. >> aDescription isReadonly >> ifTrue: [ classes add: 'readonly' ]. >> aDescription isRequired >> ifTrue: [ classes add: 'required' ]. >> (self hasError: aDescription) >> ifTrue: [ classes add: 'error' ]. >> ^ classes reduce: [ :a :b | a , ' ' , b ] >> >> Cheers, >> Lukas >> >> > If looks like you have put a string into the cssClasses property, > where > an Array/Collection of strings is expected. > > Keith > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > From renggli at iam.unibe.ch Tue Aug 19 08:32:49 2008 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Tue, 19 Aug 2008 08:32:49 +0200 Subject: Broken Pier admin user In-Reply-To: References: Message-ID: <0AA84503-817F-4E18-A23E-07A356E7C49C@iam.unibe.ch> > I appear to have broken my admin user in pier somehow, how do I > change the password from inside of squeak? Inspect "PRKernel instances". Then look for instances of PUUser. self password: 'foo'. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From rickf at ca-flower.com Tue Aug 19 08:40:33 2008 From: rickf at ca-flower.com (Richard E. Flower) Date: Mon, 18 Aug 2008 23:40:33 -0700 Subject: determining "save" or "cancel" status on #rendered Magritte component... Message-ID: <5153AE5A-7385-4273-87B7-7BA8CEFB382F@ca-flower.com> Lukas et-al, I've got my test Magritte form working from a renderContentOn: block without issue (data is displayed,buttons exist,no complaints, etc).. Anyway, at the bottom of the form (using the code below) are 3 buttons (save,cancel and then my 'done' button).. The thing I'm having a hard time with (which was easy when using #call and #answer) is how to determine what button was pressed (save,cancel).. Ideally, I don't care to have a "done" button but I do need to distinguish between save and cancel.. What's the best approach for this? I copied the onAnswer: block from another old Magritte email thread but its only called when cancel is pressed.. Thx! renderContentOn: html component := (self session user) asComponent addValidatedForm; onAnswer: [ :value | self answer: value ]; yourself. html div id: 'fullwidthContent'; with: [ html div id: #fieldsetEnclosure; with: [ html render: component. html submitButton callback: [self answer: 'foo']; text: 'Done' ] ] -- Rick From cdrick65 at gmail.com Tue Aug 19 09:13:29 2008 From: cdrick65 at gmail.com (cdrick) Date: Tue, 19 Aug 2008 09:13:29 +0200 Subject: Broken Pier admin user In-Reply-To: <0AA84503-817F-4E18-A23E-07A356E7C49C@iam.unibe.ch> References: <0AA84503-817F-4E18-A23E-07A356E7C49C@iam.unibe.ch> Message-ID: > I appear to have broken my admin user in pier somehow, how do I > > change the password from inside of squeak? > > Inspect "PRKernel instances". > > Then look for instances of PUUser. > > self password: 'foo'. Or you can use the System users components (I think it's a default one). The best is probably to have an admin page where you put all system components. C?drick > > > 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/20080819/debbb283/attachment-0001.html From renggli at iam.unibe.ch Tue Aug 19 09:21:50 2008 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Tue, 19 Aug 2008 09:21:50 +0200 Subject: Broken Pier admin user In-Reply-To: References: <0AA84503-817F-4E18-A23E-07A356E7C49C@iam.unibe.ch> Message-ID: > > I appear to have broken my admin user in pier somehow, how do I > > change the password from inside of squeak? > > Inspect "PRKernel instances". > > Then look for instances of PUUser. > > self password: 'foo'. > > Or you can use the System users components (I think it's a default > one). The best is probably to have an admin page where you put all > system components. Heh, but these are disabled if you are not logged in as admin ;-) Lukas -- Lukas Renggli http://www.lukas-renggli.ch From renggli at iam.unibe.ch Tue Aug 19 09:31:15 2008 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Tue, 19 Aug 2008 09:31:15 +0200 Subject: determining "save" or "cancel" status on #rendered Magritte component... In-Reply-To: <5153AE5A-7385-4273-87B7-7BA8CEFB382F@ca-flower.com> References: <5153AE5A-7385-4273-87B7-7BA8CEFB382F@ca-flower.com> Message-ID: <12E48C43-751B-45D9-A38D-52CF539D38CA@iam.unibe.ch> > and cancel.. What's the best approach for this? I copied the > onAnswer: block from another old Magritte email thread but its only > called when cancel is pressed.. Thx! The #onAnswer: trick is the right thing to do here. > renderContentOn: html > > component := (self session user) asComponent addValidatedForm; > onAnswer: [ :value | self answer: value ]; > yourself. > html div id: 'fullwidthContent'; with: [ > html div id: #fieldsetEnclosure; with: [ > html render: component. > html submitButton > callback: [self answer: 'foo']; > text: 'Done' > ] > ] The problem is that, #asComponent will create a new component every time the page is rendered. So you need to move the code > component := (self session user) asComponent addValidatedForm; > onAnswer: [ :value | self answer: value ]; > yourself. to #initialize of the component and answer component from #children. Another problem I see is the #submitButton, that is outside the form that you added with #addValidatedForm. To get your 'done' button into the form you might want to customize the decorator like: ... addValidatedForm: #( save cancel done ) Now you need to add #done as an extension method to MAContainerComponent to #answer: something meaningful. It's not that nice, but it works ;-) Btw, #save answers the changed model and #cancel answers nil. Hope this helps, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From merlyn at stonehenge.com Tue Aug 19 14:12:59 2008 From: merlyn at stonehenge.com (Randal L. Schwartz) Date: Tue, 19 Aug 2008 05:12:59 -0700 Subject: determining "save" or "cancel" status on #rendered Magritte component... In-Reply-To: <12E48C43-751B-45D9-A38D-52CF539D38CA@iam.unibe.ch> (Lukas Renggli's message of "Tue, 19 Aug 2008 09:31:15 +0200") References: <5153AE5A-7385-4273-87B7-7BA8CEFB382F@ca-flower.com> <12E48C43-751B-45D9-A38D-52CF539D38CA@iam.unibe.ch> Message-ID: <86r68lb3uc.fsf@blue.stonehenge.com> >>>>> "Lukas" == Lukas Renggli writes: Lukas> ... addValidatedForm: #( save cancel done ) Lukas> Now you need to add #done as an extension method to Lukas> MAContainerComponent to #answer: something meaningful. It's not that Lukas> nice, but it works ;-) This is where I had wished that the form stuff would be pluggable instead of only being able to be extended by subclassing. Did you consider a pluggable strategy here, and rejected it for some other reason? The notion of subclassing just to get a slight variation still tweaks me somehow. Maybe it's just a quirk I need to get over... :) -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion From rickf at ca-flower.com Tue Aug 19 16:16:34 2008 From: rickf at ca-flower.com (Richard E. Flower) Date: Tue, 19 Aug 2008 07:16:34 -0700 Subject: determining "save" or "cancel" status on #rendered Magritte component... In-Reply-To: <12E48C43-751B-45D9-A38D-52CF539D38CA@iam.unibe.ch> References: <5153AE5A-7385-4273-87B7-7BA8CEFB382F@ca-flower.com> <12E48C43-751B-45D9-A38D-52CF539D38CA@iam.unibe.ch> Message-ID: <1FDFD1BD-C1A3-4111-BE84-82959896216C@ca-flower.com> On Aug 19, 2008, at 12:31 AM, Lukas Renggli wrote: > > Another problem I see is the #submitButton, that is outside the form > that you added with #addValidatedForm. To get your 'done' button into > the form you might want to customize the decorator like: > > ... addValidatedForm: #( save cancel done ) Lukas -- what if I just want the plain version (save,cancel) but still want to know which button was pressed.. I really only had the 'done' button in place since that is what the examples used. So, if I ditch the 'done' button, how can I get the ultimate answer that was selected? > > > Btw, #save answers the changed model and #cancel answers nil. I saw that onAnswer was called for the cancel action but didn't get a breakpoint in the onAnswer block when 'save' was selected.. Do I just assume that if my block isn't triggered that 'save' was selected? Sorry for being dense.. I just want to make sure I've got sufficient info for this tonight when I want to work on this more. -- Rick -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20080819/45200a33/attachment.html From renggli at iam.unibe.ch Tue Aug 19 16:21:46 2008 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Tue, 19 Aug 2008 16:21:46 +0200 Subject: determining "save" or "cancel" status on #rendered Magritte component... In-Reply-To: <1FDFD1BD-C1A3-4111-BE84-82959896216C@ca-flower.com> References: <5153AE5A-7385-4273-87B7-7BA8CEFB382F@ca-flower.com> <12E48C43-751B-45D9-A38D-52CF539D38CA@iam.unibe.ch> <1FDFD1BD-C1A3-4111-BE84-82959896216C@ca-flower.com> Message-ID: <4DC9F80D-F81C-434B-9640-29FB70D9661D@iam.unibe.ch> >> Btw, #save answers the changed model and #cancel answers nil. > > I saw that onAnswer was called for the cancel action but didn't get > a breakpoint > in the onAnswer block when 'save' was selected.. Do I just assume > that if my > block isn't triggered that 'save' was selected? I guess this has to do with the other bugs you had in your code ;-) An #onAnswer: block like this should actually work: [ :answer | answer isNil ifTrue: [ self inform: 'You cancelled editing' ] ifFalse: [ self inform: 'The object was saved: ' , answer printString ] ] Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From dz0004455 at gmail.com Tue Aug 19 16:23:18 2008 From: dz0004455 at gmail.com (David Zmick) Date: Tue, 19 Aug 2008 09:23:18 -0500 Subject: Broken Pier admin user In-Reply-To: References: <0AA84503-817F-4E18-A23E-07A356E7C49C@iam.unibe.ch> Message-ID: thanks! here is what I executed in a workspace: | x | x := PRKernel instanceNamed: 'Pier'. x adminUser password: 'foo' On Tue, Aug 19, 2008 at 2:21 AM, Lukas Renggli wrote: > > > I appear to have broken my admin user in pier somehow, how do I > > > change the password from inside of squeak? > > > > Inspect "PRKernel instances". > > > > Then look for instances of PUUser. > > > > self password: 'foo'. > > > > Or you can use the System users components (I think it's a default > > one). The best is probably to have an admin page where you put all > > system components. > > Heh, but these are disabled if you are not logged in as admin ;-) > > Lukas > > -- > Lukas Renggli > http://www.lukas-renggli.ch > > > _______________________________________________ > 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/20080819/65c05d2d/attachment.html From dz0004455 at gmail.com Tue Aug 19 16:25:38 2008 From: dz0004455 at gmail.com (David Zmick) Date: Tue, 19 Aug 2008 09:25:38 -0500 Subject: Broken Pier admin user In-Reply-To: References: <0AA84503-817F-4E18-A23E-07A356E7C49C@iam.unibe.ch> Message-ID: is there a maximum number a characters I can have in the password? On Tue, Aug 19, 2008 at 9:23 AM, David Zmick wrote: > thanks! > here is what I executed in a workspace: > | x | > x := PRKernel instanceNamed: 'Pier'. > x adminUser password: 'foo' > > > On Tue, Aug 19, 2008 at 2:21 AM, Lukas Renggli wrote: > >> > > I appear to have broken my admin user in pier somehow, how do I >> > > change the password from inside of squeak? >> > >> > Inspect "PRKernel instances". >> > >> > Then look for instances of PUUser. >> > >> > self password: 'foo'. >> > >> > Or you can use the System users components (I think it's a default >> > one). The best is probably to have an admin page where you put all >> > system components. >> >> Heh, but these are disabled if you are not logged in as admin ;-) >> >> Lukas >> >> -- >> Lukas Renggli >> http://www.lukas-renggli.ch >> >> >> _______________________________________________ >> 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 > -- 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/20080819/f7632b35/attachment-0001.html From renggli at iam.unibe.ch Tue Aug 19 16:29:22 2008 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Tue, 19 Aug 2008 16:29:22 +0200 Subject: determining "save" or "cancel" status on #rendered Magritte component... In-Reply-To: <86r68lb3uc.fsf@blue.stonehenge.com> References: <5153AE5A-7385-4273-87B7-7BA8CEFB382F@ca-flower.com> <12E48C43-751B-45D9-A38D-52CF539D38CA@iam.unibe.ch> <86r68lb3uc.fsf@blue.stonehenge.com> Message-ID: <1AFCFA7E-643C-4A41-BF43-D13AAA7FEB50@iam.unibe.ch> > Lukas> ... addValidatedForm: #( save cancel done ) > > Lukas> Now you need to add #done as an extension method to > Lukas> MAContainerComponent to #answer: something meaningful. It's > not that > Lukas> nice, but it works ;-) > > This is where I had wished that the form stuff would be pluggable > instead of > only being able to be extended by subclassing. I am not using subclassing. I am talking about pluggability through method extensions ;-) > Did you consider a pluggable > strategy here, and rejected it for some other reason? The notion of > subclassing just to get a slight variation still tweaks me somehow. > Maybe > it's just a quirk I need to get over... :) One of the design goals of Magritte was, not to have blocks everywhere. I guess in this case that got a bit too far. It would make sense to tell the decoration: aFormDecoration on: 'Done' do: [ :answer | self inform: 'done' ] I will have a look later tonight if that could be done easily. Or maybe you are faster to implement something like this? Lukas -- Lukas Renggli http://www.lukas-renggli.ch From renggli at iam.unibe.ch Tue Aug 19 16:32:55 2008 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Tue, 19 Aug 2008 16:32:55 +0200 Subject: Broken Pier admin user In-Reply-To: References: <0AA84503-817F-4E18-A23E-07A356E7C49C@iam.unibe.ch> Message-ID: <9DBB4429-0300-443E-B987-CD79C32D1DAC@iam.unibe.ch> > is there a maximum number a characters I can have in the password? I don't think so. Pier only stores the SHA hash anyway. So you could put 1 MB worth of password characters and SHA would (loss) compress it down to a couple of bytes. Lukas On Aug 19, 2008, at 16:25 , David Zmick wrote: > > > On Tue, Aug 19, 2008 at 9:23 AM, David Zmick > wrote: > thanks! > here is what I executed in a workspace: > | x | > x := PRKernel instanceNamed: 'Pier'. > x adminUser password: 'foo' > > > On Tue, Aug 19, 2008 at 2:21 AM, Lukas Renggli > wrote: > > > I appear to have broken my admin user in pier somehow, how do I > > > change the password from inside of squeak? > > > > Inspect "PRKernel instances". > > > > Then look for instances of PUUser. > > > > self password: 'foo'. > > > > Or you can use the System users components (I think it's a default > > one). The best is probably to have an admin page where you put all > > system components. > > Heh, but these are disabled if you are not logged in as admin ;-) > > Lukas > > -- > Lukas Renggli > http://www.lukas-renggli.ch > > > _______________________________________________ > 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 > > > > -- > 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 -- Lukas Renggli http://www.lukas-renggli.ch From dz0004455 at gmail.com Tue Aug 19 16:36:23 2008 From: dz0004455 at gmail.com (David Zmick) Date: Tue, 19 Aug 2008 09:36:23 -0500 Subject: Broken Pier admin user In-Reply-To: <9DBB4429-0300-443E-B987-CD79C32D1DAC@iam.unibe.ch> References: <0AA84503-817F-4E18-A23E-07A356E7C49C@iam.unibe.ch> <9DBB4429-0300-443E-B987-CD79C32D1DAC@iam.unibe.ch> Message-ID: ok, thanks again On Tue, Aug 19, 2008 at 9:32 AM, Lukas Renggli wrote: > > is there a maximum number a characters I can have in the password? > > > I don't think so. > > Pier only stores the SHA hash anyway. So you could put 1 MB worth of > password characters and SHA would (loss) compress it down to a couple > of bytes. > > Lukas > > > On Aug 19, 2008, at 16:25 , David Zmick wrote: > > > > > > > On Tue, Aug 19, 2008 at 9:23 AM, David Zmick > > wrote: > > thanks! > > here is what I executed in a workspace: > > | x | > > x := PRKernel instanceNamed: 'Pier'. > > x adminUser password: 'foo' > > > > > > On Tue, Aug 19, 2008 at 2:21 AM, Lukas Renggli > > wrote: > > > > I appear to have broken my admin user in pier somehow, how do I > > > > change the password from inside of squeak? > > > > > > Inspect "PRKernel instances". > > > > > > Then look for instances of PUUser. > > > > > > self password: 'foo'. > > > > > > Or you can use the System users components (I think it's a default > > > one). The best is probably to have an admin page where you put all > > > system components. > > > > Heh, but these are disabled if you are not logged in as admin ;-) > > > > Lukas > > > > -- > > Lukas Renggli > > http://www.lukas-renggli.ch > > > > > > _______________________________________________ > > 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 > > > > > > > > -- > > 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 > > -- > Lukas Renggli > http://www.lukas-renggli.ch > > > _______________________________________________ > 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/20080819/d7b6c322/attachment.html From merlyn at stonehenge.com Tue Aug 19 16:45:38 2008 From: merlyn at stonehenge.com (Randal L. Schwartz) Date: Tue, 19 Aug 2008 07:45:38 -0700 Subject: determining "save" or "cancel" status on #rendered Magritte component... In-Reply-To: <1AFCFA7E-643C-4A41-BF43-D13AAA7FEB50@iam.unibe.ch> (Lukas Renggli's message of "Tue, 19 Aug 2008 16:29:22 +0200") References: <5153AE5A-7385-4273-87B7-7BA8CEFB382F@ca-flower.com> <12E48C43-751B-45D9-A38D-52CF539D38CA@iam.unibe.ch> <86r68lb3uc.fsf@blue.stonehenge.com> <1AFCFA7E-643C-4A41-BF43-D13AAA7FEB50@iam.unibe.ch> Message-ID: <86zln99i7h.fsf@blue.stonehenge.com> >>>>> "Lukas" == Lukas Renggli writes: Lukas> One of the design goals of Magritte was, not to have blocks Lukas> everywhere. I guess in this case that got a bit too far. It would make Lukas> sense to tell the decoration: Lukas> aFormDecoration Lukas> on: 'Done' do: [ :answer | self inform: 'done' ] This looks great! Exactly what I had in mind. Lukas> I will have a look later tonight if that could be done easily. Or Lukas> maybe you are faster to implement something like this? I won't get to it today, if that's what you're hoping. :) But I'll be happy to use it once it comes out. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion From rickf at ca-flower.com Tue Aug 19 17:36:52 2008 From: rickf at ca-flower.com (Rick Flower) Date: Tue, 19 Aug 2008 08:36:52 -0700 (PDT) Subject: determining "save" or "cancel" status on #rendered Magritte component... In-Reply-To: <4DC9F80D-F81C-434B-9640-29FB70D9661D@iam.unibe.ch> References: <5153AE5A-7385-4273-87B7-7BA8CEFB382F@ca-flower.com> <12E48C43-751B-45D9-A38D-52CF539D38CA@iam.unibe.ch> <1FDFD1BD-C1A3-4111-BE84-82959896216C@ca-flower.com> <4DC9F80D-F81C-434B-9640-29FB70D9661D@iam.unibe.ch> Message-ID: <8619.157.127.124.15.1219160212.squirrel@www.ca-flower.com> On Tue, August 19, 2008 7:21 am, Lukas Renggli wrote: >>> Btw, #save answers the changed model and #cancel answers nil. >> >> I saw that onAnswer was called for the cancel action but didn't get >> a breakpoint >> in the onAnswer block when 'save' was selected.. Do I just assume >> that if my >> block isn't triggered that 'save' was selected? > > I guess this has to do with the other bugs you had in your code ;-) > > An #onAnswer: block like this should actually work: > > [ :answer | > answer isNil > ifTrue: [ self inform: 'You cancelled editing' ] > ifFalse: [ self inform: 'The object was saved: ' , answer > printString ] ] Thanks Lukas! I will modify the code tonight to 'fix' the bugs you mentioned.. I had code like that last night but everytime I hit the 'save' or 'cencel' button, Seaside could complain about my #children being messed up or misconfigured. I had created a #children method on my above MSWLI_Contact object in addition to my main application class that also answers #children with about a dozen or so classes listed -- do I need to only have a single #children in my entire object hierarchy or am I allowed to have some objects add children at run-time? When I had the runtime variant initially set to return 'nil' for children at startup and then changed to return a real value once a user logged in, that was still failing the children test w/ Seaside.. Anyway, I know I've got a bug but am not exactly sure how to make Seaside happy. One of my permutations last night was rendering empty Magritte forms for some reason -- never figured that one out but it was related to building my #component inst variable at the wrong time apparently.. Anyway, I'm trying to find the happy medium so I can continue on with more productive work! Thanks for all the help you all! -- Rick From dtrussardi at tiscali.it Tue Aug 19 17:44:48 2008 From: dtrussardi at tiscali.it (Dario Trussardi) Date: Tue, 19 Aug 2008 17:44:48 +0200 Subject: Memento don't work on my component when clic on cancel button Message-ID: <009f01c90212$87f3f9b0$0301a8c0@istcamuno> Hi All, i work with Squeak and Magritte. I have create my personal component "SUAddress" subclass of MAElementComponent. And define the relative MAAddressDescription subclass of MAElementDescription with methods: kind ^ OrderedCollection defaultComponentClasses ^Array with: SUAddress After i define in TestClass with: descriptionAddress based on MAAddressDescription on addressData and descriptionText based on MAStringDescription on textData. Now when call: anTestClass asComponent addValidateForm; addMessage: 'message' ; yourself all work fine. The problem is when in the form i do change on my component and after i clic the cancel button. In this case the addressData result update to the change do in the form, and not to the last correct state. The textData in this case work fine. Where i wrong ? Any pointers would be greatly appreciated! Thanks! Dario -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20080819/3f9c3544/attachment-0001.html From renggli at iam.unibe.ch Tue Aug 19 23:04:40 2008 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Tue, 19 Aug 2008 23:04:40 +0200 Subject: determining "save" or "cancel" status on #rendered Magritte component... In-Reply-To: <86zln99i7h.fsf@blue.stonehenge.com> References: <5153AE5A-7385-4273-87B7-7BA8CEFB382F@ca-flower.com> <12E48C43-751B-45D9-A38D-52CF539D38CA@iam.unibe.ch> <86r68lb3uc.fsf@blue.stonehenge.com> <1AFCFA7E-643C-4A41-BF43-D13AAA7FEB50@iam.unibe.ch> <86zln99i7h.fsf@blue.stonehenge.com> Message-ID: <8B140B2F-034C-4861-B9A0-6F4E11750B3C@iam.unibe.ch> On Aug 19, 2008, at 16:45 , Randal L. Schwartz wrote: >>>>>> "Lukas" == Lukas Renggli writes: > > Lukas> One of the design goals of Magritte was, not to have blocks > Lukas> everywhere. I guess in this case that got a bit too far. It > would make > Lukas> sense to tell the decoration: > > Lukas> aFormDecoration > Lukas> on: 'Done' do: [ :answer | self inform: 'done' ] > > This looks great! Exactly what I had in mind. In Magritte-Seaside.lr.273 you can write something like this (not that I suggest that you should do it): aModel asComponent addValidatedForm: (Array with: #save -> 'Yes' with: [ :component | component validate ifFalse: [ component inform: 'There is a problem' ] ifTrue: [ (component confirm: 'Save?') ifTrue: [ component save ]. (component confirm: 'Answer?') ifTrue: [ component answer: component model ] ] ] -> 'Maybe' with: #cancel -> 'No'); yourself I haven't tested it too much, at least it shouldn't break existing code. There is obviously a culprit. When you use a block you have to do everything by yourself. Validation, saving, reset, answering, etc. The example above demonstrates pretty much everything you might want to do. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From renggli at iam.unibe.ch Tue Aug 19 23:17:19 2008 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Tue, 19 Aug 2008 23:17:19 +0200 Subject: Memento don't work on my component when clic on cancel button In-Reply-To: <009f01c90212$87f3f9b0$0301a8c0@istcamuno> References: <009f01c90212$87f3f9b0$0301a8c0@istcamuno> Message-ID: <293D48B7-7397-47E5-9304-C820DF0549EA@iam.unibe.ch> > In this case the addressData result update to the change do in the > form, and not to the last correct state. > The textData in this case work fine. Since you are working with composed objects, I guess your issues come from the Mementos that cache the state of the objects edited. Though, it is hard to tell from your mail what the actual problem is. Lukas -- Lukas Renggli http://www.lukas-renggli.ch From rickf at ca-flower.com Wed Aug 20 07:55:00 2008 From: rickf at ca-flower.com (Richard E. Flower) Date: Tue, 19 Aug 2008 22:55:00 -0700 Subject: Where can I find the definition for #copyForRealMemento? Message-ID: <190DAA30-2739-46AB-8A51-9041A78F5BA7@ca-flower.com> It appears that this method should live in the object (or superclass) that is to be Magritte rendered.. I can't find it in my Squeak image but it is referenced by #pull as seen below.. Up to now I thought I was using the RealMemento class as specified by #mementoClass but just found that it needs to be defined on the instance side not the class side so my #mementoClass method was not being called until now.. Unfortunately now I get the DNU as indicated above.. MARealMemento>>pull "Utitlity method to copies the model into a cache populating nil values with the defaults specified by the descriptions" | result | result := self model copyForRealMemento. result description do: [ :each | (result readUsing: each) ifNil: [ result update: each default using: each ]. ]. ^ result From sean at monkeysnatchbanana.com Wed Aug 20 14:50:42 2008 From: sean at monkeysnatchbanana.com (Sean Allen) Date: Wed, 20 Aug 2008 08:50:42 -0400 Subject: the idiot's guide to pier Message-ID: I'm feeling like I need one. I've been playing around with Pier for a couple days and well... I don't feel much further along when than when I started. Basic things like... how you change the style, theme, layout whatever you want to call it are simply a mystery to me. Is there a 'these are the must know basics' guide? I went back to sometime last year in the archives, tried googling, read stuff on the wiki and off of Lukas's site but still feel utterly lost. I see there is a PRPierFrame that everything else is inside. Do I remove the children from it, rearrange them? Write my own? That is just one basic thing I'm not grasping.. Any links to getting started basics would be greatly appreciated. in the meantime, back to trying to figure this out. Thanks. Sean From cdrick65 at gmail.com Wed Aug 20 15:06:00 2008 From: cdrick65 at gmail.com (cdrick) Date: Wed, 20 Aug 2008 15:06:00 +0200 Subject: the idiot's guide to pier In-Reply-To: References: Message-ID: Hi, 2008/8/20 Sean Allen : > I'm feeling like I need one. > > I've been playing around with Pier for a couple days and well... I > don't feel much further along when than when I started. > Basic things like... > > how you change the style, theme, layout whatever you want to call it > are simply a mystery to me. I think your concern is only the aspect of Pier. Out of the box, it's done by a kind of template page called that can be redefined. There, once logged as Admin (admin:pier by default) I guess, you can edit this page: http://localhost:8888/seaside/pier/environment In view mode, you should have displayed: Environment Unable to fully display recursive composition. Once in edit mode, you'll see some html but only the div parts. It's actually a classic Pier page, where you can add components like heading, counter, blog archives, etc... But to structure it, you should have div's composition, so a template that coupled with CSS will give you the look you want. It's not that easy to do but think of it as a classic wiki pages with some inner html elements for layout. Mine looks like:
+title+
When *NARS>http://http://nars.wang.googlepages.com/* meets Smalltalk, *Squeak>http://www.squeak.org* and *Seaside>http://www.seaside.st*
\-- *a GSoC'08 Squeak project>http://code.google.com/soc/2008/squeak/about.html* \--
+children+
+contents+
It's not a very good one as I should use a caption component (or disclaimer) instead of inlining it but it show you the basic picture. Id like span-9 spann-24 last, as convenience css brought by the blueprint css framework (which is default in Pier). children, contents sidebar are seaside pier default presentation component but any seaside components can be used. hth, C?drick > > Is there a 'these are the must know basics' guide? > > I went back to sometime last year in the archives, tried googling, > read stuff on the wiki and off of Lukas's site > but still feel utterly lost. > > I see there is a PRPierFrame that everything else is inside. Do I > remove the children > from it, rearrange them? Write my own? > > That is just one basic thing I'm not grasping.. > > Any links to getting started basics would be greatly appreciated. in > the meantime, back > to trying to figure this out. > > Thanks. > Sean > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > From ducasse at iam.unibe.ch Wed Aug 20 16:43:38 2008 From: ducasse at iam.unibe.ch (=?ISO-8859-1?Q?st=E9phane_ducasse?=) Date: Wed, 20 Aug 2008 16:43:38 +0200 Subject: the idiot's guide to pier In-Reply-To: References: Message-ID: you are not the only one :) Stef On Aug 20, 2008, at 2:50 PM, Sean Allen wrote: > I'm feeling like I need one. > > I've been playing around with Pier for a couple days and well... I > don't feel much further along when than when I started. > Basic things like... > > how you change the style, theme, layout whatever you want to call it > are simply a mystery to me. > > Is there a 'these are the must know basics' guide? > > I went back to sometime last year in the archives, tried googling, > read stuff on the wiki and off of Lukas's site > but still feel utterly lost. > > I see there is a PRPierFrame that everything else is inside. Do I > remove the children > from it, rearrange them? Write my own? > > That is just one basic thing I'm not grasping.. > > Any links to getting started basics would be greatly appreciated. in > the meantime, back > to trying to figure this out. > > Thanks. > Sean > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki From cdrick65 at gmail.com Wed Aug 20 17:33:20 2008 From: cdrick65 at gmail.com (cdrick) Date: Wed, 20 Aug 2008 17:33:20 +0200 Subject: the idiot's guide to pier In-Reply-To: References: Message-ID: 2008/8/20 st?phane ducasse : > you are not the only one :) > > Stef > I find the difficulty of Pier is its... simplicity, uniformity... A bit like Smalltalk. All is a structure (wich is meta-described etc...). It's hard to have a user guide as Pier is more powerful than a classic CMS or wiki. We could have some but it will inevitably restricts the usage possibilities of Pier. This said, I think we could agree on some directions to bring help under the form of tutorials etc..: How-To use Pier (user) 1-wiki syntax How-To use Pier (admin) 2-admin/user right management 3-admin content mamangment (rules) 4-edit versus settings (I think this is important) 5-How to integrate seaside component (easy for a counter, more complicated when an apps that require its own session...) 6-How-to change the layout, eventually use template here but his is not "out the box". I think Keith did some work in this area but I didn't really used it How-To Develop components for Pier 7-How to interact with Structure, persistency, logs 8-How to create structure (different of a seaside component...) ... This is just what I'll find useful as documentation... but no time to help there right now. Also, I think we need to have an admin page per defaut (that will ease people management of the Pier site...) - System managements (user group system update google analytics). Maybe I can find some time in the next days to do such a page. I can evetually add a default blog page (with its own environment to display blog related component). What do you think Lukas ? This is kind of restricting, but that could be a better default setup for newcomers ? Maybe there's a need for a "Pier distribution" called... moor ;) Cheers, C?drick From dz0004455 at gmail.com Wed Aug 20 17:45:45 2008 From: dz0004455 at gmail.com (David Zmick) Date: Wed, 20 Aug 2008 10:45:45 -0500 Subject: the idiot's guide to pier In-Reply-To: References: Message-ID: I'm working on moving some templates from http://andreasviklund.com/ over to pier, and I will make file libraries for them that you can add to your pier apps. I would really like to write a "idiots guide"(mind if I use that title if I ever get around to it?). I have lots of big ideas... On Wed, Aug 20, 2008 at 10:33 AM, cdrick wrote: > 2008/8/20 st?phane ducasse : > > you are not the only one :) > > > > Stef > > > > I find the difficulty of Pier is its... simplicity, uniformity... A > bit like Smalltalk. All is a structure (wich is meta-described > etc...). It's hard to have a user guide as Pier is more powerful than > a classic CMS or wiki. We could have some but it will inevitably > restricts the usage possibilities of Pier. This said, I think we > could agree on some directions to bring help under the form of > tutorials etc..: > > > How-To use Pier (user) > 1-wiki syntax > > How-To use Pier (admin) > 2-admin/user right management > 3-admin content mamangment (rules) > 4-edit versus settings (I think this is important) > 5-How to integrate seaside component (easy for a counter, more > complicated when an apps that require its own session...) > 6-How-to change the layout, eventually use template here but his is > not "out the box". I think Keith did some work in this area but I > didn't really used it > > How-To Develop components for Pier > 7-How to interact with Structure, persistency, logs > 8-How to create structure (different of a seaside component...) > ... > > This is just what I'll find useful as documentation... but no time to > help there right now. > > Also, I think we need to have an admin page per defaut (that will ease > people management of the Pier site...) - System managements (user > group system update google analytics). Maybe I can find some time in > the next days to do such a page. I can evetually add a default blog > page (with its own environment to display blog related component). > What do you think Lukas ? This is kind of restricting, but that could > be a better default setup for newcomers ? Maybe there's a need for a > "Pier distribution" called... moor ;) > > Cheers, > > C?drick > > > _______________________________________________ > 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/20080820/d9b61496/attachment.html From sean at monkeysnatchbanana.com Wed Aug 20 18:09:01 2008 From: sean at monkeysnatchbanana.com (Sean Allen) Date: Wed, 20 Aug 2008 12:09:01 -0400 Subject: the idiot's guide to pier In-Reply-To: References: Message-ID: Well, I think I can some this up as a 'wholly disheartening' thread. I've tried using the small wiki archives but they arent exactly easy to use or find info in and then when you do find something, it can be quite old and you arent sure if the information is dated. So what is the best way to get this kind of info? Once I get it, what is best way to contribute it back so that FAQs and documentation are meaningful to people approaching Pier? I'm convinced given the direction we are taking our websites that Pier needs to be an integral part, I'm just rather depressed that I'm going to have to expend a ton of energy to figure out things like 'o the environment, go there and edit, that is how you can the layout.' I'm having mental nightmares that even though the seaside integration is perfect for us that it will be lost in what appears to be a massive learning curve. Any pier experts available for contract work, working through initial setup w/ me? Doing remote teaching of the ins and outs? From dz0004455 at gmail.com Wed Aug 20 18:19:01 2008 From: dz0004455 at gmail.com (David Zmick) Date: Wed, 20 Aug 2008 11:19:01 -0500 Subject: the idiot's guide to pier In-Reply-To: References: Message-ID: There isnt info, if you need help with anything specific, ask us, I ma working on documentation, because I recently had the same problem you are having, but, with the help of the community, I have gotten it figured out,, and I really like it! Just ask, answers will come :) On Wed, Aug 20, 2008 at 11:09 AM, Sean Allen wrote: > Well, I think I can some this up as a 'wholly disheartening' thread. > > I've tried using the small wiki archives but they arent exactly easy > to use or find info in > and then when you do find something, it can be quite old and you arent > sure if the information > is dated. > > So what is the best way to get this kind of info? > Once I get it, what is best way to contribute it back so that FAQs and > documentation are meaningful > to people approaching Pier? > > I'm convinced given the direction we are taking our websites that Pier > needs to be an integral > part, I'm just rather depressed that I'm going to have to expend a ton > of energy to figure out things > like 'o the environment, go there and edit, that is how you can the > layout.' I'm having mental nightmares > that even though the seaside integration is perfect for us that it > will be lost in what appears > to be a massive learning curve. Any pier experts available for > contract work, working through > initial setup w/ me? Doing remote teaching of the ins and outs? > > > > > > _______________________________________________ > 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/20080820/dbfe0a84/attachment.html From dz0004455 at gmail.com Wed Aug 20 18:29:58 2008 From: dz0004455 at gmail.com (David Zmick) Date: Wed, 20 Aug 2008 11:29:58 -0500 Subject: the idiot's guide to pier In-Reply-To: References: Message-ID: Look at my site http://w337.uni.cc that I am working on right now, ask me how to do anything i did On Wed, Aug 20, 2008 at 11:19 AM, David Zmick wrote: > There isnt info, if you need help with anything specific, ask us, I ma > working on documentation, because I recently had the same problem you are > having, but, with the help of the community, I have gotten it figured out,, > and I really like it! Just ask, answers will come :) > > > On Wed, Aug 20, 2008 at 11:09 AM, Sean Allen wrote: > >> Well, I think I can some this up as a 'wholly disheartening' thread. >> >> I've tried using the small wiki archives but they arent exactly easy >> to use or find info in >> and then when you do find something, it can be quite old and you arent >> sure if the information >> is dated. >> >> So what is the best way to get this kind of info? >> Once I get it, what is best way to contribute it back so that FAQs and >> documentation are meaningful >> to people approaching Pier? >> >> I'm convinced given the direction we are taking our websites that Pier >> needs to be an integral >> part, I'm just rather depressed that I'm going to have to expend a ton >> of energy to figure out things >> like 'o the environment, go there and edit, that is how you can the >> layout.' I'm having mental nightmares >> that even though the seaside integration is perfect for us that it >> will be lost in what appears >> to be a massive learning curve. Any pier experts available for >> contract work, working through >> initial setup w/ me? Doing remote teaching of the ins and outs? >> >> >> >> >> >> _______________________________________________ >> 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 > -- 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/20080820/e4b22602/attachment-0001.html From dz0004455 at gmail.com Wed Aug 20 18:56:36 2008 From: dz0004455 at gmail.com (David Zmick) Date: Wed, 20 Aug 2008 11:56:36 -0500 Subject: Pier Templates Message-ID: I am going to distribute different file libraries from my site( http://w337.uni.cc) that contain css for different Pier looks. It seems to me, as I was recently a Pier newbie, one of the things that could scare me away was how hard it was to change the look of Pier, and I think this will help. Could someone tell me how to set up a Monticello HTTP repository with apache so I can host some of theses? -- 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/20080820/4121f6b9/attachment.html From dz0004455 at gmail.com Wed Aug 20 19:01:24 2008 From: dz0004455 at gmail.com (David Zmick) Date: Wed, 20 Aug 2008 12:01:24 -0500 Subject: [pier] pier shout Message-ID: how do i use the pier shout package i installed? -- 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/20080820/f8237deb/attachment.html From girba at iam.unibe.ch Wed Aug 20 19:09:35 2008 From: girba at iam.unibe.ch (Tudor Girba) Date: Wed, 20 Aug 2008 19:09:35 +0200 Subject: the idiot's guide to pier In-Reply-To: References: Message-ID: <5B707ABF-8B25-43CE-96EE-DBD3764F22C5@iam.unibe.ch> Hi, I will give a 1h tutorial next week at ESUG 2008 on how to use Pier. The presentation will be publicly available (after I finish it :)) and I will also try to also provide some complementary material. Cheers, Doru On Aug 20, 2008, at 6:29 PM, David Zmick wrote: > Look at my site http://w337.uni.cc that I am working on right now, > ask me how to do anything i did > > On Wed, Aug 20, 2008 at 11:19 AM, David Zmick > wrote: > There isnt info, if you need help with anything specific, ask us, I > ma working on documentation, because I recently had the same problem > you are having, but, with the help of the community, I have gotten > it figured out,, and I really like it! Just ask, answers will come :) > > > On Wed, Aug 20, 2008 at 11:09 AM, Sean Allen > wrote: > Well, I think I can some this up as a 'wholly disheartening' thread. > > I've tried using the small wiki archives but they arent exactly easy > to use or find info in > and then when you do find something, it can be quite old and you arent > sure if the information > is dated. > > So what is the best way to get this kind of info? > Once I get it, what is best way to contribute it back so that FAQs and > documentation are meaningful > to people approaching Pier? > > I'm convinced given the direction we are taking our websites that Pier > needs to be an integral > part, I'm just rather depressed that I'm going to have to expend a ton > of energy to figure out things > like 'o the environment, go there and edit, that is how you can the > layout.' I'm having mental nightmares > that even though the seaside integration is perfect for us that it > will be lost in what appears > to be a massive learning curve. Any pier experts available for > contract work, working through > initial setup w/ me? Doing remote teaching of the ins and outs? > > > > > > _______________________________________________ > 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 > > > > -- > 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 -- www.tudorgirba.com www.tudorgirba.com/blog "Problem solving efficiency grows with the abstractness level of problem understanding." From dz0004455 at gmail.com Wed Aug 20 19:12:17 2008 From: dz0004455 at gmail.com (David Zmick) Date: Wed, 20 Aug 2008 12:12:17 -0500 Subject: the idiot's guide to pier In-Reply-To: <5B707ABF-8B25-43CE-96EE-DBD3764F22C5@iam.unibe.ch> References: <5B707ABF-8B25-43CE-96EE-DBD3764F22C5@iam.unibe.ch> Message-ID: I am working on something to make pier theming easier http://w337.uni.cc/Projects/Pier/templates On Wed, Aug 20, 2008 at 12:09 PM, Tudor Girba wrote: > Hi, > > I will give a 1h tutorial next week at ESUG 2008 on how to use Pier. > > The presentation will be publicly available (after I finish it :)) and > I will also try to also provide some complementary material. > > Cheers, > Doru > > > On Aug 20, 2008, at 6:29 PM, David Zmick wrote: > > > Look at my site http://w337.uni.cc that I am working on right now, > > ask me how to do anything i did > > > > On Wed, Aug 20, 2008 at 11:19 AM, David Zmick > > wrote: > > There isnt info, if you need help with anything specific, ask us, I > > ma working on documentation, because I recently had the same problem > > you are having, but, with the help of the community, I have gotten > > it figured out,, and I really like it! Just ask, answers will come :) > > > > > > On Wed, Aug 20, 2008 at 11:09 AM, Sean Allen < > sean at monkeysnatchbanana.com > > > wrote: > > Well, I think I can some this up as a 'wholly disheartening' thread. > > > > I've tried using the small wiki archives but they arent exactly easy > > to use or find info in > > and then when you do find something, it can be quite old and you arent > > sure if the information > > is dated. > > > > So what is the best way to get this kind of info? > > Once I get it, what is best way to contribute it back so that FAQs and > > documentation are meaningful > > to people approaching Pier? > > > > I'm convinced given the direction we are taking our websites that Pier > > needs to be an integral > > part, I'm just rather depressed that I'm going to have to expend a ton > > of energy to figure out things > > like 'o the environment, go there and edit, that is how you can the > > layout.' I'm having mental nightmares > > that even though the seaside integration is perfect for us that it > > will be lost in what appears > > to be a massive learning curve. Any pier experts available for > > contract work, working through > > initial setup w/ me? Doing remote teaching of the ins and outs? > > > > > > > > > > > > _______________________________________________ > > 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 > > > > > > > > -- > > 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 > > -- > www.tudorgirba.com > www.tudorgirba.com/blog > > "Problem solving efficiency grows with the abstractness level of > problem understanding." > > > > _______________________________________________ > 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/20080820/6c0f0859/attachment.html From renggli at iam.unibe.ch Wed Aug 20 19:15:08 2008 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Wed, 20 Aug 2008 19:15:08 +0200 Subject: [pier] pier shout In-Reply-To: References: Message-ID: <45BB56EE-BA68-4FE0-8AA2-3F62C07B3DDA@iam.unibe.ch> > how do i use the pier shout package i installed? ==self assert: 2 + 3 = 5 This should generate XHTML that is syntax highlighted. Make sure that you have Shout loaded and that you added SPHighlightedStyle (for the styles) to the Pier Seaside Configuration. Cheers, Lukas > > > -- > 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 -- Lukas Renggli http://www.lukas-renggli.ch From dz0004455 at gmail.com Wed Aug 20 21:42:13 2008 From: dz0004455 at gmail.com (David Zmick) Date: Wed, 20 Aug 2008 14:42:13 -0500 Subject: [pier] Common Pier Questions Message-ID: What are the most common questions about Pier. I am trying to set up a site to with tutorials, and Pier resources, and I want to know which questions I should answer first. The site is at http://w337.uni.cc/Projects/Pier -- 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/20080820/6f40fb41/attachment-0001.html From sean at monkeysnatchbanana.com Wed Aug 20 21:53:20 2008 From: sean at monkeysnatchbanana.com (Sean Allen) Date: Wed, 20 Aug 2008 15:53:20 -0400 Subject: [pier] Common Pier Questions In-Reply-To: References: Message-ID: O my, let me start with things that I havent easily found answers to so far: 1. ( since answered ) how does one change the layout? 2. ( found buried in archives ) how you set up public/admin interfaces? 3. what on earth are all these components? i've been sticking them in and i dont know what 99% of them are or what they are good for. like the html compontent. huh? it isnt very obvious. 4. what is the general architecture? i think many questions i have could be answered if i understand how things fit together. right now its 48+ hours of poking around the interface and the code with no idea what i am even looking for. its very discouraging and feels like i could spend an eternity before i understand the basic architecture and can then really start to understand everything else. come to think of it. #4 is the big one. i have no idea how everything interoperates, what is lurking just beneath the hood so, its very hard even for the motivated adopter ( or at least this one ) not to get really discouraged. On Aug 20, 2008, at 3:42 PM, David Zmick wrote: > What are the most common questions about Pier. I am trying to set > up a site to with tutorials, and Pier resources, and I want to know > which questions I should answer first. > The site is at http://w337.uni.cc/Projects/Pier > > -- > 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20080820/2af3897b/attachment.html From dz0004455 at gmail.com Wed Aug 20 22:07:35 2008 From: dz0004455 at gmail.com (David Zmick) Date: Wed, 20 Aug 2008 15:07:35 -0500 Subject: [pier] Common Pier Questions In-Reply-To: References: Message-ID: ok, architecture, like some kind of, here is Pier, now lets make it do something, an "idiots guide"! On Wed, Aug 20, 2008 at 2:53 PM, Sean Allen wrote: > O my, let me start with things that I havent easily found answers to so > far: > 1. ( since answered ) how does one change the layout? > 2. ( found buried in archives ) how you set up public/admin interfaces? > 3. what on earth are all these components? i've been sticking them in and i > dont know what 99% of them are or what they are good for. > like the html compontent. huh? it isnt very obvious. > 4. what is the general architecture? i think many questions i have could be > answered if i understand how things fit together. > right now its 48+ hours of poking around the interface and the code > with no idea what i am even looking for. its very discouraging and > feels like i could spend an eternity before i understand the basic > architecture and can then really start to understand everything else. > > come to think of it. > > #4 is the big one. > > i have no idea how everything interoperates, what is lurking just beneath > the hood so, its very hard even for the motivated adopter ( or at least this > one ) > not to get really discouraged. > > On Aug 20, 2008, at 3:42 PM, David Zmick wrote: > > What are the most common questions about Pier. I am trying to set up a > site to with tutorials, and Pier resources, and I want to know which > questions I should answer first. > The site is at http://w337.uni.cc/Projects/Pier > > -- > 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/20080820/f6446ffa/attachment.html From mykdavies at gmail.com Wed Aug 20 22:35:32 2008 From: mykdavies at gmail.com (Michael Davies) Date: Wed, 20 Aug 2008 22:35:32 +0200 Subject: [pier] Common Pier Questions In-Reply-To: References: Message-ID: On Wed, Aug 20, 2008 at 9:42 PM, David Zmick wrote: > What are the most common questions about Pier. I am trying to set up a site > to with tutorials, and Pier resources, and I want to know which questions I > should answer first. Nice idea, and very helpful of you. I've been thinking about this since Lukas mentioned his faq last week and here are some questions that I've come up with based on my experiences while getting to grips with Pier: - a brief explanation of the key concepts of Pier and their relationships (kernel, structures, contexts, commands, main widgets, users, groups etc) -- this is the same point Sean makes. - how do I add a page - manually, and programmatically? - how do I change the security of a page - manually and programmatically? - how do I add/delete/change a user - manually and programmatically? - how do I change a page's security - manually and programmatically? - how do I write a link to another page in the same kernel - manually and programmatically? - how do I write a link that when clicked will execute a command against another page - manually and programmatically? - how do I change the admin password when I've forgotten it? (I know that you have the answer for that one :-) I've got a small application that does a lot of these things programmatically (creates a new Pier kernel, adds pages to it, allows users to register, creates pages for them, and amends the security on those pages), I went through a very steep learning curve while getting to that point, so it may be very useful for others getting started with Pier. There's a couple of bits of code I'd want to remove, but I'm happy to publish the rest of it. Cheers, Michael From dz0004455 at gmail.com Wed Aug 20 22:48:57 2008 From: dz0004455 at gmail.com (David Zmick) Date: Wed, 20 Aug 2008 15:48:57 -0500 Subject: [pier] Common Pier Questions In-Reply-To: References: Message-ID: Ok, My tutorial is going to be about making a basic pier app, for yourself, like my page. I am going to try to stay away from more complicated things. Just a basic getting started, I hope. On Wed, Aug 20, 2008 at 3:35 PM, Michael Davies wrote: > On Wed, Aug 20, 2008 at 9:42 PM, David Zmick wrote: > > What are the most common questions about Pier. I am trying to set up a > site > > to with tutorials, and Pier resources, and I want to know which questions > I > > should answer first. > > Nice idea, and very helpful of you. > > I've been thinking about this since Lukas mentioned his faq last week > and here are some questions that I've come up with based on my > experiences while getting to grips with Pier: > > - a brief explanation of the key concepts of Pier and their > relationships (kernel, structures, contexts, commands, main widgets, > users, groups etc) -- this is the same point Sean makes. > - how do I add a page - manually, and programmatically? > - how do I change the security of a page - manually and programmatically? > - how do I add/delete/change a user - manually and programmatically? > - how do I change a page's security - manually and programmatically? > - how do I write a link to another page in the same kernel - manually > and programmatically? > - how do I write a link that when clicked will execute a command > against another page - manually and programmatically? > - how do I change the admin password when I've forgotten it? (I know > that you have the answer for that one :-) > > I've got a small application that does a lot of these things > programmatically (creates a new Pier kernel, adds pages to it, allows > users to register, creates pages for them, and amends the security on > those pages), I went through a very steep learning curve while getting > to that point, so it may be very useful for others getting started > with Pier. There's a couple of bits of code I'd want to remove, but > I'm happy to publish the rest of it. > > Cheers, > Michael > > _______________________________________________ > 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/20080820/72c1d216/attachment.html From dz0004455 at gmail.com Wed Aug 20 22:50:21 2008 From: dz0004455 at gmail.com (David Zmick) Date: Wed, 20 Aug 2008 15:50:21 -0500 Subject: [pier] Common Pier Questions In-Reply-To: References: Message-ID: I can't add pages yet programmatically, or do anything programmatically for that matter, so that wont be in there. I would like to have something about Magma as well, but I can't figure that out either. On Wed, Aug 20, 2008 at 3:48 PM, David Zmick wrote: > Ok, My tutorial is going to be about making a basic pier app, for yourself, > like my page. I am going to try to stay away from more complicated things. > Just a basic getting started, I hope. > > > On Wed, Aug 20, 2008 at 3:35 PM, Michael Davies wrote: > >> On Wed, Aug 20, 2008 at 9:42 PM, David Zmick wrote: >> > What are the most common questions about Pier. I am trying to set up a >> site >> > to with tutorials, and Pier resources, and I want to know which >> questions I >> > should answer first. >> >> Nice idea, and very helpful of you. >> >> I've been thinking about this since Lukas mentioned his faq last week >> and here are some questions that I've come up with based on my >> experiences while getting to grips with Pier: >> >> - a brief explanation of the key concepts of Pier and their >> relationships (kernel, structures, contexts, commands, main widgets, >> users, groups etc) -- this is the same point Sean makes. >> - how do I add a page - manually, and programmatically? >> - how do I change the security of a page - manually and programmatically? >> - how do I add/delete/change a user - manually and programmatically? >> - how do I change a page's security - manually and programmatically? >> - how do I write a link to another page in the same kernel - manually >> and programmatically? >> - how do I write a link that when clicked will execute a command >> against another page - manually and programmatically? >> - how do I change the admin password when I've forgotten it? (I know >> that you have the answer for that one :-) >> >> I've got a small application that does a lot of these things >> programmatically (creates a new Pier kernel, adds pages to it, allows >> users to register, creates pages for them, and amends the security on >> those pages), I went through a very steep learning curve while getting >> to that point, so it may be very useful for others getting started >> with Pier. There's a couple of bits of code I'd want to remove, but >> I'm happy to publish the rest of it. >> >> Cheers, >> Michael >> >> _______________________________________________ >> 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 > -- 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/20080820/6854fd46/attachment-0001.html From cdrick65 at gmail.com Wed Aug 20 23:03:21 2008 From: cdrick65 at gmail.com (cdrick) Date: Wed, 20 Aug 2008 23:03:21 +0200 Subject: [pier] Common Pier Questions In-Reply-To: References: Message-ID: 2008/8/20 Sean Allen : > O my, let me start with things that I havent easily found answers to so far: > 1. ( since answered ) how does one change the layout? edit the environment pages. By default, there's only one here: http://localhost:8888/seaside/pier/environment Go there Log as admin Edit the page > 2. ( found buried in archives ) how you set up public/admin interfaces? Create an admin page Put several components (system, user, group) Make it only viewable only for admin's > 3. what on earth are all these components? i've been sticking them in and i > dont know what 99% of them are or what they are good for. > like the html compontent. huh? it isnt very obvious. Some are used internally by Pier. Some are intended for the mangement of Pier (like user...) Some are just seaside component that answer canBeRoot true ... Yes I also think this is something we could improve... :) > 4. what is the general architecture? i think many questions i have could be > answered if i understand how things fit together. > right now its 48+ hours of poking around the interface and the code > with no idea what i am even looking for. its very discouraging and > feels like i could spend an eternity before i understand the basic > architecture and can then really start to understand everything else. > come to think of it. It depends if you want to understant the architecture of Pier or the arhitecture of a Pier site, the kernel. The former is explained here: http://www.lukas-renggli.ch/smalltalk/pier under documentation and essentially http://www.iam.unibe.ch/~scg/Archive/Reports/Reng07c.pdf Did you look at the videos ? Did they help ? > #4 is the big one. > i have no idea how everything interoperates, what is lurking just beneath > the hood so, see there: http://www.iam.unibe.ch/~scg/Archive/Reports/Reng07c.pdf Cheers, C?drick > one ) > not to get really discouraged. > On Aug 20, 2008, at 3:42 PM, David Zmick wrote: > > What are the most common questions about Pier. I am trying to set up a site > to with tutorials, and Pier resources, and I want to know which questions I > should answer first. > The site is at http://w337.uni.cc/Projects/Pier > > -- > 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 > From cdrick65 at gmail.com Wed Aug 20 23:09:40 2008 From: cdrick65 at gmail.com (cdrick) Date: Wed, 20 Aug 2008 23:09:40 +0200 Subject: [pier] Common Pier Questions In-Reply-To: References: Message-ID: >> #4 is the big one. >> i have no idea how everything interoperates, what is lurking just beneath >> the hood so, > see there: > http://www.iam.unibe.ch/~scg/Archive/Reports/Reng07c.pdf better see here: http://www.iam.unibe.ch/~scg/Archive/Diploma/Reng06a.pdf page 23 to 42... (chapter 3). > Cheers, > C?drick > > From girba at iam.unibe.ch Wed Aug 20 23:12:02 2008 From: girba at iam.unibe.ch (Tudor Girba) Date: Wed, 20 Aug 2008 23:12:02 +0200 Subject: [pier] Common Pier Questions In-Reply-To: References: Message-ID: <97E11976-2EBA-4005-A9A8-C101E6513908@iam.unibe.ch> Better still, use the Edit Design command. If it is not loaded in your image, you can find it in the Pier-Design package from the pieraddons repository. The Edit Design (or Ctrl+D in Safari) command allows you to edit the environment and the css directly from the page your are at without requiring a change of the context to go to the actual environment page. Cheers, Doru On Aug 20, 2008, at 11:03 PM, cdrick wrote: >> 1. ( since answered ) how does one change the layout? > > edit the environment pages. By default, there's only one here: > http://localhost:8888/seaside/pier/environment > Go there > Log as admin > Edit the page > > -- www.tudorgirba.com www.tudorgirba.com/blog "There are no old things, there are only old ways of looking at them." From itsme213 at hotmail.com Wed Aug 20 19:34:44 2008 From: itsme213 at hotmail.com (itsme213) Date: Wed, 20 Aug 2008 12:34:44 -0500 Subject: Pier Templates References: Message-ID: "David Zmick" wrote > Could someone tell me how to set up a Monticello HTTP repository with > apache so I can host some of theses? ftp is easier (just set up a directory under ftp). Squeaksource is even easier specially for public stuff, and standard. - Sophie From sean at monkeysnatchbanana.com Thu Aug 21 00:43:53 2008 From: sean at monkeysnatchbanana.com (Sean Allen) Date: Wed, 20 Aug 2008 18:43:53 -0400 Subject: [pier] Common Pier Questions In-Reply-To: References: Message-ID: <4AA558A7-D812-4EF0-9C8B-301158CF5198@monkeysnatchbanana.com> >> >> 4. what is the general architecture? i think many questions i have >> could be >> answered if i understand how things fit together. >> right now its 48+ hours of poking around the interface and the >> code >> with no idea what i am even looking for. its very discouraging and >> feels like i could spend an eternity before i understand the >> basic >> architecture and can then really start to understand everything else. >> come to think of it. > > It depends if you want to understant the architecture of Pier or the > arhitecture of a Pier site, the kernel. The former is explained here: > http://www.lukas-renggli.ch/smalltalk/pier under documentation i dont think anything on lukas's site comes close to what i am talking about. at least not that i have seen. perhaps i missed something obvious. > > and essentially http://www.iam.unibe.ch/~scg/Archive/Reports/Reng07c.pdf now this. this is good stuff. this is going to help TONS. thank you very much for that pointer. ( and ya, say the http://www.iam.unibe.ch/~scg/Archive/Diploma/Reng06a.pdf update link ) > > > Did you look at the videos ? Did they help ? a little but not with this particular point. From sean at monkeysnatchbanana.com Thu Aug 21 00:45:03 2008 From: sean at monkeysnatchbanana.com (Sean Allen) Date: Wed, 20 Aug 2008 18:45:03 -0400 Subject: [pier] Common Pier Questions In-Reply-To: References: Message-ID: <3806CFFF-754C-4137-AABC-A194372A0703@monkeysnatchbanana.com> On Aug 20, 2008, at 5:03 PM, cdrick wrote: >> >> 3. what on earth are all these components? i've been sticking them >> in and i >> dont know what 99% of them are or what they are good for. >> like the html compontent. huh? it isnt very obvious. > Some are used internally by Pier. > Some are intended for the mangement of Pier (like user...) > Some are just seaside component that answer canBeRoot true > ... > Yes I also think this is something we could improve... :) Are there good resources to learn about these or should i just be happy knowing that in time it will come to me and it isnt important right now? That is the other thing with lack of documentation. You don't know what you need to know now and what can wait. From keith_hodges at yahoo.co.uk Thu Aug 21 02:15:27 2008 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Thu, 21 Aug 2008 01:15:27 +0100 Subject: Pier Templates In-Reply-To: References: Message-ID: <48ACB39F.7060606@yahoo.co.uk> Making Pier configurable is something I spent a bit of time on. Pier-Jetsam-Environment package (in pieraddons) moves everything that configures Pier into the PRFrame class heirarchy. You choose your chosen PRFrame class in the seaside/config app. The Frame class can be coded to provide default environments (which do not appear in the tree to users), template environments (when the user adds an environment it is initialised automatically), stylesheets, and loading of js libraries. The package comes with an Admin Frame which presents the same as the old pier admin. It has frames which can be subclassed to use blueprint css. It also has a frame which implements 7 common layout options that you can style and switch between. There is even a top level frame which allows subsections of the site to switch to use different frames. Keith From keith_hodges at yahoo.co.uk Thu Aug 21 02:32:39 2008 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Thu, 21 Aug 2008 01:32:39 +0100 Subject: Where can I find the definition for #copyForRealMemento? In-Reply-To: <190DAA30-2739-46AB-8A51-9041A78F5BA7@ca-flower.com> References: <190DAA30-2739-46AB-8A51-9041A78F5BA7@ca-flower.com> Message-ID: <48ACB7A7.4020509@yahoo.co.uk> Richard E. Flower wrote: > It appears that this method should live in the object (or superclass) > that is to be Magritte rendered.. I can't find it in my Squeak image > but it is referenced by #pull as seen below.. Up to now I thought I > was using the RealMemento class as specified by #mementoClass > but just found that it needs to be defined on the instance side not > the class side so my #mementoClass method was not being called > until now.. Unfortunately now I get the DNU as indicated above.. > > MARealMemento>>pull > "Utitlity method to copies the model into a cache populating nil > values with the defaults specified by the descriptions" > > | result | > > result := self model copyForRealMemento. > > result description do: [ :each | > (result readUsing: each) ifNil: [ result update: each default using: > each ]. > ]. > > ^ result > I have added it to Object in the Magritte-RealMemento package Keith From sean at monkeysnatchbanana.com Thu Aug 21 04:18:26 2008 From: sean at monkeysnatchbanana.com (Sean Allen) Date: Wed, 20 Aug 2008 22:18:26 -0400 Subject: Pier Templates In-Reply-To: <48ACB39F.7060606@yahoo.co.uk> References: <48ACB39F.7060606@yahoo.co.uk> Message-ID: <9A1645C1-B5ED-4142-8EA5-081F6CA278FA@monkeysnatchbanana.com> On Aug 20, 2008, at 8:15 PM, Keith Hodges wrote: > Making Pier configurable is something I spent a bit of time on. > > Pier-Jetsam-Environment package (in pieraddons) moves everything that > configures Pier into the PRFrame class heirarchy. You choose your > chosen > PRFrame class in the seaside/config app. Is there a list anywhere of not just the addons but what they are for? Some are obvious, some not so obvious. Is there anyway other than asking someone here or loading the code into an image to know what each addon adds in functionality? From dz0004455 at gmail.com Thu Aug 21 04:24:05 2008 From: dz0004455 at gmail.com (David Zmick) Date: Wed, 20 Aug 2008 21:24:05 -0500 Subject: Pier Templates In-Reply-To: <9A1645C1-B5ED-4142-8EA5-081F6CA278FA@monkeysnatchbanana.com> References: <48ACB39F.7060606@yahoo.co.uk> <9A1645C1-B5ED-4142-8EA5-081F6CA278FA@monkeysnatchbanana.com> Message-ID: http://source.lukas-renggli.ch/ click on the "wiki". some of them are there On Wed, Aug 20, 2008 at 9:18 PM, Sean Allen wrote: > > On Aug 20, 2008, at 8:15 PM, Keith Hodges wrote: > > > Making Pier configurable is something I spent a bit of time on. > > > > Pier-Jetsam-Environment package (in pieraddons) moves everything that > > configures Pier into the PRFrame class heirarchy. You choose your > > chosen > > PRFrame class in the seaside/config app. > > Is there a list anywhere of not just the addons but what they are for? > > Some are obvious, some not so obvious. Is there anyway other than > asking someone here or loading the code into an image to know > what each addon adds in functionality? > > > _______________________________________________ > 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/20080821/58a3aa2a/attachment.html From sean at monkeysnatchbanana.com Thu Aug 21 04:40:32 2008 From: sean at monkeysnatchbanana.com (Sean Allen) Date: Wed, 20 Aug 2008 22:40:32 -0400 Subject: Pier Templates In-Reply-To: References: <48ACB39F.7060606@yahoo.co.uk> <9A1645C1-B5ED-4142-8EA5-081F6CA278FA@monkeysnatchbanana.com> Message-ID: <2BEA6DA5-8B03-4CFC-B49A-89EB6805E7C3@monkeysnatchbanana.com> its just a rather incomplete listing. thus the question... On Aug 20, 2008, at 10:24 PM, David Zmick wrote: > http://source.lukas-renggli.ch/ click on the "wiki". some of them > are there > > Is there a list anywhere of not just the addons but what they are for? > > Some are obvious, some not so obvious. Is there anyway other than > asking someone here or loading the code into an image to know > what each addon adds in functionality? > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20080821/314bf114/attachment.html From dz0004455 at gmail.com Thu Aug 21 04:42:41 2008 From: dz0004455 at gmail.com (David Zmick) Date: Wed, 20 Aug 2008 21:42:41 -0500 Subject: Pier Templates In-Reply-To: <2BEA6DA5-8B03-4CFC-B49A-89EB6805E7C3@monkeysnatchbanana.com> References: <48ACB39F.7060606@yahoo.co.uk> <9A1645C1-B5ED-4142-8EA5-081F6CA278FA@monkeysnatchbanana.com> <2BEA6DA5-8B03-4CFC-B49A-89EB6805E7C3@monkeysnatchbanana.com> Message-ID: ahh, then, not that I know of, just experiment! On Wed, Aug 20, 2008 at 9:40 PM, Sean Allen wrote: > its just a rather incomplete listing. thus the question... > On Aug 20, 2008, at 10:24 PM, David Zmick wrote: > > http://source.lukas-renggli.ch/ click on the "wiki". some of them are > there > >> >> Is there a list anywhere of not just the addons but what they are for? >> >> Some are obvious, some not so obvious. Is there anyway other than >> asking someone here or loading the code into an image to know >> what each addon adds in functionality? >> >> > > _______________________________________________ > 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/20080821/5b373186/attachment.html From keith_hodges at yahoo.co.uk Thu Aug 21 05:24:15 2008 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Thu, 21 Aug 2008 04:24:15 +0100 Subject: Pier Templates In-Reply-To: References: <48ACB39F.7060606@yahoo.co.uk> <9A1645C1-B5ED-4142-8EA5-081F6CA278FA@monkeysnatchbanana.com> <2BEA6DA5-8B03-4CFC-B49A-89EB6805E7C3@monkeysnatchbanana.com> Message-ID: <48ACDFDF.80805@yahoo.co.uk> Hi David, I think it would be an idea to combine forces. CSS is my weak point, so if you are up for themeing pier. The CSS you have done can be combined with Pier-Jetsam-Environment fairly easily. As for getting it working, I am using it at present so it definitely works, you probably missed the correct prerequisite packages. You will need the Seaside28Jetsam package from www.squeaksource.com/Jetsam (you may also need Kernel-Extensions from squeaksource.com/311) You might be interested to see my WACss class for assembling css using a class. I have also integrated NiftyCorners. best regards Keith From rickf at ca-flower.com Thu Aug 21 16:42:10 2008 From: rickf at ca-flower.com (Richard E. Flower) Date: Thu, 21 Aug 2008 07:42:10 -0700 Subject: Where can I find the definition for #copyForRealMemento? In-Reply-To: <48ACB7A7.4020509@yahoo.co.uk> References: <190DAA30-2739-46AB-8A51-9041A78F5BA7@ca-flower.com> <48ACB7A7.4020509@yahoo.co.uk> Message-ID: <1530560A-D197-49A0-AECE-62706A6D5AA5@ca-flower.com> Thanks Keith.. That got me past this hurdle and it appears to work.. On Aug 20, 2008, at 5:32 PM, Keith Hodges wrote: > Richard E. Flower wrote: >> It appears that this method should live in the object (or superclass) >> that is to be Magritte rendered.. I can't find it in my Squeak image >> but it is referenced by #pull as seen below.. Up to now I thought I >> was using the RealMemento class as specified by #mementoClass >> but just found that it needs to be defined on the instance side not >> the class side so my #mementoClass method was not being called >> until now.. Unfortunately now I get the DNU as indicated above.. >> >> MARealMemento>>pull >> "Utitlity method to copies the model into a cache populating nil >> values with the defaults specified by the descriptions" >> >> | result | >> >> result := self model copyForRealMemento. >> >> result description do: [ :each | >> (result readUsing: each) ifNil: [ result update: each default >> using: >> each ]. >> ]. >> >> ^ result >> > I have added it to Object in the Magritte-RealMemento package > > Keith > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > From rickf at ca-flower.com Thu Aug 21 16:44:48 2008 From: rickf at ca-flower.com (Richard E. Flower) Date: Thu, 21 Aug 2008 07:44:48 -0700 Subject: What does this mean? Message-ID: I saw some references to it in another older thread from last year.. User: Input is conflicting with concurrent modification In my case, my object being edited through Magritte was read in by Glorp.. I'm using Keith's RealMemento (on VW).. I believe it thinks that the objects are different even though I made no changes. I guess its safe to assume I need to see why the comparison is failing? Any other suggestions would be appreciated! -- Rick -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20080821/5403c498/attachment-0001.html From matthias.berth at googlemail.com Thu Aug 21 18:57:02 2008 From: matthias.berth at googlemail.com (Matthias Berth) Date: Thu, 21 Aug 2008 18:57:02 +0200 Subject: Using one Magritte form for two model objects Message-ID: <9aa6ae270808210957g3c6b3f57w92b26a43831cc9e@mail.gmail.com> Hi, I have a big data model that I have split into around 10 model classes, each with its own set of Magritte descriptions. Now I'd like to put several of them into a single Magritte form. In other words, I want to have the form fields of model 1 and model 2 on the same page, but only one OK and one Cancel button. What would be the simplest way to do that? I found this snippet for re-arranging fields / descriptions [1]: buildComponentFor: aModel ^((ModelClass descriptionFieldOne, ModelClass descriptionFieldTwo, ModelClass descriptionFieldThree) componentRenderer: MACssRenderer; asComponentOn: aModel) addValidatedForm; yourself but it is using a single model object. Thanks in advance Matthias [1] http://onsmalltalk.com/programming/smalltalk/using-magritte-with-seaside/ From ramon.leon at allresnet.com Thu Aug 21 19:44:24 2008 From: ramon.leon at allresnet.com (Ramon Leon) Date: Thu, 21 Aug 2008 10:44:24 -0700 Subject: Using one Magritte form for two model objects In-Reply-To: <9aa6ae270808210957g3c6b3f57w92b26a43831cc9e@mail.gmail.com> References: <9aa6ae270808210957g3c6b3f57w92b26a43831cc9e@mail.gmail.com> Message-ID: > > Hi, > > > I have a big data model that I have split into around 10 model > classes, each with its own set of Magritte descriptions. Now I'd like > to put several of them into a single Magritte form. In other words, I > want to have the form fields of model 1 and model 2 on the same page, > but only one OK and one Cancel button. What would be the simplest way > to do that? > > I found this snippet for re-arranging fields / descriptions [1]: > > buildComponentFor: aModel > ^((ModelClass descriptionFieldOne, ModelClass descriptionFieldTwo, > ModelClass descriptionFieldThree) > componentRenderer: MACssRenderer; > asComponentOn: aModel) > addValidatedForm; > yourself > > but it is using a single model object. > > Thanks in advance > > Matthias > > [1] > http://onsmalltalk.com/programming/smalltalk/using-magritte-with-seaside/ > That same article contains the answer to your question under MAAccessor. Ramon Leon http://onsmalltalk.com From keith_hodges at yahoo.co.uk Thu Aug 21 19:46:12 2008 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Thu, 21 Aug 2008 18:46:12 +0100 Subject: What does this mean? In-Reply-To: References: Message-ID: <48ADA9E4.9080009@yahoo.co.uk> Richard E. Flower wrote: > I saw some references to it in another older thread from last year.. > > User: Input is conflicting with concurrent modification > > In my case, my object being edited through Magritte was read in by Glorp.. > I'm using Keith's RealMemento (on VW).. I believe it thinks that the > objects > are different even though I made no changes. I guess its safe to > assume I need > to see why the comparison is failing? Any other suggestions would be > appreciated! > > -- Rick It takes a copy of the original, then compares the model to the copy to make sure that no one else has changed it in the mean time, before applying the new one. If your real memento copy is not a completely independent copy then it may be modifying the model by accident. On commit it finds the model has changed. Keith From sean at monkeysnatchbanana.com Thu Aug 21 20:56:09 2008 From: sean at monkeysnatchbanana.com (Sean Allen) Date: Thu, 21 Aug 2008 14:56:09 -0400 Subject: More Beginning with Pier questions... Message-ID: The gemstone/s port, does it automatically persist to the Gemstone DB? -- Are there any links for learning about CSS and Pier? I've been looking at the css and it appears to be blueprint css based. Are all the css definitions required? How does one know what is needed and what isnt? From rickf at ca-flower.com Thu Aug 21 22:11:16 2008 From: rickf at ca-flower.com (Rick Flower) Date: Thu, 21 Aug 2008 13:11:16 -0700 (PDT) Subject: What does this mean? In-Reply-To: <48ADA9E4.9080009@yahoo.co.uk> References: <48ADA9E4.9080009@yahoo.co.uk> Message-ID: <61367.157.127.124.14.1219349476.squirrel@www.ca-flower.com> On Thu, August 21, 2008 10:46 am, Keith Hodges wrote: > It takes a copy of the original, then compares the model to the copy to > make sure that no one else has changed it in the mean time, before > applying the new one. > > If your real memento copy is not a completely independent copy then it > may be modifying the model by accident. On commit it finds the model has > changed. How does it determine (I guess I can pilfer thru the code tonight) if the model has changed? It's not like C++ comparing pointers -- is it doing a bit-wise compare of each field (In a general sense)...? Hmm.. In this case the model should not have changed -- it was rendered and then I pressed the 'save' button w/o any changes.. I guess I'll have to dig into the bowels of the RealMemento code (assuming that's where the compare is being done).. BTW -- what's the difference between MARealMemento and MARealCheckedMemento? I'm currently using MARealCheckedMemento -- not sure if that matters or not.. I only used that version because the default Magritte one was MACheckedMemento IIRC. -- Rick From renggli at iam.unibe.ch Thu Aug 21 22:24:43 2008 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Thu, 21 Aug 2008 22:24:43 +0200 Subject: What does this mean? In-Reply-To: References: Message-ID: <496110FC-5D40-44D1-886E-3A127029C4C0@iam.unibe.ch> > User: Input is conflicting with concurrent modification > > In my case, my object being edited through Magritte was read in by > Glorp.. > I'm using Keith's RealMemento (on VW).. I believe it thinks that the > objects > are different even though I made no changes. I guess its safe to > assume I need > to see why the comparison is failing? Any other suggestions would > be appreciated! Magritte probably things that there is a conflict because GLORP doesn't keep the identity of objects and you don't properly implement #= in all the involved objects. If the DB handles commit conflicts for you, there is no need for Magritte to do these checks for you. I remember doing some special memento class for OmniBase that used the mechanisms of the OODB to check for conflicts and to mark the changed parts as dirty. If you don't want to check for conflicts you can simply replace the method Object>>#mementoClass to return MACachedMemento. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From renggli at iam.unibe.ch Thu Aug 21 22:27:38 2008 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Thu, 21 Aug 2008 22:27:38 +0200 Subject: Using one Magritte form for two model objects In-Reply-To: <9aa6ae270808210957g3c6b3f57w92b26a43831cc9e@mail.gmail.com> References: <9aa6ae270808210957g3c6b3f57w92b26a43831cc9e@mail.gmail.com> Message-ID: > I have a big data model that I have split into around 10 model > classes, each with its own set of Magritte descriptions. Now I'd like > to put several of them into a single Magritte form. In other words, I > want to have the form fields of model 1 and model 2 on the same page, > but only one OK and one Cancel button. What would be the simplest way > to do that? Another possibly to the already suggested one is the following: Since #asComponent returns a simple Seaside component, you can compose several of these components in one Seaside component. You can then decorate the parent component with the Magritte form- and validation- decoration and simply dispatch requests to validate and save to all your child components. Hope this helps? Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From renggli at iam.unibe.ch Thu Aug 21 22:36:49 2008 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Thu, 21 Aug 2008 22:36:49 +0200 Subject: More Beginning with Pier questions... In-Reply-To: References: Message-ID: <9D1BC99F-DCD8-4A06-9B4B-43FC56FFAF9C@iam.unibe.ch> > The gemstone/s port, does it automatically persist to the Gemstone DB? Yes. > I've been looking at the css and it appears to be blueprint css based. > Are all the css definitions required? How does one know what is needed > and what isnt? Pier can produce an infinite space of valid XHTML pages, therefore you cannot exclude any CSS rule. FireBug tells you what rules are used. Though, that's an answer for a different question. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From sean at monkeysnatchbanana.com Thu Aug 21 22:47:29 2008 From: sean at monkeysnatchbanana.com (Sean Allen) Date: Thu, 21 Aug 2008 16:47:29 -0400 Subject: More Beginning with Pier questions... In-Reply-To: <9D1BC99F-DCD8-4A06-9B4B-43FC56FFAF9C@iam.unibe.ch> References: <9D1BC99F-DCD8-4A06-9B4B-43FC56FFAF9C@iam.unibe.ch> Message-ID: <66938F06-F828-4F80-BEDB-88B8EFF04988@monkeysnatchbanana.com> On Aug 21, 2008, at 4:36 PM, Lukas Renggli wrote: > Pier can produce an infinite space of valid XHTML pages, therefore you > cannot exclude any CSS rule. FireBug tells you what rules are used. > Though, that's an answer for a different question. so basically, use it. see what is in place that hasnt been defined. makes sense. From girba at iam.unibe.ch Thu Aug 21 23:10:00 2008 From: girba at iam.unibe.ch (Tudor Girba) Date: Thu, 21 Aug 2008 23:10:00 +0200 Subject: MADistribution Message-ID: <5D1AFECF-92AE-4EFC-8CCE-68C71963B20A@iam.unibe.ch> Hi, I am trying to load a couple of Pier Addons, but several of them seem to depend on the MADistribution class. I suspect this problem is due to some missing package in my image. Any idea where I can find it? Cheers, Doru -- www.tudorgirba.com www.tudorgirba.com/blog "Not knowing how to do something is not an argument for how it cannot be done." From renggli at iam.unibe.ch Thu Aug 21 23:15:05 2008 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Thu, 21 Aug 2008 23:15:05 +0200 Subject: MADistribution In-Reply-To: <5D1AFECF-92AE-4EFC-8CCE-68C71963B20A@iam.unibe.ch> References: <5D1AFECF-92AE-4EFC-8CCE-68C71963B20A@iam.unibe.ch> Message-ID: > I am trying to load a couple of Pier Addons, but several of them seem > to depend on the MADistribution class. What are these dependencies exactly? This is sort of strange ... MADistribution used to be part of Magritte-Core and it contained utilities to automatically build SqueakMap releases. Since this code is not portable to other platforms I moved it into its own package, and later refactored to also create Package Universe releases. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From rickf at ca-flower.com Thu Aug 21 23:20:05 2008 From: rickf at ca-flower.com (Rick Flower) Date: Thu, 21 Aug 2008 14:20:05 -0700 (PDT) Subject: What does this mean? In-Reply-To: <496110FC-5D40-44D1-886E-3A127029C4C0@iam.unibe.ch> References: <496110FC-5D40-44D1-886E-3A127029C4C0@iam.unibe.ch> Message-ID: <32573.157.127.124.14.1219353605.squirrel@www.ca-flower.com> On Thu, August 21, 2008 1:24 pm, Lukas Renggli wrote: > If the DB handles commit conflicts for you, there is no need for Magritte to do these checks for you. I remember doing some special memento class for OmniBase that used the mechanisms of the OODB to check for conflicts and to mark the changed parts as dirty. > > If you don't want to check for conflicts you can simply replace the method Object>>#mementoClass to return MACachedMemento. I guess I'd like to have Magritte figure out if I need to issue a 'commit' or a roll-back and go from there.. I guess I'd like to know what the difference is between the following (perhaps a good FAQ entry?): 1) MACachedMemento 2) MARealMemento 3) MACheckedMemento 4) MARealCheckedMemento 5) MAStraitMemento Also -- is there a good place to read up on the object comparison operators such as #=, #<, #>? I've got a single ST book (in pdf form -- Smalltalk by example) and didn't find any references to #= when doing a search and little talk on comparisons.. Thx! From renggli at iam.unibe.ch Thu Aug 21 23:24:19 2008 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Thu, 21 Aug 2008 23:24:19 +0200 Subject: What does this mean? In-Reply-To: <32573.157.127.124.14.1219353605.squirrel@www.ca-flower.com> References: <496110FC-5D40-44D1-886E-3A127029C4C0@iam.unibe.ch> <32573.157.127.124.14.1219353605.squirrel@www.ca-flower.com> Message-ID: > I guess I'd like to know what the difference is between the following > (perhaps a good FAQ entry?): Check out the class comments ;-) Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From matthias.berth at googlemail.com Thu Aug 21 23:29:33 2008 From: matthias.berth at googlemail.com (Matthias Berth) Date: Thu, 21 Aug 2008 23:29:33 +0200 Subject: Using one Magritte form for two model objects In-Reply-To: References: <9aa6ae270808210957g3c6b3f57w92b26a43831cc9e@mail.gmail.com> Message-ID: <9aa6ae270808211429s3b2562eer4d25b00742dcb4a0@mail.gmail.com> Ramon, thanks a lot, that's exactly what I need, it was right in front of my eyes :-/ Matthias On Thu, Aug 21, 2008 at 7:44 PM, Ramon Leon wrote: >> >> Hi, >> >> >> I have a big data model that I have split into around 10 model >> classes, each with its own set of Magritte descriptions. Now I'd like >> to put several of them into a single Magritte form. In other words, I >> want to have the form fields of model 1 and model 2 on the same page, >> but only one OK and one Cancel button. What would be the simplest way >> to do that? >> >> I found this snippet for re-arranging fields / descriptions [1]: >> >> buildComponentFor: aModel >> ^((ModelClass descriptionFieldOne, ModelClass descriptionFieldTwo, >> ModelClass descriptionFieldThree) >> componentRenderer: MACssRenderer; >> asComponentOn: aModel) >> addValidatedForm; >> yourself >> >> but it is using a single model object. >> >> Thanks in advance >> >> Matthias >> >> [1] >> http://onsmalltalk.com/programming/smalltalk/using-magritte-with-seaside/ >> > > That same article contains the answer to your question under MAAccessor. > > Ramon Leon > http://onsmalltalk.com > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > From matthias.berth at googlemail.com Thu Aug 21 23:31:45 2008 From: matthias.berth at googlemail.com (Matthias Berth) Date: Thu, 21 Aug 2008 23:31:45 +0200 Subject: Using one Magritte form for two model objects In-Reply-To: References: <9aa6ae270808210957g3c6b3f57w92b26a43831cc9e@mail.gmail.com> Message-ID: <9aa6ae270808211431v20d28df7w40acc7dfd8283b46@mail.gmail.com> Lukas, thanks a lot, I'll try that as well. I thought that I had to do more work for this, but it looks simple enough. Cheers Matthias On Thu, Aug 21, 2008 at 10:27 PM, Lukas Renggli wrote: >> I have a big data model that I have split into around 10 model >> classes, each with its own set of Magritte descriptions. Now I'd like >> to put several of them into a single Magritte form. In other words, I >> want to have the form fields of model 1 and model 2 on the same page, >> but only one OK and one Cancel button. What would be the simplest way >> to do that? > > Another possibly to the already suggested one is the following: > > Since #asComponent returns a simple Seaside component, you can compose > several of these components in one Seaside component. You can then > decorate the parent component with the Magritte form- and validation- > decoration and simply dispatch requests to validate and save to all > your child components. > > Hope this helps? > > Cheers, > Lukas > > -- > Lukas Renggli > http://www.lukas-renggli.ch > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > From girba at iam.unibe.ch Thu Aug 21 23:32:25 2008 From: girba at iam.unibe.ch (Tudor Girba) Date: Thu, 21 Aug 2008 23:32:25 +0200 Subject: MADistribution In-Reply-To: References: <5D1AFECF-92AE-4EFC-8CCE-68C71963B20A@iam.unibe.ch> Message-ID: StellDichEin or Poll depend on MADistribution. A couple of others depend on PRBoxWidget that I also do not know where to get from: RelatedLinks, RedditFeed, DiggFeed. And the Bookmark package depends on WAStyleLibrary. Cheers, Doru On Aug 21, 2008, at 11:15 PM, Lukas Renggli wrote: >> I am trying to load a couple of Pier Addons, but several of them seem >> to depend on the MADistribution class. > > What are these dependencies exactly? This is sort of strange ... > > MADistribution used to be part of Magritte-Core and it contained > utilities to automatically build SqueakMap releases. Since this code > is not portable to other platforms I moved it into its own package, > and later refactored to also create Package Universe releases. > > Cheers, > Lukas > > -- > Lukas Renggli > http://www.lukas-renggli.ch > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki -- www.tudorgirba.com www.tudorgirba.com/blog "Sometimes the best solution is not the best solution." From dz0004455 at gmail.com Thu Aug 21 23:34:08 2008 From: dz0004455 at gmail.com (David Zmick) Date: Thu, 21 Aug 2008 16:34:08 -0500 Subject: [pier] Common Pier Questions In-Reply-To: <3806CFFF-754C-4137-AABC-A194372A0703@monkeysnatchbanana.com> References: <3806CFFF-754C-4137-AABC-A194372A0703@monkeysnatchbanana.com> Message-ID: I don't think I am going to write a tutorial, but more of a reference. With things like Pier Structure, what the components do etc. On Wed, Aug 20, 2008 at 5:45 PM, Sean Allen wrote: > > On Aug 20, 2008, at 5:03 PM, cdrick wrote: > > >> > >> 3. what on earth are all these components? i've been sticking them > >> in and i > >> dont know what 99% of them are or what they are good for. > >> like the html compontent. huh? it isnt very obvious. > > Some are used internally by Pier. > > Some are intended for the mangement of Pier (like user...) > > Some are just seaside component that answer canBeRoot true > > ... > > Yes I also think this is something we could improve... :) > > Are there good resources to learn about these or should i just be > happy knowing that > in time it will come to me and it isnt important right now? > > That is the other thing with lack of documentation. You don't know > what you need > to know now and what can wait. > > > _______________________________________________ > 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/20080821/bb303569/attachment-0001.html From dz0004455 at gmail.com Thu Aug 21 23:35:37 2008 From: dz0004455 at gmail.com (David Zmick) Date: Thu, 21 Aug 2008 16:35:37 -0500 Subject: Magma... Message-ID: I cant get magma figured out. I REALLY need it, my image is reach 50 mb. I am running squeak-web 3.10 -- 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/20080821/138c4adc/attachment.html From renggli at iam.unibe.ch Thu Aug 21 23:37:23 2008 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Thu, 21 Aug 2008 23:37:23 +0200 Subject: MADistribution In-Reply-To: References: <5D1AFECF-92AE-4EFC-8CCE-68C71963B20A@iam.unibe.ch> Message-ID: <010DFE88-9C5B-4549-AA3C-2456586C21EF@iam.unibe.ch> On Aug 21, 2008, at 23:32 , Tudor Girba wrote: > StellDichEin or Poll depend on MADistribution. > > A couple of others depend on PRBoxWidget that I also do not know where > to get from: RelatedLinks, RedditFeed, DiggFeed. > > And the Bookmark package depends on WAStyleLibrary. These are plugins by Philippe. I will fix these with him at Camp Smalltalk. We wanted to do some Pier work anyways. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From sean at monkeysnatchbanana.com Thu Aug 21 23:58:03 2008 From: sean at monkeysnatchbanana.com (Sean Allen) Date: Thu, 21 Aug 2008 17:58:03 -0400 Subject: [pier] Common Pier Questions In-Reply-To: References: <3806CFFF-754C-4137-AABC-A194372A0703@monkeysnatchbanana.com> Message-ID: <74B94330-4E70-4697-8F5A-0045F7DFD543@monkeysnatchbanana.com> a reference would be excellent. On Aug 21, 2008, at 5:34 PM, David Zmick wrote: > I don't think I am going to write a tutorial, but more of a > reference. With things like Pier Structure, what the components do > etc. > > On Wed, Aug 20, 2008 at 5:45 PM, Sean Allen > wrote: > > On Aug 20, 2008, at 5:03 PM, cdrick wrote: > > >> > >> 3. what on earth are all these components? i've been sticking them > >> in and i > >> dont know what 99% of them are or what they are good for. > >> like the html compontent. huh? it isnt very obvious. > > Some are used internally by Pier. > > Some are intended for the mangement of Pier (like user...) > > Some are just seaside component that answer canBeRoot true > > ... > > Yes I also think this is something we could improve... :) > > Are there good resources to learn about these or should i just be > happy knowing that > in time it will come to me and it isnt important right now? > > That is the other thing with lack of documentation. You don't know > what you need > to know now and what can wait. > > > _______________________________________________ > 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20080821/3c7576d7/attachment.html From dz0004455 at gmail.com Fri Aug 22 00:01:20 2008 From: dz0004455 at gmail.com (David Zmick) Date: Thu, 21 Aug 2008 17:01:20 -0500 Subject: [pier] Common Pier Questions In-Reply-To: <74B94330-4E70-4697-8F5A-0045F7DFD543@monkeysnatchbanana.com> References: <3806CFFF-754C-4137-AABC-A194372A0703@monkeysnatchbanana.com> <74B94330-4E70-4697-8F5A-0045F7DFD543@monkeysnatchbanana.com> Message-ID: ok, good, I am still making a "Getting Started", but it is going to be very basic. On Thu, Aug 21, 2008 at 4:58 PM, Sean Allen wrote: > a reference would be excellent. > > On Aug 21, 2008, at 5:34 PM, David Zmick wrote: > > I don't think I am going to write a tutorial, but more of a reference. > With things like Pier Structure, what the components do etc. > > On Wed, Aug 20, 2008 at 5:45 PM, Sean Allen wrote: > >> >> On Aug 20, 2008, at 5:03 PM, cdrick wrote: >> >> >> >> >> 3. what on earth are all these components? i've been sticking them >> >> in and i >> >> dont know what 99% of them are or what they are good for. >> >> like the html compontent. huh? it isnt very obvious. >> > Some are used internally by Pier. >> > Some are intended for the mangement of Pier (like user...) >> > Some are just seaside component that answer canBeRoot true >> > ... >> > Yes I also think this is something we could improve... :) >> >> Are there good resources to learn about these or should i just be >> happy knowing that >> in time it will come to me and it isnt important right now? >> >> That is the other thing with lack of documentation. You don't know >> what you need >> to know now and what can wait. >> >> >> _______________________________________________ >> 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/20080822/1626fbe2/attachment.html From girba at iam.unibe.ch Fri Aug 22 00:06:21 2008 From: girba at iam.unibe.ch (Tudor Girba) Date: Fri, 22 Aug 2008 00:06:21 +0200 Subject: MADistribution In-Reply-To: <010DFE88-9C5B-4549-AA3C-2456586C21EF@iam.unibe.ch> References: <5D1AFECF-92AE-4EFC-8CCE-68C71963B20A@iam.unibe.ch> <010DFE88-9C5B-4549-AA3C-2456586C21EF@iam.unibe.ch> Message-ID: <9D006A00-F0E0-4006-8E3F-22D3526D874F@iam.unibe.ch> Okie dokie :) Doru On Aug 21, 2008, at 11:37 PM, Lukas Renggli wrote: > > On Aug 21, 2008, at 23:32 , Tudor Girba wrote: > >> StellDichEin or Poll depend on MADistribution. >> >> A couple of others depend on PRBoxWidget that I also do not know >> where >> to get from: RelatedLinks, RedditFeed, DiggFeed. >> >> And the Bookmark package depends on WAStyleLibrary. > > These are plugins by Philippe. I will fix these with him at Camp > Smalltalk. We wanted to do some Pier work anyways. > > Cheers, > Lukas > > -- > Lukas Renggli > http://www.lukas-renggli.ch > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki -- www.tudorgirba.com www.tudorgirba.com/blog "It's not how it is, it is how we see it." From dz0004455 at gmail.com Fri Aug 22 00:43:37 2008 From: dz0004455 at gmail.com (David Zmick) Date: Thu, 21 Aug 2008 17:43:37 -0500 Subject: More Beginning with Pier questions... In-Reply-To: <66938F06-F828-4F80-BEDB-88B8EFF04988@monkeysnatchbanana.com> References: <9D1BC99F-DCD8-4A06-9B4B-43FC56FFAF9C@iam.unibe.ch> <66938F06-F828-4F80-BEDB-88B8EFF04988@monkeysnatchbanana.com> Message-ID: I think I've got Pier css figured out. The "theme" i have on squeaksource, project, "Pier Templates" is an editing version of everything in the PRBlueprint libraries. Is that in incorrect way to do it? On Thu, Aug 21, 2008 at 3:47 PM, Sean Allen wrote: > > On Aug 21, 2008, at 4:36 PM, Lukas Renggli wrote: > > > Pier can produce an infinite space of valid XHTML pages, therefore you > > cannot exclude any CSS rule. FireBug tells you what rules are used. > > Though, that's an answer for a different question. > > so basically, use it. see what is in place that hasnt been defined. > makes sense. > > > _______________________________________________ > 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/20080822/a222b7a1/attachment-0001.html From dz0004455 at gmail.com Fri Aug 22 00:44:46 2008 From: dz0004455 at gmail.com (David Zmick) Date: Thu, 21 Aug 2008 17:44:46 -0500 Subject: [pier] Common Pier Questions In-Reply-To: References: <3806CFFF-754C-4137-AABC-A194372A0703@monkeysnatchbanana.com> <74B94330-4E70-4697-8F5A-0045F7DFD543@monkeysnatchbanana.com> Message-ID: Done with the VERY VERY basic getting started. http://w337.uni.cc/Projects/Pier/starting On Thu, Aug 21, 2008 at 5:01 PM, David Zmick wrote: > ok, good, I am still making a "Getting Started", but it is going to be very > basic. > > > On Thu, Aug 21, 2008 at 4:58 PM, Sean Allen wrote: > >> a reference would be excellent. >> >> On Aug 21, 2008, at 5:34 PM, David Zmick wrote: >> >> I don't think I am going to write a tutorial, but more of a reference. >> With things like Pier Structure, what the components do etc. >> >> On Wed, Aug 20, 2008 at 5:45 PM, Sean Allen wrote: >> >>> >>> On Aug 20, 2008, at 5:03 PM, cdrick wrote: >>> >>> >> >>> >> 3. what on earth are all these components? i've been sticking them >>> >> in and i >>> >> dont know what 99% of them are or what they are good for. >>> >> like the html compontent. huh? it isnt very obvious. >>> > Some are used internally by Pier. >>> > Some are intended for the mangement of Pier (like user...) >>> > Some are just seaside component that answer canBeRoot true >>> > ... >>> > Yes I also think this is something we could improve... :) >>> >>> Are there good resources to learn about these or should i just be >>> happy knowing that >>> in time it will come to me and it isnt important right now? >>> >>> That is the other thing with lack of documentation. You don't know >>> what you need >>> to know now and what can wait. >>> >>> >>> _______________________________________________ >>> 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 > -- 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/20080822/972703fb/attachment.html From dz0004455 at gmail.com Fri Aug 22 01:15:47 2008 From: dz0004455 at gmail.com (David Zmick) Date: Thu, 21 Aug 2008 18:15:47 -0500 Subject: [pier] Glorp for pier? Message-ID: Would it be possible to use a database, say Postgres with pier, instead of magma. I know it doesn't already exist, but is it even possible? -- 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/20080822/7e99e6ce/attachment.html From rickf at ca-flower.com Fri Aug 22 02:43:52 2008 From: rickf at ca-flower.com (Rick Flower) Date: Thu, 21 Aug 2008 17:43:52 -0700 (PDT) Subject: What does this mean? In-Reply-To: References: <496110FC-5D40-44D1-886E-3A127029C4C0@iam.unibe.ch> <32573.157.127.124.14.1219353605.squirrel@www.ca-flower.com> Message-ID: <63238.157.127.124.14.1219365832.squirrel@www.ca-flower.com> On Thu, August 21, 2008 2:24 pm, Lukas Renggli wrote: >> I guess I'd like to know what the difference is between the following >> (perhaps a good FAQ entry?): > > Check out the class comments ;-) Sorry Lukas.. One of these days I need to figure out how to see the class comments while working in Squeak.. I know how in VW but not Squeak.. Anyway, I'll check them out either way.. Thx! From keith_hodges at yahoo.co.uk Fri Aug 22 03:03:20 2008 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Fri, 22 Aug 2008 02:03:20 +0100 Subject: Magma... In-Reply-To: References: Message-ID: <48AE1058.8070308@yahoo.co.uk> David Zmick wrote: > I cant get magma figured out. I REALLY need it, my image is reach 50 > mb. I am running squeak-web 3.10 > > -- > David Zmick > /dz0004455\ > http://dz0004455.googlepages.com > http://dz0004455.blogspot.com Before you get too worried... empty the Monticello caches. If you have Kernel-Extensions loaded there are numerous cleanUp methods for getting your image down a bit. SmalltalkImage current cleanUpAll. (this will turn off WAKom) regards Keith From keith_hodges at yahoo.co.uk Fri Aug 22 03:08:09 2008 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Fri, 22 Aug 2008 02:08:09 +0100 Subject: [pier] Glorp for pier? In-Reply-To: References: Message-ID: <48AE1179.10103@yahoo.co.uk> David Zmick wrote: > Would it be possible to use a database, say Postgres with pier, > instead of magma. I know it doesn't already exist, but is it even > possible? "Everything is possible if you believe" -- Jesus the Christ I have some classes for mapping Magritte descriptions in/out of MySql tables. (see magritte-RDB in magritte addons) I havent tried glorp which postgres users tend to favour. However Magma integration with Pier is really very straight forward indeed, so its probably worth getting through the pain barrier on that one. Load Pier-PersistencyManager and Pier-Magma from sake/packages (or universes). Its a while since I looked at it, so apologies if it doesn't work first time with the latest pier. cheers Keith From dz0004455 at gmail.com Fri Aug 22 03:20:48 2008 From: dz0004455 at gmail.com (David Zmick) Date: Thu, 21 Aug 2008 20:20:48 -0500 Subject: [pier] Glorp for pier? In-Reply-To: <48AE1179.10103@yahoo.co.uk> References: <48AE1179.10103@yahoo.co.uk> Message-ID: Ok, I am working on magma in a fresh squeak-web 3.10 image, but i need to get the pier kernel out of my old image. Let me check if i can get magma to work in the old one though first On Thu, Aug 21, 2008 at 8:08 PM, Keith Hodges wrote: > David Zmick wrote: > > Would it be possible to use a database, say Postgres with pier, > > instead of magma. I know it doesn't already exist, but is it even > > possible? > > "Everything is possible if you believe" -- Jesus the Christ > > I have some classes for mapping Magritte descriptions in/out of MySql > tables. > (see magritte-RDB in magritte addons) I havent tried glorp which > postgres users tend to favour. > > However Magma integration with Pier is really very straight forward > indeed, so its probably worth getting through the pain barrier on that one. > > Load Pier-PersistencyManager and Pier-Magma from sake/packages (or > universes). > > Its a while since I looked at it, so apologies if it doesn't work first > time with the latest pier. > > cheers > > 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/20080822/b6549710/attachment-0001.html From dz0004455 at gmail.com Fri Aug 22 03:45:54 2008 From: dz0004455 at gmail.com (David Zmick) Date: Thu, 21 Aug 2008 20:45:54 -0500 Subject: Magma... In-Reply-To: <48AE1058.8070308@yahoo.co.uk> References: <48AE1058.8070308@yahoo.co.uk> Message-ID: I have it working on my fresh image, except for one thing, if i click any of the buttons in the PRPierControlPanel, i get this error: PRPierControlPanel On Thu, Aug 21, 2008 at 8:03 PM, Keith Hodges wrote: > David Zmick wrote: > > I cant get magma figured out. I REALLY need it, my image is reach 50 > > mb. I am running squeak-web 3.10 > > > > -- > > David Zmick > > /dz0004455\ > > http://dz0004455.googlepages.com > > http://dz0004455.blogspot.com > Before you get too worried... empty the Monticello caches. > > If you have Kernel-Extensions loaded there are numerous cleanUp methods > for getting your image down a bit. > > SmalltalkImage current cleanUpAll. > > (this will turn off WAKom) > > regards > > 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/20080822/4ee64e0a/attachment.html From dz0004455 at gmail.com Fri Aug 22 03:46:22 2008 From: dz0004455 at gmail.com (David Zmick) Date: Thu, 21 Aug 2008 20:46:22 -0500 Subject: Magma... In-Reply-To: References: <48AE1058.8070308@yahoo.co.uk> Message-ID: sorry, that isn't an error, it is this: Error: WAMagmaConfiguration not selected in application configuration On Thu, Aug 21, 2008 at 8:45 PM, David Zmick wrote: > I have it working on my fresh image, except for one thing, if i click any > of the buttons in the PRPierControlPanel, i get this error: > PRPierControlPanel > > On Thu, Aug 21, 2008 at 8:03 PM, Keith Hodges wrote: > >> David Zmick wrote: >> > I cant get magma figured out. I REALLY need it, my image is reach 50 >> > mb. I am running squeak-web 3.10 >> > >> > -- >> > David Zmick >> > /dz0004455\ >> > http://dz0004455.googlepages.com >> > http://dz0004455.blogspot.com >> Before you get too worried... empty the Monticello caches. >> >> If you have Kernel-Extensions loaded there are numerous cleanUp methods >> for getting your image down a bit. >> >> SmalltalkImage current cleanUpAll. >> >> (this will turn off WAKom) >> >> regards >> >> 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 > -- 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/20080822/9f742d93/attachment.html From dz0004455 at gmail.com Fri Aug 22 04:07:29 2008 From: dz0004455 at gmail.com (David Zmick) Date: Thu, 21 Aug 2008 21:07:29 -0500 Subject: Magma... In-Reply-To: References: <48AE1058.8070308@yahoo.co.uk> Message-ID: so, how do i get my pier site out of one image and into another, now that i have magma working, i think, on both of them? On Thu, Aug 21, 2008 at 8:46 PM, David Zmick wrote: > sorry, that isn't an error, it is this: > Error: WAMagmaConfiguration not selected in application configuration > > > On Thu, Aug 21, 2008 at 8:45 PM, David Zmick wrote: > >> I have it working on my fresh image, except for one thing, if i click any >> of the buttons in the PRPierControlPanel, i get this error: >> PRPierControlPanel >> >> On Thu, Aug 21, 2008 at 8:03 PM, Keith Hodges wrote: >> >>> David Zmick wrote: >>> > I cant get magma figured out. I REALLY need it, my image is reach 50 >>> > mb. I am running squeak-web 3.10 >>> > >>> > -- >>> > David Zmick >>> > /dz0004455\ >>> > http://dz0004455.googlepages.com >>> > http://dz0004455.blogspot.com >>> Before you get too worried... empty the Monticello caches. >>> >>> If you have Kernel-Extensions loaded there are numerous cleanUp methods >>> for getting your image down a bit. >>> >>> SmalltalkImage current cleanUpAll. >>> >>> (this will turn off WAKom) >>> >>> regards >>> >>> 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 >> > > > > -- > David Zmick > /dz0004455\ > http://dz0004455.googlepages.com > http://dz0004455.blogspot.com > -- 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/20080822/045763a9/attachment.html From keith_hodges at yahoo.co.uk Fri Aug 22 05:09:54 2008 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Fri, 22 Aug 2008 04:09:54 +0100 Subject: Magma... In-Reply-To: References: <48AE1058.8070308@yahoo.co.uk> Message-ID: <48AE2E02.3070707@yahoo.co.uk> David Zmick wrote: > so, how do i get my pier site out of one image and into another, now > that i have magma working, i think, on both of them? > > On Thu, Aug 21, 2008 at 8:46 PM, David Zmick > wrote: > > sorry, that isn't an error, it is this: > > > Error: WAMagmaConfiguration not selected in application > configuration > This error indicates that you have not added WAMagmaConfiguration to your pier application in /seaside/config This error should not (I think) occur when clicking "any buttons", but it should occur if you attempt to select PRMagmaPersistency. When it is present you should get a "Migrate" button, this will migrate the kernel, from memory into the database, then a "confirm" dialog will offer you the chance to commit to this. The pier data is now "out of your image". Then if you take your new image, and configure that to connect to the same magma database, you should be able to configure a kernel (with the same name) with PRMagmaPersistency, it will see the existing kernel in the database, and adopt it. If you then switch the persistency back to PRNullPersistency the database should be imported back into memory in its entirety. btw history is not yet supported in magma, however it might be if PRMagmaPersistency was a subclass of PRHistoryPersistency Keith From dz0004455 at gmail.com Fri Aug 22 06:16:29 2008 From: dz0004455 at gmail.com (David Zmick) Date: Thu, 21 Aug 2008 23:16:29 -0500 Subject: Magma... In-Reply-To: <48AE2E02.3070707@yahoo.co.uk> References: <48AE1058.8070308@yahoo.co.uk> <48AE2E02.3070707@yahoo.co.uk> Message-ID: this isnt working, I think i have it, then i breaks, and it breaks differently each time... hmm. On Thu, Aug 21, 2008 at 10:09 PM, Keith Hodges wrote: > David Zmick wrote: > > so, how do i get my pier site out of one image and into another, now > > that i have magma working, i think, on both of them? > > > > On Thu, Aug 21, 2008 at 8:46 PM, David Zmick > > wrote: > > > > sorry, that isn't an error, it is this: > > > > > > Error: WAMagmaConfiguration not selected in application > > configuration > > > This error indicates that you have not added WAMagmaConfiguration to > your pier application in /seaside/config > > This error should not (I think) occur when clicking "any buttons", but > it should occur if you attempt to select PRMagmaPersistency. > > When it is present you should get a "Migrate" button, this will migrate > the kernel, from memory into the database, then a "confirm" dialog will > offer you the chance to commit to this. > > The pier data is now "out of your image". > > Then if you take your new image, and configure that to connect to the > same magma database, you should be able to configure a kernel (with the > same name) with PRMagmaPersistency, it will see the existing kernel in > the database, and adopt it. If you then switch the persistency back to > PRNullPersistency the database should be imported back into memory in > its entirety. > > btw history is not yet supported in magma, however it might be if > PRMagmaPersistency was a subclass of PRHistoryPersistency > > 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/20080822/e2fd7a51/attachment-0001.html From rickf at ca-flower.com Fri Aug 22 06:43:42 2008 From: rickf at ca-flower.com (Richard E. Flower) Date: Thu, 21 Aug 2008 21:43:42 -0700 Subject: What does this mean? In-Reply-To: <63238.157.127.124.14.1219365832.squirrel@www.ca-flower.com> References: <496110FC-5D40-44D1-886E-3A127029C4C0@iam.unibe.ch> <32573.157.127.124.14.1219353605.squirrel@www.ca-flower.com> <63238.157.127.124.14.1219365832.squirrel@www.ca-flower.com> Message-ID: Ok -- solved my problem.. I put an address object as part of my Descriptions but they are effectively 'sub' objects and I suspect I actually had two separate objects.. I need to follow what others where talking about in the "Using One Magritte form for two model objects" thread.. Thx! -- Rick On Aug 21, 2008, at 5:43 PM, Rick Flower wrote: > On Thu, August 21, 2008 2:24 pm, Lukas Renggli wrote: >>> I guess I'd like to know what the difference is between the >>> following >>> (perhaps a good FAQ entry?): >> >> Check out the class comments ;-) > > Sorry Lukas.. One of these days I need to figure out how to see the > class > comments while working in Squeak.. I know how in VW but not Squeak.. > Anyway, > I'll check them out either way.. Thx! > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > From dz0004455 at gmail.com Fri Aug 22 07:49:12 2008 From: dz0004455 at gmail.com (David Zmick) Date: Fri, 22 Aug 2008 00:49:12 -0500 Subject: Magma... In-Reply-To: References: <48AE1058.8070308@yahoo.co.uk> <48AE2E02.3070707@yahoo.co.uk> Message-ID: i think i got it On Thu, Aug 21, 2008 at 11:16 PM, David Zmick wrote: > this isnt working, I think i have it, then i breaks, and it breaks > differently each time... hmm. > > > On Thu, Aug 21, 2008 at 10:09 PM, Keith Hodges wrote: > >> David Zmick wrote: >> > so, how do i get my pier site out of one image and into another, now >> > that i have magma working, i think, on both of them? >> > >> > On Thu, Aug 21, 2008 at 8:46 PM, David Zmick > > > wrote: >> > >> > sorry, that isn't an error, it is this: >> > >> > >> > Error: WAMagmaConfiguration not selected in application >> > configuration >> > >> This error indicates that you have not added WAMagmaConfiguration to >> your pier application in /seaside/config >> >> This error should not (I think) occur when clicking "any buttons", but >> it should occur if you attempt to select PRMagmaPersistency. >> >> When it is present you should get a "Migrate" button, this will migrate >> the kernel, from memory into the database, then a "confirm" dialog will >> offer you the chance to commit to this. >> >> The pier data is now "out of your image". >> >> Then if you take your new image, and configure that to connect to the >> same magma database, you should be able to configure a kernel (with the >> same name) with PRMagmaPersistency, it will see the existing kernel in >> the database, and adopt it. If you then switch the persistency back to >> PRNullPersistency the database should be imported back into memory in >> its entirety. >> >> btw history is not yet supported in magma, however it might be if >> PRMagmaPersistency was a subclass of PRHistoryPersistency >> >> 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 > -- 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/20080822/f475b791/attachment.html From dz0004455 at gmail.com Fri Aug 22 07:54:08 2008 From: dz0004455 at gmail.com (David Zmick) Date: Fri, 22 Aug 2008 00:54:08 -0500 Subject: [pier][ANN]A tutorial on pier styles Message-ID: I have written a tutorial on "theming", and changing the way Pier looks, and I would like some people to read it and give me feedback. The majority of the document is about setting up Apache to host static content for Pier to use. Any sugestion are welcome, I hope I didn't mess to much up. the tutorial is at http://w337.uni.cc/PierDocs/customizingLook.pdf -- 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/20080822/e65ac96e/attachment.html From dz0004455 at gmail.com Fri Aug 22 08:07:06 2008 From: dz0004455 at gmail.com (David Zmick) Date: Fri, 22 Aug 2008 01:07:06 -0500 Subject: [pier] Problems with password once magma setup Message-ID: Pier will not let me change the password now that I have magma set up! Why is this? -- 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/20080822/c22d7b26/attachment.html From dz0004455 at gmail.com Fri Aug 22 08:09:13 2008 From: dz0004455 at gmail.com (David Zmick) Date: Fri, 22 Aug 2008 01:09:13 -0500 Subject: Magma... In-Reply-To: References: <48AE1058.8070308@yahoo.co.uk> <48AE2E02.3070707@yahoo.co.uk> Message-ID: I am still getting the error, even though Pier is clearlly using Magma. hmm. more on that later, im going to sleep. On Fri, Aug 22, 2008 at 12:49 AM, David Zmick wrote: > i think i got it > > > On Thu, Aug 21, 2008 at 11:16 PM, David Zmick wrote: > >> this isnt working, I think i have it, then i breaks, and it breaks >> differently each time... hmm. >> >> >> On Thu, Aug 21, 2008 at 10:09 PM, Keith Hodges wrote: >> >>> David Zmick wrote: >>> > so, how do i get my pier site out of one image and into another, now >>> > that i have magma working, i think, on both of them? >>> > >>> > On Thu, Aug 21, 2008 at 8:46 PM, David Zmick >> > > wrote: >>> > >>> > sorry, that isn't an error, it is this: >>> > >>> > >>> > Error: WAMagmaConfiguration not selected in application >>> > configuration >>> > >>> This error indicates that you have not added WAMagmaConfiguration to >>> your pier application in /seaside/config >>> >>> This error should not (I think) occur when clicking "any buttons", but >>> it should occur if you attempt to select PRMagmaPersistency. >>> >>> When it is present you should get a "Migrate" button, this will migrate >>> the kernel, from memory into the database, then a "confirm" dialog will >>> offer you the chance to commit to this. >>> >>> The pier data is now "out of your image". >>> >>> Then if you take your new image, and configure that to connect to the >>> same magma database, you should be able to configure a kernel (with the >>> same name) with PRMagmaPersistency, it will see the existing kernel in >>> the database, and adopt it. If you then switch the persistency back to >>> PRNullPersistency the database should be imported back into memory in >>> its entirety. >>> >>> btw history is not yet supported in magma, however it might be if >>> PRMagmaPersistency was a subclass of PRHistoryPersistency >>> >>> 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 >> > > > > -- > David Zmick > /dz0004455\ > http://dz0004455.googlepages.com > http://dz0004455.blogspot.com > -- 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/20080822/55d6cc59/attachment-0001.html From dz0004455 at gmail.com Fri Aug 22 08:16:50 2008 From: dz0004455 at gmail.com (David Zmick) Date: Fri, 22 Aug 2008 01:16:50 -0500 Subject: [pier] MessageNotUnderstood: SimpleLog class>>info Message-ID: MessageNotUnderstood: SimpleLog class>>info How did I do that? and does anyone now a fix? -- 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/20080822/ac967e08/attachment.html From ducasse at iam.unibe.ch Fri Aug 22 09:05:21 2008 From: ducasse at iam.unibe.ch (=?ISO-8859-1?Q?st=E9phane_ducasse?=) Date: Fri, 22 Aug 2008 09:05:21 +0200 Subject: [pier] Common Pier Questions In-Reply-To: References: Message-ID: <144652CF-5195-474E-8701-D5FFC254CFD4@iam.unibe.ch> This is an excellent idea! Please continue! Pier needs that. Stef On Aug 20, 2008, at 10:35 PM, Michael Davies wrote: > On Wed, Aug 20, 2008 at 9:42 PM, David Zmick > wrote: >> What are the most common questions about Pier. I am trying to set >> up a site >> to with tutorials, and Pier resources, and I want to know which >> questions I >> should answer first. > > Nice idea, and very helpful of you. > > I've been thinking about this since Lukas mentioned his faq last week > and here are some questions that I've come up with based on my > experiences while getting to grips with Pier: > > - a brief explanation of the key concepts of Pier and their > relationships (kernel, structures, contexts, commands, main widgets, > users, groups etc) -- this is the same point Sean makes. > - how do I add a page - manually, and programmatically? > - how do I change the security of a page - manually and > programmatically? > - how do I add/delete/change a user - manually and programmatically? > - how do I change a page's security - manually and programmatically? > - how do I write a link to another page in the same kernel - manually > and programmatically? > - how do I write a link that when clicked will execute a command > against another page - manually and programmatically? > - how do I change the admin password when I've forgotten it? (I know > that you have the answer for that one :-) > > I've got a small application that does a lot of these things > programmatically (creates a new Pier kernel, adds pages to it, allows > users to register, creates pages for them, and amends the security on > those pages), I went through a very steep learning curve while getting > to that point, so it may be very useful for others getting started > with Pier. There's a couple of bits of code I'd want to remove, but > I'm happy to publish the rest of it. > > Cheers, > Michael > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki From keith_hodges at yahoo.co.uk Fri Aug 22 10:32:51 2008 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Fri, 22 Aug 2008 09:32:51 +0100 Subject: What does this mean? In-Reply-To: References: <496110FC-5D40-44D1-886E-3A127029C4C0@iam.unibe.ch> <32573.157.127.124.14.1219353605.squirrel@www.ca-flower.com> <63238.157.127.124.14.1219365832.squirrel@www.ca-flower.com> Message-ID: <48AE79B3.1030501@yahoo.co.uk> Richard E. Flower wrote: > Ok -- solved my problem.. I put an address object as part of my > Descriptions > but they are effectively 'sub' objects and I suspect I actually had > two separate > objects.. I need to follow what others where talking about in the > "Using One Magritte > form for two model objects" thread.. Thx! > > -- Rick > With the realMemento sub-objects probably need to use a StraitMemento, so that there is only one whole data-structure used as a memento. Keith From keith_hodges at yahoo.co.uk Fri Aug 22 10:42:21 2008 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Fri, 22 Aug 2008 09:42:21 +0100 Subject: [pier] Problems with password once magma setup In-Reply-To: References: Message-ID: <48AE7BED.3060207@yahoo.co.uk> David Zmick wrote: > Pier will not let me change the password now that I have magma set up! > Why is this? > > -- > David Zmick > /dz0004455\ > http://dz0004455.googlepages.com > http://dz0004455.blogspot.com Because the PRKernel instance in PRKernel instances is only a stub it has no data... the data is in the database. If you are changing the password using a doit. It needs to be within a database commit: I havent got code in front of me, and I am going to be away for a couple of days... back tuesday You could use the "magma" control panel, explore the database to get to the PUUser instance, and in the explorer do something like this perhaps... WAMagma forApp: your appName during: [ :sess | "should give you a session onto your database as configured by your app name" sess commit: [ self password: 'newpassword'. ]. ] Keith From keith_hodges at yahoo.co.uk Fri Aug 22 10:44:08 2008 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Fri, 22 Aug 2008 09:44:08 +0100 Subject: [pier] MessageNotUnderstood: SimpleLog class>>info In-Reply-To: References: Message-ID: <48AE7C58.8050704@yahoo.co.uk> David Zmick wrote: > MessageNotUnderstood: SimpleLog class>>info > How did I do that? and does anyone now a fix? > > -- > David Zmick Looks like the CurrentLog value is pointing to the wrong instance... SimpleLog stop. "to reset" SimpleLog startFile. "or whatever you do to pick a logger output". regards Keith From matthias.berth at googlemail.com Fri Aug 22 11:04:24 2008 From: matthias.berth at googlemail.com (Matthias Berth) Date: Fri, 22 Aug 2008 11:04:24 +0200 Subject: [pier] Common Pier Questions In-Reply-To: References: <3806CFFF-754C-4137-AABC-A194372A0703@monkeysnatchbanana.com> <74B94330-4E70-4697-8F5A-0045F7DFD543@monkeysnatchbanana.com> Message-ID: <9aa6ae270808220204k7bae5841p8327789b4b1dead@mail.gmail.com> I get a " Error: "/seaside/pier/Projects/Pier/starting" not found. " on that :-( -- Matthias On Fri, Aug 22, 2008 at 12:44 AM, David Zmick wrote: > Done with the VERY VERY basic getting started. > http://w337.uni.cc/Projects/Pier/starting > > On Thu, Aug 21, 2008 at 5:01 PM, David Zmick wrote: >> >> ok, good, I am still making a "Getting Started", but it is going to be >> very basic. >> >> On Thu, Aug 21, 2008 at 4:58 PM, Sean Allen >> wrote: >>> >>> a reference would be excellent. >>> On Aug 21, 2008, at 5:34 PM, David Zmick wrote: >>> >>> I don't think I am going to write a tutorial, but more of a reference. >>> With things like Pier Structure, what the components do etc. >>> >>> On Wed, Aug 20, 2008 at 5:45 PM, Sean Allen >>> wrote: >>>> >>>> On Aug 20, 2008, at 5:03 PM, cdrick wrote: >>>> >>>> >> >>>> >> 3. what on earth are all these components? i've been sticking them >>>> >> in and i >>>> >> dont know what 99% of them are or what they are good for. >>>> >> like the html compontent. huh? it isnt very obvious. >>>> > Some are used internally by Pier. >>>> > Some are intended for the mangement of Pier (like user...) >>>> > Some are just seaside component that answer canBeRoot true >>>> > ... >>>> > Yes I also think this is something we could improve... :) >>>> >>>> Are there good resources to learn about these or should i just be >>>> happy knowing that >>>> in time it will come to me and it isnt important right now? >>>> >>>> That is the other thing with lack of documentation. You don't know >>>> what you need >>>> to know now and what can wait. >>>> >>>> >>>> _______________________________________________ >>>> 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 > > > > -- > 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 merlyn at stonehenge.com Fri Aug 22 15:43:34 2008 From: merlyn at stonehenge.com (Randal L. Schwartz) Date: Fri, 22 Aug 2008 06:43:34 -0700 Subject: "offline" branch/merge Message-ID: <86tzdd2mih.fsf@blue.stonehenge.com> My current website is driven by Perl Template Toolkit, generated from source files that are managed in git. The theory is that any of the webmasters who want to edit the website can do so in an offline fashion (at 30k feet, or on a cruise ship, for example), and then merge the changes up to the live site, possibly resolving any conflicts that may have happened in the meanwhile. Is there a way that I can achieve something similar with Pier? As in, have some way to serialize and restore the current pages so that they are treated sensibly by git as a collection of files, or perhaps as code so that they can be tracked with Monticello? -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion From renggli at iam.unibe.ch Fri Aug 22 16:10:05 2008 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Fri, 22 Aug 2008 16:10:05 +0200 Subject: "offline" branch/merge In-Reply-To: <86tzdd2mih.fsf@blue.stonehenge.com> References: <86tzdd2mih.fsf@blue.stonehenge.com> Message-ID: <21D28813-C870-48D3-A37A-4C33D9257844@iam.unibe.ch> The package SW2PR in http://source.lukas-renggli.ch/pieraddons does this, at least the importing part. It walks over SmallWiki pages (the predecessor of Pier) and saves them to a file-system hierarchy. There is another method that walks over the file-system and imports the files into Pier. I wrote this as an easy way to migrate data from SmallWiki (that runs in VW and Squeak) to Pier. I guess it would be easy to use that code as starting point (there are just a couple of methods) and add a Pier exporter. Cheers, Lukas On Aug 22, 2008, at 15:43 , Randal L. Schwartz wrote: > > My current website is driven by Perl Template Toolkit, generated > from source > files that are managed in git. The theory is that any of the > webmasters who > want to edit the website can do so in an offline fashion (at 30k > feet, or on a > cruise ship, for example), and then merge the changes up to the live > site, > possibly resolving any conflicts that may have happened in the > meanwhile. > > Is there a way that I can achieve something similar with Pier? As > in, have > some way to serialize and restore the current pages so that they are > treated > sensibly by git as a collection of files, or perhaps as code so that > they can > be tracked with Monticello? > > -- > Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 > 777 0095 > > Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. > See http://methodsandmessages.vox.com/ for Smalltalk and Seaside > discussion > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki -- Lukas Renggli http://www.lukas-renggli.ch From dz0004455 at gmail.com Fri Aug 22 16:21:50 2008 From: dz0004455 at gmail.com (David Zmick) Date: Fri, 22 Aug 2008 09:21:50 -0500 Subject: [pier] Common Pier Questions In-Reply-To: <9aa6ae270808220204k7bae5841p8327789b4b1dead@mail.gmail.com> References: <3806CFFF-754C-4137-AABC-A194372A0703@monkeysnatchbanana.com> <74B94330-4E70-4697-8F5A-0045F7DFD543@monkeysnatchbanana.com> <9aa6ae270808220204k7bae5841p8327789b4b1dead@mail.gmail.com> Message-ID: sorry, I redid the whole server last night http://w337.uni.cc/Pier/Resources On Fri, Aug 22, 2008 at 4:04 AM, Matthias Berth < matthias.berth at googlemail.com> wrote: > I get a " Error: "/seaside/pier/Projects/Pier/starting" not found. " on > that :-( > > -- Matthias > > On Fri, Aug 22, 2008 at 12:44 AM, David Zmick wrote: > > Done with the VERY VERY basic getting started. > > http://w337.uni.cc/Projects/Pier/starting > > > > On Thu, Aug 21, 2008 at 5:01 PM, David Zmick > wrote: > >> > >> ok, good, I am still making a "Getting Started", but it is going to be > >> very basic. > >> > >> On Thu, Aug 21, 2008 at 4:58 PM, Sean Allen < > sean at monkeysnatchbanana.com> > >> wrote: > >>> > >>> a reference would be excellent. > >>> On Aug 21, 2008, at 5:34 PM, David Zmick wrote: > >>> > >>> I don't think I am going to write a tutorial, but more of a reference. > >>> With things like Pier Structure, what the components do etc. > >>> > >>> On Wed, Aug 20, 2008 at 5:45 PM, Sean Allen < > sean at monkeysnatchbanana.com> > >>> wrote: > >>>> > >>>> On Aug 20, 2008, at 5:03 PM, cdrick wrote: > >>>> > >>>> >> > >>>> >> 3. what on earth are all these components? i've been sticking them > >>>> >> in and i > >>>> >> dont know what 99% of them are or what they are good for. > >>>> >> like the html compontent. huh? it isnt very obvious. > >>>> > Some are used internally by Pier. > >>>> > Some are intended for the mangement of Pier (like user...) > >>>> > Some are just seaside component that answer canBeRoot true > >>>> > ... > >>>> > Yes I also think this is something we could improve... :) > >>>> > >>>> Are there good resources to learn about these or should i just be > >>>> happy knowing that > >>>> in time it will come to me and it isnt important right now? > >>>> > >>>> That is the other thing with lack of documentation. You don't know > >>>> what you need > >>>> to know now and what can wait. > >>>> > >>>> > >>>> _______________________________________________ > >>>> 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 > > > > > > > > -- > > 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/20080822/c523d215/attachment.html From dz0004455 at gmail.com Fri Aug 22 16:22:51 2008 From: dz0004455 at gmail.com (David Zmick) Date: Fri, 22 Aug 2008 09:22:51 -0500 Subject: [pier] Problems with password once magma setup In-Reply-To: <48AE7BED.3060207@yahoo.co.uk> References: <48AE7BED.3060207@yahoo.co.uk> Message-ID: ok, i will try that On Fri, Aug 22, 2008 at 3:42 AM, Keith Hodges wrote: > David Zmick wrote: > > Pier will not let me change the password now that I have magma set up! > > Why is this? > > > > -- > > David Zmick > > /dz0004455\ > > http://dz0004455.googlepages.com > > http://dz0004455.blogspot.com > Because the PRKernel instance in PRKernel instances is only a stub it > has no data... the data is in the database. If you are changing the > password using a doit. It needs to be within a database commit: > > I havent got code in front of me, and I am going to be away for a couple > of days... back tuesday > > You could use the "magma" control panel, explore the database to get to > the PUUser instance, and in the explorer do > > something like this perhaps... > > WAMagma forApp: your appName during: [ :sess | > "should give you a session onto your database as configured by your app > name" > sess commit: [ self password: 'newpassword'. ]. > > ] > > 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/20080822/c7f634fe/attachment.html From dz0004455 at gmail.com Fri Aug 22 16:49:49 2008 From: dz0004455 at gmail.com (David Zmick) Date: Fri, 22 Aug 2008 09:49:49 -0500 Subject: [pier] MessageNotUnderstood: SimpleLog class>>info In-Reply-To: <48AE7C58.8050704@yahoo.co.uk> References: <48AE7C58.8050704@yahoo.co.uk> Message-ID: The simple log class seems to have a problem registering with smalltalk. When ever I try to start, and stop it, it gives an error: "SimpleLog is not loaded" On Fri, Aug 22, 2008 at 3:44 AM, Keith Hodges wrote: > David Zmick wrote: > > MessageNotUnderstood: SimpleLog class>>info > > How did I do that? and does anyone now a fix? > > > > -- > > David Zmick > Looks like the CurrentLog value is pointing to the > wrong instance... > > SimpleLog stop. "to reset" > SimpleLog startFile. "or whatever you do to pick a logger output". > > regards > > 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/20080822/97dac65f/attachment.html From dz0004455 at gmail.com Fri Aug 22 18:19:28 2008 From: dz0004455 at gmail.com (David Zmick) Date: Fri, 22 Aug 2008 11:19:28 -0500 Subject: [pier] MessageNotUnderstood: SimpleLog class>>info In-Reply-To: References: <48AE7C58.8050704@yahoo.co.uk> Message-ID: The Global Smalltalk dictionary needs to hace an object called "SLLog" in it, but it doesn't. How do I get SimpleLog to install itself in Smalltalk On Fri, Aug 22, 2008 at 9:49 AM, David Zmick wrote: > The simple log class seems to have a problem registering with smalltalk. > When ever I try to start, and stop it, it gives an error: "SimpleLog is not > loaded" > > > On Fri, Aug 22, 2008 at 3:44 AM, Keith Hodges wrote: > >> David Zmick wrote: >> > MessageNotUnderstood: SimpleLog class>>info >> > How did I do that? and does anyone now a fix? >> > >> > -- >> > David Zmick >> Looks like the CurrentLog value is pointing to the >> wrong instance... >> >> SimpleLog stop. "to reset" >> SimpleLog startFile. "or whatever you do to pick a logger output". >> >> regards >> >> 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 > -- 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/20080822/45edfaf6/attachment-0001.html From rickf at ca-flower.com Fri Aug 22 18:59:47 2008 From: rickf at ca-flower.com (Richard E. Flower) Date: Fri, 22 Aug 2008 09:59:47 -0700 Subject: What does this mean? In-Reply-To: <48AE79B3.1030501@yahoo.co.uk> References: <496110FC-5D40-44D1-886E-3A127029C4C0@iam.unibe.ch> <32573.157.127.124.14.1219353605.squirrel@www.ca-flower.com> <63238.157.127.124.14.1219365832.squirrel@www.ca-flower.com> <48AE79B3.1030501@yahoo.co.uk> Message-ID: <8C121DE7-23B3-4FE5-BEAD-D83C90F8D1C5@ca-flower.com> Thanks Keith! On Aug 22, 2008, at 1:32 AM, Keith Hodges wrote: > Richard E. Flower wrote: >> Ok -- solved my problem.. I put an address object as part of my >> Descriptions >> but they are effectively 'sub' objects and I suspect I actually had >> two separate >> objects.. I need to follow what others where talking about in the >> "Using One Magritte >> form for two model objects" thread.. Thx! >> >> -- Rick >> > With the realMemento sub-objects probably need to use a StraitMemento, > so that there is only one whole data-structure used as a memento. > > Keith > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > From estebanlm at gmail.com Mon Aug 25 22:41:21 2008 From: estebanlm at gmail.com (Esteban Lorenzano) Date: Mon, 25 Aug 2008 17:41:21 -0300 Subject: child in PRAddCommand question Message-ID: Hi, I'm using pier in a project who needs execute certain operations after a command is executed (journal/persistence stuff) and I added a method PRCommand, who is executed after doExecute... so... what is the problem? well, I have to mark an object as "persistent", in PRAddCommand, and then I do: self child bePersistent... but, as #child answer a ew instance of #type, the operation is lost... I changed #child to use an instVar and just instantiate once.... everything seems to be working now, but I want to know if there is a possible problem with this change... what do you think? the change works? Thanks, Esteban From keith_hodges at yahoo.co.uk Tue Aug 26 11:03:58 2008 From: keith_hodges at yahoo.co.uk (Keith Hodges) Date: Tue, 26 Aug 2008 10:03:58 +0100 Subject: [pier] MessageNotUnderstood: SimpleLog class>>info In-Reply-To: References: <48AE7C58.8050704@yahoo.co.uk> Message-ID: <48B3C6FE.5000507@yahoo.co.uk> Ah yes, Logging is only a front end, it installs with a default Null logger backend, if you actually want to use the SimpleLog as the backend you need to load it. I think it is in universes and/or squeakmap. Keith From matthias.berth at googlemail.com Tue Aug 26 12:48:32 2008 From: matthias.berth at googlemail.com (Matthias Berth) Date: Tue, 26 Aug 2008 12:48:32 +0200 Subject: child in PRAddCommand question In-Reply-To: References: Message-ID: <9aa6ae270808260348m45116d0fy482fdbe8f114c3dd@mail.gmail.com> Hi Esteban, just to clarify what your question is about: You want to do certain operations after a PRCommand was executed, right? So I wonder why you don't do them in the command's doExecute method... Now, in order to do stuff after executing the command, you added a method like doPostExecute to PRCommand, and you hooked that into the execution logic defined in PRCommand, right? Your problem is that you execute a PRAddCommand and you want to tell the new child somehow to bePersistent. And you don't know how to do that except for going into PRAddCommand and changing methods there. The more general question is: how do I access the new child that is created by a PRAddCommand, after it is created. Am I understanding the problem correctly? Maybe you can use a subclass of PRAddCommand that overrides #doValidate, or #validateChild:in: ? BTW: as far as I understand Piers design, persistency is supposed to be managed by the Pier kernel: PRCommand>>execute says self kernel persistency execute: self. Cheers Matthias On Mon, Aug 25, 2008 at 10:41 PM, Esteban Lorenzano wrote: > Hi, > I'm using pier in a project who needs execute certain operations after > a command is executed (journal/persistence stuff) and I added a method > PRCommand, who is executed after doExecute... so... what is the > problem? well, I have to mark an object as "persistent", in > PRAddCommand, and then I do: self child bePersistent... but, as #child > answer a ew instance of #type, the operation is lost... > I changed #child to use an instVar and just instantiate once.... > everything seems to be working now, but I want to know if there is a > possible problem with this change... > what do you think? the change works? > > Thanks, > Esteban > > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > From renggli at iam.unibe.ch Tue Aug 26 12:55:36 2008 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Tue, 26 Aug 2008 12:55:36 +0200 Subject: child in PRAddCommand question In-Reply-To: <9aa6ae270808260348m45116d0fy482fdbe8f114c3dd@mail.gmail.com> References: <9aa6ae270808260348m45116d0fy482fdbe8f114c3dd@mail.gmail.com> Message-ID: > BTW: as far as I understand Piers design, persistency is supposed to > be managed by the Pier kernel: PRCommand>>execute says self kernel > persistency execute: self. Yeah, if you need to know about executed commands then create your own persistency strategy and override #apply:. This can also be a simple delegator, that passes all requests to the default strategy and handles certain cases differently. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From estebanlm at gmail.com Tue Aug 26 13:59:06 2008 From: estebanlm at gmail.com (Esteban Lorenzano) Date: Tue, 26 Aug 2008 08:59:06 -0300 Subject: child in PRAddCommand question References: <9aa6ae270808260348m45116d0fy482fdbe8f114c3dd@mail.gmail.com> Message-ID: On 2008-08-26 07:55:36 -0300, Lukas Renggli said: >> BTW: as far as I understand Piers design, persistency is supposed to >> be managed by the Pier kernel: PRCommand>>execute says self kernel >> persistency execute: self. > > Yeah, if you need to know about executed commands then create your own > persistency strategy and override #apply:. This can also be a simple > delegator, that passes all requests to the default strategy and > handles certain cases differently. Yes, that's exactly what I did... the problem is with PRAddCommand, because it creates the new child every time #child is called, then I am not working in the instance I saved but in a new one, that's why I want to change #child implementation, to keep the first instance it creates. > > Cheers, > Lukas From dtrussardi at tiscali.it Wed Aug 27 17:47:44 2008 From: dtrussardi at tiscali.it (Dario Trussardi) Date: Wed, 27 Aug 2008 17:47:44 +0200 Subject: Rendering descriptions with automatic management of SUTabPanel Message-ID: <004201c9085c$45e55280$0301a8c0@istcamuno> Hi All, i work with some model descripted with MAgritte. Some model have 20 or more description and when display it, for the user isn't simple. I begin to write component for rendering description with SUTabPanel. The idea is to group description based on it priority for example: the description with priority from 1000 to 1999 go in the first tab, from 2000 to 2999 go in the descon tab, and so on. The second idea is to renderign on the single tab div with: description from x100 x199 on the first line of the tab. description from x200 x299 on the second line of the tab. and so on. My question are: anyone solve, work around this problem ? do you have any consideration about it ? Any pointers would be greatly appreciated! Thanks! Dario -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20080827/fc07c8c8/attachment-0001.html From dtrussardi at tiscali.it Wed Aug 27 18:03:37 2008 From: dtrussardi at tiscali.it (Dario Trussardi) Date: Wed, 27 Aug 2008 18:03:37 +0200 Subject: call seaside component from Pier Message-ID: <005301c9085e$7aee85d0$0301a8c0@istcamuno> Hi All, I have write seaside component and register it with specific application link. Now i'm interested to integrate this component on Pier site. I have do it with the 'component' of Pier, and all work fine. My question is: how i can define se the call to on specific seaside component is direct or from pier . I'm interested to define it because when rendering component from pier the header section of the component isn't required. Any pointers would be greatly appreciated! Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20080827/f2d7d047/attachment.html From sean at monkeysnatchbanana.com Wed Aug 27 18:26:22 2008 From: sean at monkeysnatchbanana.com (Sean Allen) Date: Wed, 27 Aug 2008 12:26:22 -0400 Subject: Another beginner question: query strings, google... Message-ID: <47474281-DAA7-4867-AFEF-C7A3561737B8@monkeysnatchbanana.com> When navigating through a pier site like Lukas' you end up with URL like: http://www.lukas-renggli.ch/smalltalk/pier?_s=mvDlpeLCyYzIkvaG&_k=OrAJMTqF&_n&20 but google has it indexed as http://www.lukas-renggli.ch/smalltalk/pier Does the query string only get appended for users with cookies? I'm assuming that is the case but its one of those fine points of seaside and pier that I'm not actually familiar with yet. From matthias.berth at googlemail.com Wed Aug 27 18:30:13 2008 From: matthias.berth at googlemail.com (Matthias Berth) Date: Wed, 27 Aug 2008 18:30:13 +0200 Subject: Rendering descriptions with automatic management of SUTabPanel In-Reply-To: <004201c9085c$45e55280$0301a8c0@istcamuno> References: <004201c9085c$45e55280$0301a8c0@istcamuno> Message-ID: <9aa6ae270808270930v292e31e1x47382ce40ce874b@mail.gmail.com> Hi, you can set a group for each description. Like: MADateDescription new autoAccessor: #dateStamp; default: Date today; label: 'Date stamp'; comment: 'The date on which you started.'; group: 'General info'; priority: 10; yourself The out-of-the-box renderers will (I think) show some group headings. You renderer can use the group to put descriptions into the right tabs. Cheers Matthias On Wed, Aug 27, 2008 at 5:47 PM, Dario Trussardi wrote: > Hi All, > > i work with some model descripted with MAgritte. > > Some model have 20 or more description and when display it, for the user > isn't simple. > > I begin to write component for rendering description with SUTabPanel. > > The idea is to group description based on it priority for example: > > the description with priority from 1000 to 1999 go in the first tab, > > from 2000 to 2999 go in the > descon tab, > > and so on. > > The second idea is to renderign on the single tab div with: > > description from x100 x199 on the first line of the > tab. > description from x200 x299 on the second line of the > tab. > > and so on. > > My question are: > > anyone solve, work around this problem ? > > do you have any consideration about it ? > > > Any pointers would be greatly appreciated! > > Thanks! > > Dario > > > > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki > From squeakman at gmail.com Wed Aug 27 21:06:23 2008 From: squeakman at gmail.com (Squeaker) Date: Wed, 27 Aug 2008 15:06:23 -0400 Subject: How to insert a graphic image in Pier Message-ID: Hi, I am experimenting with Pier and I would like to create a link to an image (jpg) file. The Pier documentation on syntax says: The contents of some links, e.g. links pointing to image-files, can be embedded into the current document by using +s: +reference+. However not all types of links support embedding and will quietly ignore it. I don't understand the "+s: +reference+" syntax, can someone provide a real example that shows how this works? Thanks, Frank From renggli at iam.unibe.ch Thu Aug 28 09:11:24 2008 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Thu, 28 Aug 2008 09:11:24 +0200 Subject: How to insert a graphic image in Pier In-Reply-To: References: Message-ID: <42B5EB2C-D0D1-4984-A1AA-726C09A718EC@iam.unibe.ch> > I don't understand the "+s: +reference+" syntax, can someone provide a > real example that shows how this works? It works exactly like a link to a different page, resource or component. The only difference to *reference* is that no link is created but the target is included into the owning page. 'reference' is an unix path to an existing structure. If you want to give a full path you have to type '/foo/bar/file'. In any case, if the target doesn't exist, the link becomes red and allows you to create a new page on the fly. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From renggli at iam.unibe.ch Thu Aug 28 09:13:08 2008 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Thu, 28 Aug 2008 09:13:08 +0200 Subject: call seaside component from Pier In-Reply-To: <005301c9085e$7aee85d0$0301a8c0@istcamuno> References: <005301c9085e$7aee85d0$0301a8c0@istcamuno> Message-ID: > how i can define se the call to on specific seaside component is > direct or from pier . > > I'm interested to define it because when rendering component from > pier the header section of the component isn't required. I suggest that you create two subclasses of your component. One that generates the heading, while the other does not. Like this you can register/add exactly the component you need. Lukas -- Lukas Renggli http://www.lukas-renggli.ch From renggli at iam.unibe.ch Thu Aug 28 09:23:34 2008 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Thu, 28 Aug 2008 09:23:34 +0200 Subject: Another beginner question: query strings, google... In-Reply-To: <47474281-DAA7-4867-AFEF-C7A3561737B8@monkeysnatchbanana.com> References: <47474281-DAA7-4867-AFEF-C7A3561737B8@monkeysnatchbanana.com> Message-ID: <77E9DC3F-46F6-4C94-8AE5-A1733F5C0273@iam.unibe.ch> On Aug 27, 2008, at 18:26 , Sean Allen wrote: > When navigating through a pier site like Lukas' you end up with URL > like: > > http://www.lukas-renggli.ch/smalltalk/pier?_s=mvDlpeLCyYzIkvaG&_k=OrAJMTqF&_n&20 > > but google has it indexed as http://www.lukas-renggli.ch/smalltalk/ > pier > > Does the query string only get appended for users with cookies? No, that's the default of Seaside. If I find time these parameters will eventually disappear if not needed. > I'm assuming that is the case but its one of those fine points of > seaside and pier that I'm not actually familiar with yet. I don't do anything special about the URLs showing up in Google. Some people use the Sitemap plugin of Philippe to give Google a list of pages to index. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch From mykdavies at gmail.com Thu Aug 28 10:29:28 2008 From: mykdavies at gmail.com (Michael Davies) Date: Thu, 28 Aug 2008 10:29:28 +0200 Subject: How to insert a graphic image in Pier In-Reply-To: References: Message-ID: On Wed, Aug 27, 2008 at 9:06 PM, Squeaker wrote: > I don't understand the "+s: +reference+" syntax, can someone provide a > real example that shows how this works? Hi Frank, Where did you find that syntax? It looks odd to me. If you want to include an image you can use "+an image>image.png+". As Lukas says, this will show up as a red link, saying "an image", pointing to the non-existent file "image.png". If you then click on it, you can choose to add a "file" type, and whatever file you then choose to upload will then be stored by Pier as "image.png", and rendered inline from then on. Cheers, Michael From jborden23 at mac.com Thu Aug 28 17:33:17 2008 From: jborden23 at mac.com (John Borden) Date: Thu, 28 Aug 2008 10:33:17 -0500 Subject: Pier - IMG placement Message-ID: <9DD8C92E-A201-4F71-B558-BA61E51E9D12@mac.com> Pier Experts, At my work, we've been running a smallwiki (the origininal version of pier) for about 3 years, and have accumulated around 3k pages. While looking into upgrading to pier, I noticed that the newest images on ** site resolve the missing slash problem (backslashes disappear in preformatted text if they don't preceed a *), however there's a new problem. Suppose I have images intermingled with text, such as: text1 Picture1 text2 Picture2 text3 Assuming that the apache server is down, it would appear as: text1 Picture1 text2 Picture2 text3 With the new version of pier, it is displaying as: text1 Picture1 text2 Picture2 text3 Does anyone know a way to fix this? Is it in the CSS or in the ST code? Thanks in advance, John Borden From squeakman at gmail.com Fri Aug 29 14:55:45 2008 From: squeakman at gmail.com (Squeaker) Date: Fri, 29 Aug 2008 08:55:45 -0400 Subject: How to insert a graphic image in Pier In-Reply-To: References: Message-ID: Michael Davies wrote: > Hi Frank, > Where did you find that syntax? It looks odd to me. > I found the syntax from the "out of the box" version of Pier that comes with the one click experience. When you go to the Information page of Pier and select "Syntax" you get a description of Pier syntax. The section "Links" describes the syntax that I referenced. Cheers, Frank From renggli at iam.unibe.ch Fri Aug 29 15:00:10 2008 From: renggli at iam.unibe.ch (Lukas Renggli) Date: Fri, 29 Aug 2008 15:00:10 +0200 Subject: How to insert a graphic image in Pier In-Reply-To: References: Message-ID: >> Where did you find that syntax? It looks odd to me. > > I found the syntax from the "out of the box" version of Pier that > comes > with the one click experience. When you go to the Information page of > Pier and select "Syntax" you get a description of Pier syntax. The > section "Links" describes the syntax that I referenced. The : is not part of the syntax, that's part of the sentence describing the syntax. The syntax for embedding is simply: +reference+ or +title>reference+ And for links: *reference* or *title>reference* Reference is absolute or relative path to a structure. For example '/' would point to the root page. Or '/information/syntax' to the syntax page. Does that help? Cheers, Lukas > > > Cheers, > Frank > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki -- Lukas Renggli http://www.lukas-renggli.ch From squeakman at gmail.com Sun Aug 31 16:35:03 2008 From: squeakman at gmail.com (Squeaker) Date: Sun, 31 Aug 2008 10:35:03 -0400 Subject: Customizing Pier Message-ID: Greetings, I am just starting to poke around Pier and I am trying to figure out how to hide the "Views" menu from a non-admin user. I can change the permissions for "Other" so that there are no menu choices under the "Views" menu but the box with the word "Views" still appears. I would like this to not be shown. How can this be done? Just to clarify, what I mean by the "Views" menu is the menu on the left hand side. There are three menus on the lhs: Views, Commands and Navigation. I want the Views menu to not appear at all. Thanks, Frank From girba at iam.unibe.ch Sun Aug 31 22:53:17 2008 From: girba at iam.unibe.ch (Tudor Girba) Date: Sun, 31 Aug 2008 22:53:17 +0200 Subject: Customizing Pier In-Reply-To: References: Message-ID: Hi, Go to the Commands widget and then access Settings. This will allow you to put away the View from the list of available commands. Cheers, Doru On Aug 31, 2008, at 4:35 PM, Squeaker wrote: > Greetings, > > I am just starting to poke around Pier and I am trying to figure out > how > to hide the "Views" menu from a non-admin user. > > I can change the permissions for "Other" so that there are no menu > choices under the "Views" menu but the box with the word "Views" still > appears. I would like this to not be shown. How can this be done? > > Just to clarify, what I mean by the "Views" menu is the menu on the > left > hand side. There are three menus on the lhs: Views, Commands and > Navigation. I want the Views menu to not appear at all. > > Thanks, > Frank > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki -- www.tudorgirba.com www.tudorgirba.com/blog "Beauty is where we see it."